Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ fixture `Database overview`
await t.typeText(cliPage.cliCommandInput, 'FLUSHDB');
await t.pressKey('enter');
await t.click(cliPage.cliCollapseButton);
//Delete all databases
await t.click(myRedisDatabasePage.myRedisDBButton);
await myRedisDatabasePage.deleteAllDatabases();
})
test('Verify that user can see the list of Modules updated each time when he connects to the database', async t => {
let firstDatabaseModules = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ fixture `Logical databases`
await myRedisDatabasePage.deleteAllDatabases();
await t.expect(addRedisDatabasePage.addDatabaseButton.exists).ok('The add redis database view', { timeout: 20000 });
})
.afterEach(async t => {
//Delete databases
await myRedisDatabasePage.deleteAllDatabases();
})
test('Verify that user can add DB with logical index via host and port from Add DB manually form', async t => {
const index = '0';
await addRedisDatabasePage.addRedisDataBase(ossStandaloneConfig);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { RequestMock } from 'testcafe';
import { commonUrl } from '../../../helpers/conf';
import { UserAgreementPage, AddRedisDatabasePage, SettingsPage } from '../../../pageObjects';
import { UserAgreementPage, AddRedisDatabasePage, SettingsPage, MyRedisDatabasePage } from '../../../pageObjects';

const addRedisDatabasePage = new AddRedisDatabasePage();
const settingsPage = new SettingsPage();
const myRedisDatabasePage = new MyRedisDatabasePage();

const mockedSettingsResponse = {
agreements: {
Expand Down Expand Up @@ -42,3 +43,14 @@ test('Verify that user should accept User Agreements to continue working with th
await t.click(addRedisDatabasePage.addDatabaseButton);
await t.expect(addRedisDatabasePage.addDatabaseManually.exists).ok('User can add a database');
});
test('Verify that user when user agrees to RI terms and conditions with encryption enabled, user is redirected to the Welcome page', async t => {
//Click on "I have read and understood the Server Side Public License" and submit
await t.click(settingsPage.switchEulaOption);
await t.click(settingsPage.submitConsentsPopupButton);
//Verify that Welcome page is displayed
await t.expect(addRedisDatabasePage.welcomePageTitle.exists).ok('Welcome page is displayed');
});
test('Verify that user when user agrees to RI terms and conditions with encryption enabled, user is redirected to the Welcome page', async t => {
// Verify that encryption enabled by default
await t.expect(userAgreementPage.switchOptionEncryption.withAttribute('aria-checked', 'true').exists).ok('Encryption enabled by default');
});