Skip to content

Commit

Permalink
Updated cypress to recent version (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmundra authored Sep 21, 2024
1 parent 4eca133 commit 3c22d95
Show file tree
Hide file tree
Showing 14 changed files with 197 additions and 178 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ public/build
/public/index.html
.vscode
cypress/results
cypress/downloads
.nova
.DS_Store
20 changes: 20 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineConfig } from "cypress";

export default defineConfig({
video: false,
videosFolder: "cypress/results",
reporter: "junit",
reporterOptions: {
mochaFile: "cypress/results/junit.[hash].xml",
toConsole: false,
},
screenshotsFolder: "cypress/results/screenshots",
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.js")(on, config);
},
baseUrl: "http://localhost:10001",
},
});
11 changes: 0 additions & 11 deletions cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="Cypress" />

describe("About", () => {
before(() => {
beforeEach(() => {
cy.visit("/about", {
onBeforeLoad(win) {
cy.stub(win.console, "error").as("consoleError");
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("All chapters", () => {
});

describe("Chapter", () => {
before(() => {
beforeEach(() => {
cy.visit("/chapter/success_criteria_level_a");
cy.get("button").contains("+ Expand All Sections").click();
});
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 3c22d95

Please sign in to comment.