diff --git a/e2e-tests/okta-hosted-login/specs/okta-hosted-login-flow-spec.js b/e2e-tests/okta-hosted-login/specs/okta-hosted-login-flow-spec.js index 753c4416..55ea5b42 100644 --- a/e2e-tests/okta-hosted-login/specs/okta-hosted-login-flow-spec.js +++ b/e2e-tests/okta-hosted-login/specs/okta-hosted-login-flow-spec.js @@ -31,6 +31,12 @@ describe('Okta Hosted Login Flow', () => { browser.ignoreSynchronization = true; }); + it('can access internet', async() => { + browser.get("https://lambdatest.com"); + element(by.css('p.home-btn > a.home-cta')).click(); + expect(browser.getTitle()).toEqual('Sign up for free | Cross Browser Testing Tool | LambdaTest - LambdaTest'); + }); + it('can login with Okta as the IDP', async () => { browser.get(appRoot); console.log(`Loading home page ${appRoot}...`); @@ -63,13 +69,13 @@ describe('Okta Hosted Login Flow', () => { authenticatedHomePage.waitForPageLoad(); }); - it('can access user profile', async () => { + xit('can access user profile', async () => { authenticatedHomePage.viewProfile(); profile.waitForPageLoad(); expect(profile.getEmailClaim()).toBe(browser.params.login.email); }); - it('can access resource server messages after login', async () => { + xit('can access resource server messages after login', async () => { // If it's not implicit flow, don't test messages resource server if (process.env.TEST_TYPE !== 'implicit') { return; @@ -79,7 +85,7 @@ describe('Okta Hosted Login Flow', () => { expect(messagesPage.getMessage()).toBeTruthy(); }); - it('can log the user out', async () => { + xit('can log the user out', async () => { browser.get(appRoot); console.log('Waiting for home page...'); authenticatedHomePage.waitForPageLoad();