-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [Multi-domain] Break out separate CI tasks to test the driver …
…with experimentalSessionAndOrigin on (#21148) * Attempt to run tests without the feature flag and the multi-domain folder * do it for real this time dummy * trying circleci changes * valid file??? * moar changes! * i am a master of bash scripting * try another exclude pattern * one more time with feeling * lets do it again * maybe this? * different parallel group * lets try this * updating tests phase 1 * updating tests phase 2 * Apply suggestions from code review Co-authored-by: Matt Schile <mschile@gmail.com> * Update tests * Run more tests * Re-locate system test * Flex message for firefox Co-authored-by: Matt Schile <mschile@gmail.com>
- Loading branch information
Showing
9 changed files
with
183 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,5 @@ | |
"retries": { | ||
"runMode": 2, | ||
"openMode": 0 | ||
}, | ||
"experimentalSessionAndOrigin": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/driver/cypress/integration/e2e/multi-domain/stability_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
describe('stability', () => { | ||
describe('before each transitions', () => { | ||
describe('transitioning from a before block to an it block while unstable', () => { | ||
beforeEach(() => { | ||
cy.visit('/fixtures/auth/index.html') | ||
cy.window().then((win) => { | ||
win.location.href = 'http://localhost:3500/timeout?ms=1000' | ||
}) | ||
}) | ||
|
||
it('fails if the page does not load within the page load timeout', { defaultCommandTimeout: 50, pageLoadTimeout: 500 }, (done) => { | ||
cy.on('fail', (err) => { | ||
expect(err.message).to.include(`Timed out after waiting \`500ms\` for your remote page to load.`) | ||
done() | ||
}) | ||
|
||
cy.get('[data-cy="login-idp"]').click() // Takes you to idp.com | ||
}) | ||
|
||
it('waits for the page to load before running the command', { defaultCommandTimeout: 50 }, () => { | ||
cy.get('body').invoke('text').should('equal', 'timeout') | ||
}) | ||
|
||
it('will retry and fail the command after the page loads', { defaultCommandTimeout: 50 }, (done) => { | ||
cy.on('fail', (err) => { | ||
expect(err.message).to.include(`Timed out retrying after 50ms: expected 'timeout' to equal 'not timeout'`) | ||
done() | ||
}) | ||
|
||
cy.get('body').invoke('text').should('equal', 'not timeout') | ||
}) | ||
}) | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e3161a0
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.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally:
e3161a0
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.
Circle has built the
win32 x64
version of the Test Runner.Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.
Run this command to install the pre-release locally: