1
- import { rte } from '../../../helpers/constants' ;
1
+ import { rte , env } from '../../../helpers/constants' ;
2
2
import { acceptLicenseTerms } from '../../../helpers/database' ;
3
3
import { MyRedisDatabasePage , HelpCenterPage , ShortcutsPage } from '../../../pageObjects' ;
4
4
import { commonUrl } from '../../../helpers/conf' ;
@@ -14,15 +14,31 @@ fixture `Shortcuts`
14
14
await acceptLicenseTerms ( ) ;
15
15
} )
16
16
test
17
- . meta ( { rte : rte . none } )
17
+ . meta ( { env : env . web , rte : rte . none } )
18
18
( 'Verify that user can see a summary of Shortcuts by clicking "Keyboard Shortcuts" button in Help Center' , async t => {
19
- // Click on help center icon
19
+ // Click on help center icon and verify panel
20
20
await t . click ( myRedisDatabasePage . helpCenterButton ) ;
21
- // Verify that Help Center panel is opened
22
21
await t . expect ( helpCenterPage . helpCenterPanel . exists ) . ok ( 'Help Center panel is opened' ) ;
23
- // Click on Shortcuts option
22
+ // Click on Shortcuts option and verify panel
23
+ await t . click ( helpCenterPage . helpCenterShortcutButton ) ;
24
+ await t . expect ( shortcutsPage . shortcutsPanel . exists ) . ok ( 'Shortcuts panel is opened' ) ;
25
+ // Validate Title and sections of Shortcuts
26
+ await t . expect ( shortcutsPage . shortcutsPanel . exists ) . ok ( 'Shortcuts panel is opened' ) ;
27
+ await t . expect ( shortcutsPage . shortcutsTitle . exists ) . ok ( 'shortcutsTitle is opened' ) ;
28
+ await t . expect ( shortcutsPage . shortcutsCLISection . exists ) . ok ( 'shortcutsCLISection is displayed' ) ;
29
+ await t . expect ( shortcutsPage . shortcutsWorkbenchSection . exists ) . ok ( 'shortcutsWorkbenchSection is displayed' ) ;
30
+ // Verify that user can close the Shortcuts
31
+ await t . click ( shortcutsPage . shortcutsCloseButton ) ;
32
+ await t . expect ( shortcutsPage . shortcutsPanel . exists ) . notOk ( 'Shortcuts panel is not displayed' ) ;
33
+ } )
34
+ test
35
+ . meta ( { env : env . desktop , rte : rte . none } )
36
+ ( 'Verify that user can see a summary of Shortcuts by clicking "Keyboard Shortcuts" button in Help Center for desktop' , async t => {
37
+ // Click on help center icon and verify panel
38
+ await t . click ( myRedisDatabasePage . helpCenterButton ) ;
39
+ await t . expect ( helpCenterPage . helpCenterPanel . exists ) . ok ( 'Help Center panel is opened' ) ;
40
+ // Click on Shortcuts option and verify panel
24
41
await t . click ( helpCenterPage . helpCenterShortcutButton ) ;
25
- // Validate that Shortcuts panel is opened
26
42
await t . expect ( shortcutsPage . shortcutsPanel . exists ) . ok ( 'Shortcuts panel is opened' ) ;
27
43
// Validate Title and sections of Shortcuts
28
44
await t . expect ( shortcutsPage . shortcutsPanel . exists ) . ok ( 'Shortcuts panel is opened' ) ;
32
48
await t . expect ( shortcutsPage . shortcutsWorkbenchSection . exists ) . ok ( 'shortcutsWorkbenchSection is displayed' ) ;
33
49
// Verify that user can close the Shortcuts
34
50
await t . click ( shortcutsPage . shortcutsCloseButton ) ;
35
- // Verify that Shortcuts panel is not displayed
36
51
await t . expect ( shortcutsPage . shortcutsPanel . exists ) . notOk ( 'Shortcuts panel is not displayed' ) ;
37
52
} )
0 commit comments