-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tests and test attempts data * screenshots data structure and tests with attempts sent as expected with cypress 13 * remove yarn * chore: wip * added types and quick fix for removing not relevant attempts and screenshots to spec file * fix: combine standalone with spec:after results * chore: fixing types * feat: support cypres@13+ * added types and quick fix for removing not relevant attempts and screenshots to spec file * chore: fixing types * chore: release v1.10.0-beta.1 * fix: set test id for pending tests * chore: release v1.10.0-beta.2 * validation tests for cypress 12 and 13 with the latest modification based on the results from cypress 12 without modification * added viewer for results comparison * fix: issue 179 fixes * chore: release v1.10.0-beta.3 * automated test validation * fix for cypress 13 ccy 1.10 * added test full pipeline * log fixes * fix: coverage uploads * fix: backfill config * chore: release v1.10.0-beta.4 * added avoided properties to make the tests pass * fixing .env variables * ci files implementation * chore: remove debug [skip ci] * functions refactor * fixes to cypress cloud and tests * added throw error test * fix spec properties * fix: pick test:after results explicitly * chore: release v1.10.0-beta.5 * removed avoidable properties * fix ci files * added properties to comply with ci runner * fix for comply with ci runner properties avoid * fix last avoidable properties for cypress 13 * cypress 12 ccy 1.9.4 fixes * fix ci cypress version installation * fix cypress config to support e2e_smoke spec patttern * attempt to fix e2e-exports ci * attempt 2 to fix e2e-exports ci * attempt 1 fix e2e-smoke-windows ci * roolback attempt 1 fix e2e-smoke-windows ci * fix ts errors and added api test property avoided * fix unit tests * make cy 12 test work * chore: .. * fix * fix remove require cypress * chore: change script name * chore: wip [skip ci] * chore: .. [skip ci] * chore: add warnings * chore: fix tests * chore: .. * chore: add dataFlow tests * fix: videoUploadOnPasses [skip ci] * fix: update snapshots * chore: fix warnings * chore: testing CI * fix: spec.name * chore: .. * chore: .. * chore: .. * chore: .. * fix: custom screenshot name * chore: e2e cy 13 * chore: .. * chore: .. * fix: reimplement cy13 comatibility tests * chore: readd e2e tests * chore: remove node 14 --------- Co-authored-by: Miguel Langarano <[email protected]>
- Loading branch information
1 parent
209b64f
commit c2ddfb3
Showing
249 changed files
with
15,516 additions
and
5,744 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: e2e-cypress-12-ccy-1_10 | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
e2e-cypress-12-ccy-1_10: | ||
if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
env: | ||
DEBUG: currents:* | ||
|
||
strategy: | ||
matrix: | ||
node-version: ["18"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Install Cypress 12.17.4 | ||
run: npm install [email protected] | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run compatibility tests | ||
working-directory: ./e2e/cypress-12-demo | ||
env: | ||
CURRENTS_API_KEY: ${{ secrets.CURRENTS_API_KEY }} | ||
CURRENTS_RUN_BASE_URL: ${{ secrets.CURRENTS_RUN_BASE_URL }} | ||
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }} | ||
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }} | ||
|
||
run: > | ||
npm run runtest |
File renamed without changes.
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,41 @@ | ||
name: e2e-cypress-13-ccy-1_10 | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
e2e-cypress-13-ccy-1_10: | ||
if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
env: | ||
DEBUG: currents:* | ||
|
||
strategy: | ||
matrix: | ||
node-version: ["18"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Install Cypress 13 | ||
run: npm install cypress@13 | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Run compatibility tests | ||
working-directory: ./e2e/cypress-13-demo | ||
env: | ||
CURRENTS_API_KEY: ${{ secrets.CURRENTS_API_KEY }} | ||
CURRENTS_RUN_BASE_URL: ${{ secrets.CURRENTS_RUN_BASE_URL }} | ||
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }} | ||
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }} | ||
|
||
run: > | ||
npx jest |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run format |
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
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,13 @@ | ||
module.exports = { | ||
e2e: { | ||
batchSize: 4, // how many specs to send in one batch | ||
}, | ||
component: { | ||
batchSize: 5, // how many specs to send in one batch | ||
}, | ||
// eslint-disable-next-line turbo/no-undeclared-env-vars | ||
projectId: !!(process.env.GITHUB_ACTION || process.env.CIRCLE_BRANCH) | ||
? "Ij0RfK" | ||
: "l4zuz8", | ||
// cloudServiceUrl: "http://localhost:1234", | ||
}; |
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,26 @@ | ||
import { defineConfig } from "cypress"; | ||
import currents from "cypress-cloud/plugin"; | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
baseUrl: "https://todomvc.com/examples/vanillajs", | ||
supportFile: "cypress/support/e2e.ts", | ||
specPattern: "cypress/*/**/*.spec.js", | ||
setupNodeEvents(on, config) { | ||
require("@cypress/grep/src/plugin")(config); | ||
// require("cypress-terminal-report/src/installLogsPrinter")(on); | ||
return currents(on, config); | ||
}, | ||
}, | ||
|
||
component: { | ||
specPattern: ["pages/__tests__/*.spec.tsx"], | ||
setupNodeEvents(on, config) { | ||
return currents(on, config); | ||
}, | ||
devServer: { | ||
framework: "next", | ||
bundler: "webpack", | ||
}, | ||
}, | ||
}); |
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,7 @@ | ||
describe('Failing test with 2 attempts', () => { | ||
it('should try 2 times', { | ||
retries: 2, | ||
}, () => { | ||
cy.wrap(false).should('be.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
let attempt = 0; | ||
describe('Failing test with 2 attempts, passed test and flaky test with 2 attempts', () => { | ||
it('should try 2 times', { | ||
retries: 2, | ||
}, () => { | ||
cy.wrap(false).should('be.true'); | ||
}); | ||
|
||
it('should assert that true is true', () => { | ||
cy.wrap(true).should('be.true'); | ||
}); | ||
|
||
it('should fail on the first attempt and pass on the second', { retries: 2 }, () => { | ||
if (attempt === 0) { | ||
attempt++; | ||
cy.wrap(false).should('be.true'); // This will fail on the first attempt | ||
} else { | ||
cy.wrap(true).should('be.true'); // This will pass on the second attempt | ||
} | ||
}); | ||
}); |
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,5 @@ | ||
describe('Ignored test', () => { | ||
it.skip('should be a skipped test', () => { | ||
cy.wrap(false).should('be.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
describe('Passed test with screenshot, passed test with no screenshots', () => { | ||
it('should assert and take a screenshot', () => { | ||
// Assert that true is true | ||
cy.wrap(true).should('be.true'); | ||
|
||
// Take a screenshot | ||
cy.screenshot('internal-assert-screenshot'); | ||
}); | ||
|
||
it('should assert that true is true', () => { | ||
cy.wrap(true).should('be.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
describe('Should throw an error', () => { | ||
it('Should throw an error', () => { | ||
throw new Error("test error") | ||
}); | ||
}); |
Oops, something went wrong.