[no-issue] Parallel run e2e and e2e common action refactoring (#4702)

This commit is contained in:
Eugenio Romano
2019-05-13 04:44:35 +02:00
committed by GitHub
parent a48bfc3714
commit 898e3b5a80
288 changed files with 8704 additions and 5130 deletions

View File

@@ -62,23 +62,19 @@ describe('Header Component', () => {
await this.alfrescoJsApi.login(user.email, user.password);
await loginPage.loginToProcessServicesUsingUserModel(user);
done();
});
beforeEach(async(done) => {
loginPage.loginToProcessServicesUsingUserModel(user);
navigationBarPage.clickHeaderDataButton();
done();
});
afterAll(async(done) => {
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
done();
});
@@ -94,33 +90,23 @@ describe('Header Component', () => {
it('[C279996] Should be able to show/hide menu button', () => {
headerPage.clickShowMenuButton();
navigationBarPage.checkMenuButtonIsNotDisplayed();
headerPage.clickShowMenuButton();
navigationBarPage.checkMenuButtonIsDisplayed();
});
it('[C279999] Should be able to change the colour between primary, accent and warn', () => {
headerPage.changeHeaderColor(names.color_accent);
navigationBarPage.checkToolbarColor(names.color_accent);
headerPage.changeHeaderColor(names.color_primary);
navigationBarPage.checkToolbarColor(names.color_primary);
headerPage.changeHeaderColor(names.color_warn);
navigationBarPage.checkToolbarColor(names.color_warn);
});
it('[C280552] Should be able to change the colour of the header by typing a hex code', () => {
headerPage.addHexCodeColor(names.color_custom);
navigationBarPage.checkToolbarColor(names.color_custom);
});
it('[C279997] Should be able to change the title of the app', () => {
@@ -137,23 +123,18 @@ describe('Header Component', () => {
it('[C280553] Should be able to set a hyperlink to the logo', () => {
headerPage.addLogoHyperlink(names.urlPath_logo_link);
navigationBarPage.clickAppLogo(names.logo_title);
settingsPage.checkProviderDropdownIsDisplayed();
});
it('[C286517] Should be able to set a hyperlink to the logo text', () => {
headerPage.addLogoHyperlink(names.urlPath_logo_link);
navigationBarPage.clickAppLogoText();
settingsPage.checkProviderDropdownIsDisplayed();
});
it('[C280554] Should be able to customise the tooltip-text of the logo', () => {
headerPage.addLogoTooltip(names.logo_tooltip);
navigationBarPage.checkLogoTooltip(names.logo_tooltip);
});