Skip to content

Commit 706fe74

Browse files
committed
remove welcome page tests from desktop
1 parent ac569d3 commit 706fe74

File tree

1 file changed

+1
-44
lines changed

1 file changed

+1
-44
lines changed
Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { commonUrl } from '../../../../helpers/conf';
2-
import { SettingsPage, MyRedisDatabasePage, WelcomePage } from '../../../../pageObjects';
2+
import { MyRedisDatabasePage } from '../../../../pageObjects';
33
import { Common } from '../../../../helpers/common';
44
import { rte } from '../../../../helpers/constants';
55
import { UserAgreementDialog } from '../../../../pageObjects/dialogs';
66

77
const userAgreementDialog = new UserAgreementDialog();
88
const myRedisDatabasePage = new MyRedisDatabasePage();
9-
const settingsPage = new SettingsPage();
10-
const welcomePage = new WelcomePage();
119

1210
fixture `Agreements Verification`
1311
.meta({ type: 'critical_path', rte: rte.none })
@@ -30,44 +28,3 @@ test.skip('Verify that the encryption enabled by default and specific message',
3028
// Verify that encryption enabled by default
3129
await t.expect(userAgreementDialog.switchOptionEncryption.withAttribute('aria-checked', 'true').exists).ok('Encryption enabled by default');
3230
});
33-
test('Verify that the Welcome page is opened after user agrees', async t => {
34-
// Accept agreements
35-
await t.click(settingsPage.switchEulaOption);
36-
await t.click(settingsPage.submitConsentsPopupButton);
37-
// Verify that I dont have an popup
38-
await t.expect(userAgreementDialog.userAgreementsPopup.exists).notOk('User Agreements Popup isn\'t shown after accept agreements');
39-
// Verify that Welcome page is displayed after user agrees
40-
await t.expect(welcomePage.welcomePageTitle.exists).ok('Welcome page is displayed');
41-
// Verify I can work with the application
42-
await t.click(welcomePage.addDbManuallyBtn);
43-
await t.expect(myRedisDatabasePage.AddRedisDatabase.addDatabaseManually.exists).ok('User can add a database');
44-
});
45-
test('Verify that when user checks "Use recommended settings" option on EULA screen, all options (except Licence Terms) are checked', async t => {
46-
// Verify options unchecked before enabling Use recommended settings
47-
await t.expect(await settingsPage.getAnalyticsSwitcherValue()).notOk('Enable Analytics switcher is checked');
48-
await t.expect(await settingsPage.getNotificationsSwitcherValue()).notOk('Enable Notifications switcher is checked');
49-
// Check Use recommended settings switcher
50-
await t.click(userAgreementDialog.recommendedSwitcher);
51-
// Verify options checked after enabling Use recommended settings
52-
await t.expect(await settingsPage.getAnalyticsSwitcherValue()).ok('Enable Analytics switcher is unchecked');
53-
await t.expect(await settingsPage.getNotificationsSwitcherValue()).ok('Enable Notifications switcher is unchecked');
54-
await t.expect(await settingsPage.getEulaSwitcherValue()).notOk('EULA switcher is checked');
55-
// Uncheck Use recommended settings switcher
56-
await t.click(userAgreementDialog.recommendedSwitcher);
57-
// Verify that when user unchecks "Use recommended settings" option on EULA screen, previous state of checkboxes for the options is applied
58-
await t.expect(await settingsPage.getAnalyticsSwitcherValue()).notOk('Enable Analytics switcher is checked');
59-
await t.expect(await settingsPage.getNotificationsSwitcherValue()).notOk('Enable Notifications switcher is checked');
60-
await t.expect(await settingsPage.getEulaSwitcherValue()).notOk('EULA switcher is checked');
61-
});
62-
test('Verify that if "Use recommended settings" is selected, and user unchecks any of the option, "Use recommended settings" is unchecked', async t => {
63-
// Check Use recommended settings switcher
64-
await t.click(userAgreementDialog.recommendedSwitcher);
65-
// Verify Use recommended settings switcher unchecked after unchecking analytics switcher
66-
await t.click(settingsPage.switchAnalyticsOption);
67-
await t.expect(await userAgreementDialog.getRecommendedSwitcherValue()).eql('false', 'Use recommended settings switcher is still checked');
68-
// Check Use recommended settings switcher
69-
await t.click(userAgreementDialog.recommendedSwitcher);
70-
// Verify Use recommended settings switcher unchecked after unchecking notifications switcher
71-
await t.click(settingsPage.switchNotificationsOption);
72-
await t.expect(await userAgreementDialog.getRecommendedSwitcherValue()).eql('false', 'Use recommended settings switcher is still checked');
73-
});

0 commit comments

Comments
 (0)