Skip to content

Commit

Permalink
Testing internet access
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetmahabaleshwar-okta committed Apr 30, 2019
1 parent 80d0352 commit df2f8ed
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions e2e-tests/okta-hosted-login/specs/okta-hosted-login-flow-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}...`);
Expand Down Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit df2f8ed

Please sign in to comment.