Skip to content

Conversation

vlad-dargel
Copy link
Contributor

No description provided.

@vlad-dargel vlad-dargel self-assigned this Jul 19, 2022
@vlad-dargel vlad-dargel changed the title add tests for improve eula screen feature tests for improve eula screen feature Jul 19, 2022
Comment on lines 48 to 57
async getAnalyticsSwitcherValue(): Promise<string> {
return await this.switchAnalyticsOption.getAttribute('aria-checked');
}

async getNotificationsSwitcherValue(): Promise<string> {
return await this.switchNovitifationsOption.getAttribute('aria-checked');
}

async getEulaSwitcherValue(): Promise<string> {
return await this.switchEulaOption.getAttribute('aria-checked');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add description, please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

}
}

async getRecommendedSwitcherValue(): Promise<string> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

await t.click(addRedisDatabasePage.addDatabaseButton);
await t.expect(addRedisDatabasePage.addDatabaseManually.exists).ok('User can add a database');
});
test('Verify that user should accept User Agreements to continue working with the application, the Welcome page is opened after user agrees, the encryption enabled by default and specific message', async t => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test name is very long

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

await t.click(addRedisDatabasePage.addDatabaseButton);
await t.expect(addRedisDatabasePage.addDatabaseManually.exists).ok('User can add a database');
});
test('Verify that user should accept User Agreements to continue working with the application, the Welcome page is opened after user agrees, the encryption enabled by default and specific message', async t => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ViktarStarastsenka - This isn't e2e, it has to be covered in JEST as many tests cases

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not my test, but ok, I'll update it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

await t.expect(userAgreementPage.pluginSectionWithText.visible).ok('Plugin text is displayed');
//Verify that text that is displayed in window is 'While adding new visualization plugins, use files only from trusted authors to avoid automatic execution of malicious code.'
const pluginText = userAgreementPage.pluginSectionWithText.innerText;
await t.expect(pluginText).eql('To avoid automatic execution of malicious code, when adding new Workbench plugins, use files from trusted authors only.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add error message

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@vlad-dargel vlad-dargel merged commit c1a63d3 into main Jul 20, 2022
@vlad-dargel vlad-dargel deleted the e2e/imporve-eula-screen branch July 20, 2022 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants