Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongranick-okta committed Aug 15, 2019
1 parent 7cf6f89 commit 8e41fc9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/okta-angular/test/e2e/harness/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ describe('Angular + Okta App', () => {
// util.slowDown(100);

it('should preserve query paramaters after redirecting to Okta', () => {
console.log('Starting test 2');
protectedPage.navigateToWithQuery();

oktaLoginPage.waitUntilVisible(environment.ISSUER);
Expand All @@ -110,6 +111,7 @@ describe('Angular + Okta App', () => {
});

it('should redirect to Okta for login', () => {
console.log('starting test 3');
loginPage.navigateTo();

oktaLoginPage.waitUntilVisible(environment.ISSUER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export class AppPage {
}

waitUntilLoggedOut() {
browser.wait(ExpectedConditions.presenceOf(this.getLoginButton()), 5000);
browser.wait(ExpectedConditions.presenceOf(this.getLoginButton()), 20000);
}

waitUntilLoggedIn() {
browser.wait(ExpectedConditions.presenceOf(this.getLogoutButton()), 5000);
browser.wait(ExpectedConditions.presenceOf(this.getLogoutButton()), 20000);
}

waitForElement(id: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export class OktaSignInPage {
}

signIn({username, password}) {
browser.wait(ExpectedConditions.presenceOf(this.getUsernameField()), 5000);
browser.wait(ExpectedConditions.elementToBeClickable(this.getUsernameField()), 5000);
console.log('Sending the login credentials');
this.getUsernameField().sendKeys(username);
this.getPasswordField().sendKeys(password);
this.getSubmitButton().click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ProtectedPage {
}

waitUntilVisible() {
browser.wait(ExpectedConditions.urlContains('/protected'), 5000);
browser.wait(ExpectedConditions.urlContains('/protected'), 20000);
}

waitUntilQueryVisible() {
Expand Down

0 comments on commit 8e41fc9

Please sign in to comment.