@@ -27,18 +27,14 @@ fixture `Formatters`
2727 . beforeEach ( async ( ) => {
2828 await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneV8Config ) ;
2929
30- await populateHashWithFields ( ossStandaloneV8Config . host , ossStandaloneV8Config . port , keyToAddParameters ) ;
3130 } )
3231 . afterEach ( async ( ) => {
3332 // Clear keys and database
3433 await apiKeyRequests . deleteKeyByNameApi ( keyName , ossStandaloneV8Config . databaseName ) ;
3534 await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneV8Config ) ;
3635 } ) ;
3736
38- test . before ( async t => {
39- await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneV8Config ) ;
40-
41- } ) ( 'Verify that UTF8 in PHP serialized' , async t => {
37+ test ( 'Verify that UTF8 in PHP serialized' , async t => {
4238 const phpValueChinese = '测试' ;
4339 const phpValueCRussian = 'Привет мир!' ;
4440 const setValue = `SET ${ keyName } "a:3:{s:4:\\"name\\";s:6:\\"${ phpValueChinese } \\";s:3:\\"age\\";i:30;s:7:\\"message\\";s:20:\\"${ phpValueCRussian } \\";}"\n` ;
@@ -56,11 +52,10 @@ test('Verify that dataTime is displayed in Java serialized', async t => {
5652 const hexValue = 'ACED00057372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000000BEACD0567278' ;
5753 const javaTimeValue = '"1995-12-14T12:12:01.010Z"'
5854
59- await browserPage . openKeyDetailsByKeyName ( keyName ) ;
55+ await browserPage . addHashKey ( keyName ) ;
6056 // Add valid value in HEX format for convertion
6157 await browserPage . selectFormatter ( 'HEX' ) ;
6258 await browserPage . editHashKeyValue ( hexValue ) ;
6359 await browserPage . selectFormatter ( 'Java serialized' ) ;
64- await t . expect ( browserPage . hashFieldValue . innerText ) . eql ( javaTimeValue , 'data is not serialized in java' )
65-
60+ await t . expect ( browserPage . hashFieldValue . innerText ) . eql ( javaTimeValue , 'data is not serialized in java' ) ;
6661} ) ;
0 commit comments