Skip to content

Commit ecf1d58

Browse files
release notes test
1 parent afa0f14 commit ecf1d58

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/e2e/tests/regression/shortcuts/shortcuts.e2e.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { rte, env } from '../../../helpers/constants';
22
import { acceptLicenseTerms } from '../../../helpers/database';
33
import { MyRedisDatabasePage, HelpCenterPage, ShortcutsPage } from '../../../pageObjects';
44
import { commonUrl } from '../../../helpers/conf';
5+
import { ClientFunction } from 'testcafe';
56

67
const myRedisDatabasePage = new MyRedisDatabasePage();
78
const helpCenterPage = new HelpCenterPage();
89
const shortcutsPage = new ShortcutsPage();
10+
const getPageUrl = ClientFunction(() => window.location.href);
911

1012
fixture `Shortcuts`
1113
.meta({ type: 'regression' })
@@ -80,3 +82,13 @@ test
8082
await t.expect(shortcutsPage.shortcutsPanel.textContent).contains(element, 'The user can see description of the “Shift+Space” shortcut');
8183
}
8284
})
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+
})

0 commit comments

Comments
 (0)