|
1 | 1 | import { RequestMock } from 'testcafe';
|
2 | 2 | import { commonUrl } from '../../../helpers/conf';
|
3 |
| -import { UserAgreementPage, AddRedisDatabasePage, SettingsPage } from '../../../pageObjects'; |
| 3 | +import { UserAgreementPage, AddRedisDatabasePage, SettingsPage, MyRedisDatabasePage } from '../../../pageObjects'; |
4 | 4 |
|
5 | 5 | const addRedisDatabasePage = new AddRedisDatabasePage();
|
6 | 6 | const settingsPage = new SettingsPage();
|
| 7 | +const myRedisDatabasePage = new MyRedisDatabasePage(); |
7 | 8 |
|
8 | 9 | const mockedSettingsResponse = {
|
9 | 10 | agreements: {
|
@@ -42,3 +43,14 @@ test('Verify that user should accept User Agreements to continue working with th
|
42 | 43 | await t.click(addRedisDatabasePage.addDatabaseButton);
|
43 | 44 | await t.expect(addRedisDatabasePage.addDatabaseManually.exists).ok('User can add a database');
|
44 | 45 | });
|
| 46 | +test('Verify that user when user agrees to RI terms and conditions with encryption enabled, user is redirected to the Welcome page', async t => { |
| 47 | + //Click on "I have read and understood the Server Side Public License" and submit |
| 48 | + await t.click(settingsPage.switchEulaOption); |
| 49 | + await t.click(settingsPage.submitConsentsPopupButton); |
| 50 | + //Verify that Welcome page is displayed |
| 51 | + await t.expect(addRedisDatabasePage.welcomePageTitle.exists).ok('Welcome page is displayed'); |
| 52 | +}); |
| 53 | +test('Verify that user when user agrees to RI terms and conditions with encryption enabled, user is redirected to the Welcome page', async t => { |
| 54 | + // Verify that encryption enabled by default |
| 55 | + await t.expect(userAgreementPage.switchOptionEncryption.withAttribute('aria-checked', 'true').exists).ok('Encryption enabled by default'); |
| 56 | +}); |
0 commit comments