Skip to content

Commit

Permalink
Remove e2e already covered by unit test (#7058)
Browse files Browse the repository at this point in the history
* remove e2e not possible to automate

* remove e2e already covered by unit test

* Update login-component.e2e.ts
  • Loading branch information
eromano authored May 25, 2021
1 parent a45c596 commit 0fcb15c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 237 deletions.
123 changes: 0 additions & 123 deletions e2e/core/header-component.e2e.ts

This file was deleted.

51 changes: 0 additions & 51 deletions e2e/core/icons-component.e2e.ts

This file was deleted.

58 changes: 0 additions & 58 deletions e2e/core/login/login-component.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ import {
import { browser } from 'protractor';
import { ContentServicesPage } from '../../core/pages/content-services.page';
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
import { ProcessServicesPage } from '../../process-services/pages/process-services.page';
import { LoginShellPage } from '../../core/pages/login-shell.page';

describe('Login component', () => {

const processServicesPage = new ProcessServicesPage();
const navigationBarPage = new NavigationBarPage();
const userInfoPage = new UserInfoPage();
const contentServicesPage = new ContentServicesPage();
Expand Down Expand Up @@ -155,18 +153,6 @@ describe('Login component', () => {
await loginPage.checkRegisterIsNotDisplayed();
});

it('[C260049] Should be possible to login to Process Services with Content Services disabled', async () => {
await LocalStorageUtil.setStorageItem('providers', 'BPM');

await loginPage.goToLoginPage();
await expect(await loginPage.getSignInButtonIsEnabled()).toBe(false);
await loginPage.loginWithProfile('admin');
await navigationBarPage.navigateToProcessServicesPage();
await processServicesPage.checkApsContainer();
await navigationBarPage.navigateToContentServices();
await loginPage.waitForElements();
});

it('[C260050] Should be possible to login to Content Services with Process Services disabled', async () => {
await LocalStorageUtil.setStorageItem('providers', 'ECM');

Expand All @@ -177,20 +163,6 @@ describe('Login component', () => {
await contentServicesPage.checkAcsContainer();
});

it('[C260051] Should be able to login to both Content Services and Process Services', async () => {
await LocalStorageUtil.setStorageItem('providers', 'ALL');

await loginPage.goToLoginPage();
await expect(await loginPage.getSignInButtonIsEnabled()).toBe(false);
await loginPage.loginWithProfile('admin');
await navigationBarPage.navigateToProcessServicesPage();
await processServicesPage.checkApsContainer();
await navigationBarPage.navigateToContentServices();
await contentServicesPage.checkAcsContainer();
await navigationBarPage.clickLoginButton();
await loginPage.waitForElements();
});

it('[C277754] Should the user be redirect to the login page when the Content Service session expire', async () => {
await LocalStorageUtil.setStorageItem('providers', 'ECM');

Expand All @@ -203,36 +175,6 @@ describe('Login component', () => {
await LocalStorageUtil.setStorageItem('providers', 'ALL');
});

it('[C279932] Should successRoute property change the landing page when the user Login', async () => {
await loginPage.goToLoginPage();
await loginPage.enableSuccessRouteSwitch();
await loginPage.enterSuccessRoute('activiti');
await loginPage.loginWithProfile('admin');
await processServicesPage.checkApsContainer();
});

it('[C279931] Should the user be redirect to the login page when the Process Service session expire', async () => {
await loginPage.goToLoginPage();
await loginPage.loginWithProfile('admin');
await browser.executeScript('window.localStorage.removeItem("ADF_ticket-BPM");');
await BrowserActions.getUrl(browser.baseUrl + '/activiti');
await loginPage.waitForElements();
});

it('[C279930] Should a user still be logged-in when open a new tab', async () => {
await loginPage.goToLoginPage();
await loginPage.loginWithProfile('admin');

await browser.executeScript("window.open('about: blank', '_blank');");

const handles = await browser.getAllWindowHandles();
await browser.switchTo().window(handles[1]);
await BrowserActions.getUrl(browser.baseUrl + '/activiti');
await processServicesPage.checkApsContainer();
await BrowserActions.getUrl(browser.baseUrl + '/files');
await contentServicesPage.checkAcsContainer();
});

it('[C279933] Should be possible change the login component logo when logoImageUrl is changed', async () => {
await loginPage.goToLoginPage();
await loginPage.enableLogoSwitch();
Expand Down
5 changes: 0 additions & 5 deletions e2e/protractor.excludes.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"C260049": "login problem APS not basic",
"C260051": "login problem APS not basic",
"C279932": "login problem APS not basic",
"C279931": "login problem APS not basic",
"C279930": "login problem APS not basic",
"C269081": "https://alfresco.atlassian.net/browse/ADF-5385",
"C272819": "https://alfresco.atlassian.net/browse/ADF-5385",
"C290069": "https://alfresco.atlassian.net/browse/ADF-5387",
Expand Down

0 comments on commit 0fcb15c

Please sign in to comment.