@@ -74,17 +74,17 @@ test('Verify that user can see switcher icon for narrow screen and tooltip by ho
74
74
for ( let i = 0 ; i < keysWithoutSwitcher . length ; i ++ ) {
75
75
await browserPage . openKeyDetailsByKeyName ( keysWithoutSwitcher [ i ] . keyName ) ;
76
76
// Verify that user don`t see format switcher for JSON, GRAPH, TS keys
77
- await t . expect ( browserPage . formatSwitcher . visible ) . notOk ( `Formatter is displayed for ${ keysWithoutSwitcher [ i ] . textType } type` , { timeout : 1000 } ) ;
77
+ await t . expect ( browserPage . formatSwitcher . exists ) . notOk ( `Formatter is displayed for ${ keysWithoutSwitcher [ i ] . textType } type` , { timeout : 1000 } ) ;
78
78
}
79
79
80
- await browserPage . openKeyDetails ( keysData [ 0 ] . keyName ) ;
80
+ await browserPage . openKeyDetailsByKeyName ( keysData [ 0 ] . keyName ) ;
81
81
await browserPage . selectFormatter ( 'JSON' ) ;
82
82
// Verify icon is not displayed with high screen resolution
83
- await t . expect ( browserPage . formatSwitcherIcon . visible ) . notOk ( 'Format switcher Icon is displayed with high screen resolution' ) ;
83
+ await t . expect ( browserPage . formatSwitcherIcon . exists ) . notOk ( 'Format switcher Icon is displayed with high screen resolution' ) ;
84
84
// Minimize the window to check icon
85
85
await t . resizeWindow ( 1500 , 900 ) ;
86
86
// Verify icon is displayed with low screen resolution
87
- await t . expect ( browserPage . formatSwitcherIcon . visible ) . ok ( 'Format switcher Icon is not displayed with low screen resolution' ) ;
87
+ await t . expect ( browserPage . formatSwitcherIcon . exists ) . ok ( 'Format switcher Icon is not displayed with low screen resolution' ) ;
88
88
await t . hover ( browserPage . formatSwitcher ) ;
89
89
// Verify tooltip is displayed on hover with low screen resolution
90
90
await t . expect ( browserPage . tooltip . textContent ) . contains ( 'JSON' , 'Selected formatter is not displayed in tooltip' ) ;
0 commit comments