Skip to content

Commit

Permalink
chore: upgrade cypress to v13.6.6 (#2538)
Browse files Browse the repository at this point in the history
* chore: migrate cypress to v10

* fix: failing cypress test

* chore: bump cypress v13

* chore: increase cypress timeout

* chore: increase cypress timeout to 10s

* chore: clean up cypress config

* chore: cypress v10

* chore: cypress v11

* chore: keep cypress testing-library v7.0.3

* chore: use default cypress timeout
  • Loading branch information
kaylachun authored Mar 6, 2024
1 parent e5da569 commit d002f8f
Show file tree
Hide file tree
Showing 7 changed files with 234 additions and 185 deletions.
17 changes: 17 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'cypress';

export default defineConfig({
reporter: 'junit',
reporterOptions: {
mochaFile: 'cypress/results/output.xml',
toConsole: false,
},
screenshotsFolder: 'cypress/results/screenshots',
videosFolder: 'cypress/results/videos',
e2e: {
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config);
},
baseUrl: 'http://localhost:4200/',
},
});
11 changes: 0 additions & 11 deletions cypress.json

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Stoplight component', () => {

cy.findByRole('button', { name: /send api request/i }).click();

cy.waitFor('@todos-api');
cy.wait('@todos-api');

cy.findByText('hello world').should('exist');
});
Expand Down Expand Up @@ -152,7 +152,7 @@ function loadMarkdownPage() {
}

function visitNode(nodeId: string, nodeSlug: string) {
cy.intercept(`https://stoplight.io/api/v1/projects/cHJqOjYwNjYx/nodes/${nodeId}`).as('getNode');
cy.intercept(`https://stoplight.io/api/v1/projects/cHJqOjYwNjYx/nodes/${nodeId}-${nodeSlug}`).as('getNode');
cy.visit(`/stoplight-project/${nodeId}-${nodeSlug}`);
cy.wait('@getNode');
}
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"concurrently": "6.1.0",
"css-loader": "6.7.1",
"cssnano": "5.0.6",
"cypress": "^6.3.0",
"cypress": "^13.6.6",
"eslint": "7.31.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-jest": "24.4.0",
Expand Down
Loading

0 comments on commit d002f8f

Please sign in to comment.