@@ -27,18 +27,14 @@ fixture `Formatters`
27
27
. beforeEach ( async ( ) => {
28
28
await databaseHelper . acceptLicenseTermsAndAddDatabaseApi ( ossStandaloneV8Config ) ;
29
29
30
- await populateHashWithFields ( ossStandaloneV8Config . host , ossStandaloneV8Config . port , keyToAddParameters ) ;
31
30
} )
32
31
. afterEach ( async ( ) => {
33
32
// Clear keys and database
34
33
await apiKeyRequests . deleteKeyByNameApi ( keyName , ossStandaloneV8Config . databaseName ) ;
35
34
await databaseAPIRequests . deleteStandaloneDatabaseApi ( ossStandaloneV8Config ) ;
36
35
} ) ;
37
36
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 => {
42
38
const phpValueChinese = '测试' ;
43
39
const phpValueCRussian = 'Привет мир!' ;
44
40
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 => {
56
52
const hexValue = 'ACED00057372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000000BEACD0567278' ;
57
53
const javaTimeValue = '"1995-12-14T12:12:01.010Z"'
58
54
59
- await browserPage . openKeyDetailsByKeyName ( keyName ) ;
55
+ await browserPage . addHashKey ( keyName ) ;
60
56
// Add valid value in HEX format for convertion
61
57
await browserPage . selectFormatter ( 'HEX' ) ;
62
58
await browserPage . editHashKeyValue ( hexValue ) ;
63
59
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' ) ;
66
61
} ) ;
0 commit comments