File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
tests/e2e/tests/regression/shortcuts Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ 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' ;
5
+ import { ClientFunction } from 'testcafe' ;
5
6
6
7
const myRedisDatabasePage = new MyRedisDatabasePage ( ) ;
7
8
const helpCenterPage = new HelpCenterPage ( ) ;
8
9
const shortcutsPage = new ShortcutsPage ( ) ;
10
+ const getPageUrl = ClientFunction ( ( ) => window . location . href ) ;
9
11
10
12
fixture `Shortcuts`
11
13
. meta ( { type : 'regression' } )
80
82
await t . expect ( shortcutsPage . shortcutsPanel . textContent ) . contains ( element , 'The user can see description of the “Shift+Space” shortcut' ) ;
81
83
}
82
84
} )
85
+ test
86
+ . meta ( { env : env . web , rte : rte . none } )
87
+ ( 'Verify redirected link opening Release Notes in Help Center' , async t => {
88
+ const link = 'https://github.com/RedisInsight/RedisInsight/releases' ;
89
+ //Click on the Release Notes in Help Center
90
+ await t . click ( myRedisDatabasePage . helpCenterButton ) ;
91
+ await t . click ( helpCenterPage . helpCenterReleaseNotesButton ) ;
92
+ //Verify the opened link
93
+ await t . expect ( getPageUrl ( ) ) . eql ( link , 'The Release Notes link' ) ;
94
+ } )
You can’t perform that action at this time.
0 commit comments