Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harden app delete e2e test to reduce chance of concurrency failures #2942

Merged
merged 4 commits into from
Sep 11, 2018

Conversation

richard-cox
Copy link
Contributor

@richard-cox richard-cox commented Aug 31, 2018

Depends on #2943

@cfdreddbot
Copy link

Hey richard-cox!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@codecov
Copy link

codecov bot commented Aug 31, 2018

Codecov Report

Merging #2942 into v2-master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           v2-master    #2942   +/-   ##
==========================================
  Coverage      71.35%   71.35%           
==========================================
  Files            605      605           
  Lines          25894    25894           
  Branches        5872     5872           
==========================================
  Hits           18477    18477           
  Misses          7417     7417

let appCount = 0;
appWall.appList.getTotalResults().then(count => appCount = count);
appWall.appList.header.setSearchText(testAppName);
expect(appWall.appList.getTotalResults()).toBe(1);

e2e.sleep(5000);
Copy link
Contributor

Choose a reason for hiding this comment

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

I know these aren't due to your PR - but why do we have two 5s delays ? We should avoid using sleep... we must be waiting for something, so we should wait for it.

@@ -16,7 +16,7 @@ describe('Login', () => {

it('- should reach log in page', () => {
expect(loginPage.isLoginPage()).toBeTruthy();
expect<any>(loginPage.getTitle()).toEqual('STRATOS');
expect<any>(loginPage.getTitle()).toEqual('');
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this altogether - it won't work on forks, if they unhide the title.

- Removed two of the original sleeps. These have been in since the begining
 of the e2e tests, not sure why. Have removed them and tested against
 capbristol.
- Removed check for empty login title text. Whilst handy for vanila stratos
 it will break downstream.
Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

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

LGTM

@nwmac nwmac merged commit ba414a8 into v2-master Sep 11, 2018
@nwmac nwmac deleted the e2e-harden-delete-app branch September 11, 2018 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants