[ACA-4242] Update e2e login method to account for the changes done for ACA-4197 (#1910)

* build dev instead of e2e

* clear localStorage before new login

* re-enable all tests

* try again build.e2e

* enable one test

* exclude again

* no message

* no message
This commit is contained in:
Adina Parpalita
2021-01-11 17:55:14 +02:00
committed by GitHub
parent 13fa065654
commit b8feed47c3
4 changed files with 14 additions and 3 deletions

View File

@@ -2,5 +2,6 @@
"C306956": "https://alfresco.atlassian.net/browse/ACA-4196",
"C286314": "https://alfresco.atlassian.net/browse/ACA-2176",
"C213107": "https://alfresco.atlassian.net/browse/ACA-4197",
"C325049": "https://alfresco.atlassian.net/browse/ACA-4219"
"C325049": "https://alfresco.atlassian.net/browse/ACA-4219",
"C269102": "investigate and raise if it's a bug"
}

View File

@@ -24,7 +24,7 @@
*/
import { browser } from 'protractor';
import { AdminActions, APP_ROUTES, LoginPage, Utils, navigate } from '@alfresco/aca-testing-shared';
import { AdminActions, APP_ROUTES, LoginPage, Utils, navigate, BrowsingPage } from '@alfresco/aca-testing-shared';
import { BrowserActions } from '@alfresco/adf-testing';
describe('Login', () => {
@@ -134,7 +134,12 @@ describe('Login', () => {
it('[C213104] user is able to login after changing his password', async () => {
await loginPage.loginWith(testUser2.username, testUser2.password);
const page = new BrowsingPage();
await page.signOut();
await adminApiActions.login();
await adminApiActions.changePassword(testUser2.username, newPassword);
await loginPage.loginWith(testUser2.username, newPassword);
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
});