-
Notifications
You must be signed in to change notification settings - Fork 134
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
Conversation
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 Report
@@ 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); |
There was a problem hiding this comment.
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.
src/test-e2e/login/login-e2e.spec.ts
Outdated
@@ -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(''); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Depends on #2943