Skip to content

Commit

Permalink
Fix some e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcanonieto committed Jun 19, 2020
1 parent 058f417 commit 0f65480
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions e2e/core/settings-component.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ describe('Settings component', () => {

describe('Should be able to change Urls in the Settings', () => {
beforeEach(async () => {
await settingsPage.goToSettingsPage();
await loginPage.goToLoginPage();
await loginPage.clickSettingsIcon();
});

it('[C245641] Should navigate User from Settings page to Login screen', async () => {
Expand All @@ -43,11 +44,9 @@ describe('Settings component', () => {
});

it('[C291948] Should save ALL Settings changes when User clicks Apply button', async () => {
await loginPage.goToLoginPage();
await loginPage.clickSettingsIcon();
await settingsPage.setProviderEcmBpm();
await loginPage.waitForElements();
await settingsPage.goToSettingsPage();
await loginPage.clickSettingsIcon();
await expect(await settingsPage.getSelectedOptionText()).toEqual('ALL', 'The Settings changes are not saved');
await expect(await settingsPage.getBpmHostUrl()).toEqual(browser.params.testConfig.appConfig.bpmHost, 'The BPM Settings changes are not saved');
await expect(await settingsPage.getEcmHostUrl()).toEqual(browser.params.testConfig.appConfig.ecmHost, 'The ECM Settings changes are not saved');
Expand Down

0 comments on commit 0f65480

Please sign in to comment.