Skip to content

Commit 1d72e53

Browse files
committed
fix
1 parent 4b12511 commit 1d72e53

File tree

1 file changed

+75
-74
lines changed

1 file changed

+75
-74
lines changed

tests/e2e/tests/regression/browser/onboarding.e2e.ts

Lines changed: 75 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const monitorPage = new MonitorPage();
2121
const setLocalStorageItem = ClientFunction((key: string, value: string) => window.localStorage.setItem(key, value));
2222

2323
fixture `Onboarding new user tests`
24-
.meta({type: 'regression', rte: rte.standalone, env: env.desktop })
24+
.meta({type: 'regression', rte: rte.standalone })
2525
.page(commonUrl)
2626
.beforeEach(async() => {
2727
await acceptTermsAddDatabaseOrConnectToRedisStack(ossStandaloneConfig, ossStandaloneConfig.databaseName);
@@ -31,77 +31,78 @@ fixture `Onboarding new user tests`
3131
.afterEach(async() => {
3232
await deleteDatabase(ossStandaloneConfig.databaseName);
3333
});
34-
test('Verify onbarding new user steps', async t => {
35-
await onBoardActions.startOnboarding();
36-
// verify browser step is visible
37-
await onBoardActions.verifyStepVisible('Browser');
38-
// move to next step
39-
await onBoardActions.clickNextStep();
40-
// verify tree view step is visible
41-
await onBoardActions.verifyStepVisible('Tree view');
42-
await onBoardActions.clickNextStep();
43-
await onBoardActions.verifyStepVisible('Filter and search');
44-
await onBoardActions.clickNextStep();
45-
// verify cli is opened
46-
await t.expect(cliPage.cliPanel.visible).ok('cli is not expanded');
47-
await onBoardActions.verifyStepVisible('CLI');
48-
await onBoardActions.clickNextStep();
49-
// verify command helper area is opened
50-
await t.expect(cliPage.commandHelperArea.visible).ok('command helper is not expanded');
51-
await onBoardActions.verifyStepVisible('Command Helper');
52-
await onBoardActions.clickNextStep();
53-
// verify profiler is opened
54-
await t.expect(monitorPage.monitorArea.visible).ok('profiler is not expanded');
55-
await onBoardActions.verifyStepVisible('Profiler');
56-
await onBoardActions.clickNextStep();
57-
// verify workbench page is opened
58-
await t.expect(workBenchPage.mainEditorArea.visible).ok('workbench is not opened');
59-
await onBoardActions.verifyStepVisible('Try Workbench!');
60-
// click back step button
61-
await onBoardActions.clickBackStep();
62-
// verify one step before is opened
63-
await t.expect(monitorPage.monitorArea.visible).ok('profiler is not expanded');
64-
await onBoardActions.verifyStepVisible('Profiler');
65-
await onBoardActions.clickNextStep();
66-
// verify workbench page is opened
67-
await t.expect(workBenchPage.mainEditorArea.visible).ok('workbench is not opened');
68-
await onBoardActions.verifyStepVisible('Try Workbench!');
69-
await onBoardActions.clickNextStep();
70-
await onBoardActions.verifyStepVisible('Explore and learn more');
71-
await onBoardActions.clickNextStep();
72-
// verify analysis tools page is opened
73-
await t.expect(memoryEfficiencyPage.noReportsText.visible).ok('analysis tools is not opened');
74-
await onBoardActions.verifyStepVisible('Database Analysis');
75-
await onBoardActions.clickNextStep();
76-
// verify slow log is opened
77-
await t.expect(slowLogPage.slowLogTable.visible).ok('slow log is not opened');
78-
await onBoardActions.verifyStepVisible('Slow Log');
79-
await onBoardActions.clickNextStep();
80-
// verify pub/sub page is opened
81-
await t.expect(pubSubPage.subscribeButton.visible).ok('pub/sub page is not opened');
82-
await onBoardActions.verifyStepVisible('Pub/Sub');
83-
await onBoardActions.clickNextStep();
84-
// verify last step of onboarding process is visible
85-
await onBoardActions.verifyStepVisible('Great job!');
86-
await onBoardActions.clickNextStep();
87-
// verify onboarding step completed successfully
88-
await onBoardActions.verifyOnboardingCompleted();
89-
});
90-
test('verify onboard new user skip tour', async() => {
34+
test
35+
.meta({ env: env.desktop })('Verify onbarding new user steps', async t => {
36+
await onBoardActions.startOnboarding();
37+
// verify browser step is visible
38+
await onBoardActions.verifyStepVisible('Browser');
39+
// move to next step
40+
await onBoardActions.clickNextStep();
41+
// verify tree view step is visible
42+
await onBoardActions.verifyStepVisible('Tree view');
43+
await onBoardActions.clickNextStep();
44+
await onBoardActions.verifyStepVisible('Filter and search');
45+
await onBoardActions.clickNextStep();
46+
// verify cli is opened
47+
await t.expect(cliPage.cliPanel.visible).ok('cli is not expanded');
48+
await onBoardActions.verifyStepVisible('CLI');
49+
await onBoardActions.clickNextStep();
50+
// verify command helper area is opened
51+
await t.expect(cliPage.commandHelperArea.visible).ok('command helper is not expanded');
52+
await onBoardActions.verifyStepVisible('Command Helper');
53+
await onBoardActions.clickNextStep();
54+
// verify profiler is opened
55+
await t.expect(monitorPage.monitorArea.visible).ok('profiler is not expanded');
56+
await onBoardActions.verifyStepVisible('Profiler');
57+
await onBoardActions.clickNextStep();
58+
// verify workbench page is opened
59+
await t.expect(workBenchPage.mainEditorArea.visible).ok('workbench is not opened');
60+
await onBoardActions.verifyStepVisible('Try Workbench!');
61+
// click back step button
62+
await onBoardActions.clickBackStep();
63+
// verify one step before is opened
64+
await t.expect(monitorPage.monitorArea.visible).ok('profiler is not expanded');
65+
await onBoardActions.verifyStepVisible('Profiler');
66+
await onBoardActions.clickNextStep();
67+
// verify workbench page is opened
68+
await t.expect(workBenchPage.mainEditorArea.visible).ok('workbench is not opened');
69+
await onBoardActions.verifyStepVisible('Try Workbench!');
70+
await onBoardActions.clickNextStep();
71+
await onBoardActions.verifyStepVisible('Explore and learn more');
72+
await onBoardActions.clickNextStep();
73+
// verify analysis tools page is opened
74+
await t.expect(memoryEfficiencyPage.noReportsText.visible).ok('analysis tools is not opened');
75+
await onBoardActions.verifyStepVisible('Database Analysis');
76+
await onBoardActions.clickNextStep();
77+
// verify slow log is opened
78+
await t.expect(slowLogPage.slowLogTable.visible).ok('slow log is not opened');
79+
await onBoardActions.verifyStepVisible('Slow Log');
80+
await onBoardActions.clickNextStep();
81+
// verify pub/sub page is opened
82+
await t.expect(pubSubPage.subscribeButton.visible).ok('pub/sub page is not opened');
83+
await onBoardActions.verifyStepVisible('Pub/Sub');
84+
await onBoardActions.clickNextStep();
85+
// verify last step of onboarding process is visible
86+
await onBoardActions.verifyStepVisible('Great job!');
87+
await onBoardActions.clickNextStep();
88+
// verify onboarding step completed successfully
89+
await onBoardActions.verifyOnboardingCompleted();
90+
});
91+
test
92+
.meta({ env: env.desktop })('verify onboard new user skip tour', async() => {
9193
// start onboarding process
92-
await onBoardActions.startOnboarding();
93-
// verify browser step is visible
94-
await onBoardActions.verifyStepVisible('Browser');
95-
// move to next step
96-
await onBoardActions.clickNextStep();
97-
// verify tree view step is visible
98-
await onBoardActions.verifyStepVisible('Tree view');
99-
// click skip tour
100-
await onBoardActions.clickSkipTour();
101-
// verify onboarding step completed successfully
102-
await onBoardActions.verifyOnboardingCompleted();
103-
await common.reloadPage();
104-
// verify onboarding step still not visible after refresh page
105-
await onBoardActions.verifyOnboardingCompleted();
106-
});
107-
94+
await onBoardActions.startOnboarding();
95+
// verify browser step is visible
96+
await onBoardActions.verifyStepVisible('Browser');
97+
// move to next step
98+
await onBoardActions.clickNextStep();
99+
// verify tree view step is visible
100+
await onBoardActions.verifyStepVisible('Tree view');
101+
// click skip tour
102+
await onBoardActions.clickSkipTour();
103+
// verify onboarding step completed successfully
104+
await onBoardActions.verifyOnboardingCompleted();
105+
await common.reloadPage();
106+
// verify onboarding step still not visible after refresh page
107+
await onBoardActions.verifyOnboardingCompleted();
108+
});

0 commit comments

Comments
 (0)