Skip to content

Commit adb141c

Browse files
update link
1 parent abce9ee commit adb141c

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

tests/e2e/pageObjects/welcome-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class WelcomePage extends BasePage {
99
importCloudDbBtn = Selector('[data-testid=import-cloud-db-btn]');
1010
importDbFromFileBtn = Selector('[data-testid=import-from-file-btn]');
1111
// Links
12-
buildFromSource = Selector('a').withExactText('Build from source');
12+
buildFromLinux = Selector('a').withExactText('Linux');
1313
buildFromDocker = Selector('a').withExactText('Docker');
1414
buildFromHomebrew = Selector('a').withExactText('Homebrew');
1515
// Text

tests/e2e/tests/web/smoke/database/add-db-from-welcome-page.e2e.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ const databaseAPIRequests = new DatabaseAPIRequests();
1313
const welcomePage = new WelcomePage();
1414

1515
const getPageUrl = ClientFunction(() => window.location.href);
16-
const dockerPage = 'https://developer.redis.com/create/docker/?utm_source=redis&utm_medium=app&utm_campaign=redisinsight';
17-
const homebrewPage = 'https://developer.redis.com/create/homebrew/?utm_source=redis&utm_medium=app&utm_campaign=redisinsight';
18-
const promoPage = 'https://redis.com/cloud/overview/?utm_source=redisinsight&utm_medium=main&utm_campaign=main';
16+
const linuxPage = 'https://redis.io/docs/install/install-stack/linux/?utm_source=redisinsight&utm_medium=main&utm_campaign=linux';
17+
const dockerPage = 'https://redis.io/docs/install/install-stack/docker/?utm_source=redisinsight&utm_medium=main&utm_campaign=docker';
18+
const homebrewPage = 'https://redis.io/docs/install/install-stack/mac-os/?utm_source=redisinsight&utm_medium=main&utm_campaign=homebrew';
19+
const promoPage = 'https://redis.com/try-free/?utm_source=redisinsight&utm_medium=main&utm_campaign=main';
1920

2021
fixture `Add database from welcome page`
2122
.meta({ type: 'smoke', rte: rte.standalone })
@@ -37,7 +38,11 @@ test
3738
await t.expect(myRedisDatabasePage.dbNameList.withExactText(ossStandaloneConfig.databaseName).exists).ok('The database not added', { timeout: 10000 });
3839
});
3940

40-
test('Verify that all the links are valid from Welcome page', async t => {
41+
test.only('Verify that all the links are valid from Welcome page', async t => {
42+
// Verify linux link
43+
await t.click(welcomePage.buildFromLinux);
44+
await t.expect(getPageUrl()).eql(linuxPage, 'Build for linux link is not valid');
45+
await goBackHistory();
4146
// Verify build from docker link
4247
await t.click(welcomePage.buildFromDocker);
4348
await t.expect(getPageUrl()).eql(dockerPage, 'Build from docker page is not valid');

0 commit comments

Comments
 (0)