File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
tests/e2e/tests/web/smoke/browser Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,13 @@ test('Verify that user can add key with value to any level of JSON structure for
65
65
const notification = browserPage . Toast . toastHeader . textContent ;
66
66
await t . expect ( notification ) . contains ( 'Key has been added' , 'The notification not found' ) ;
67
67
// Add key with value on the same level
68
- await t . debug ( )
69
68
await browserPage . addJsonKeyOnTheSameLevel ( '"key1"' , '"value1"' ) ;
70
69
// Check the added key contains json object with added key
71
70
await t . expect ( browserPage . addJsonObjectButton . exists ) . ok ( 'The add Json object button not found' , { timeout : 10000 } ) ;
72
- await t . expect ( browserPage . jsonKeyValue . textContent ) . eql ( '{name:"xyz "key1:"value1"}' , 'The json object value not found' ) ;
71
+ await t . expect ( browserPage . jsonKeyValue . textContent ) . contains ( '{"key1:"value1"}' , 'The json object value not found' ) ;
73
72
// Add key with value inside the json
74
73
await browserPage . addJsonKeyOnTheSameLevel ( '"key2"' , '{}' ) ;
75
74
await browserPage . addJsonKeyInsideStructure ( '"key2222"' , '12345' ) ;
76
75
// Check the added key contains json object with added key
77
- await t . expect ( browserPage . jsonKeyValue . textContent ) . eql ( '{name:"xyz" key1:"value1"key2:{key2222:12345}}' , 'The json object value not found' ) ;
76
+ await t . expect ( browserPage . jsonKeyValue . textContent ) . contains ( '{key1:"value1"key2:{key2222:12345}}' , 'The json object value not found' ) ;
78
77
} ) ;
You can’t perform that action at this time.
0 commit comments