From 1b32fa7916490b85c0436cce8a34236c748283aa Mon Sep 17 00:00:00 2001 From: Paul Jaffre Date: Thu, 13 Jan 2022 11:11:19 -0500 Subject: [PATCH] update file paths & names to match new config --- examples/blogs__application-actions/cypress/e2e/spec.cy.js | 2 +- examples/fundamentals__custom-browsers/cypress.config.js | 4 ++-- .../fundamentals__dynamic-tests-from-csv/cypress.config.js | 2 +- .../fundamentals__timeout/cypress/e2e/all-tests-spec.cy.js | 2 +- examples/logging-in__using-app-code/cypress.config.js | 2 +- examples/preprocessors__typescript-webpack/cypress.config.js | 2 +- examples/testing-dom__download/cypress.config.js | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/blogs__application-actions/cypress/e2e/spec.cy.js b/examples/blogs__application-actions/cypress/e2e/spec.cy.js index f3504c7d4..ca0bd9157 100644 --- a/examples/blogs__application-actions/cypress/e2e/spec.cy.js +++ b/examples/blogs__application-actions/cypress/e2e/spec.cy.js @@ -10,7 +10,7 @@ import { TODO_ITEM_THREE, TODO_ITEM_TWO, toggle, -} from './utils' +} from './utils.cy' describe('TodoMVC', function () { beforeEach(function () { diff --git a/examples/fundamentals__custom-browsers/cypress.config.js b/examples/fundamentals__custom-browsers/cypress.config.js index e9fb3c710..78b7c0cc9 100644 --- a/examples/fundamentals__custom-browsers/cypress.config.js +++ b/examples/fundamentals__custom-browsers/cypress.config.js @@ -1,12 +1,12 @@ const { defineConfig } = require("cypress") -const tasks = require("./tasks") +const tasks = require("./cypress/plugins/tasks") module.exports = defineConfig({ supportFile: false, fixturesFolder: false, e2e: { - setupNodeEvents(on, config) { + setupNodeEvents (on, config) { on("task", tasks) // only filter browsers if we are passed a list - this way diff --git a/examples/fundamentals__dynamic-tests-from-csv/cypress.config.js b/examples/fundamentals__dynamic-tests-from-csv/cypress.config.js index c7e00d0de..4a3aa1bae 100644 --- a/examples/fundamentals__dynamic-tests-from-csv/cypress.config.js +++ b/examples/fundamentals__dynamic-tests-from-csv/cypress.config.js @@ -15,7 +15,7 @@ module.exports = defineConfig({ // `config` is the resolved Cypress config async setupNodeEvents(on, config) { // let"s load the CSV file - const filename = path.join(__dirname, "users.csv") + const filename = path.join(__dirname, "cypress/plugins/users.csv") console.log("loading file", filename) const text = fs.readFileSync(filename, "utf8") diff --git a/examples/fundamentals__timeout/cypress/e2e/all-tests-spec.cy.js b/examples/fundamentals__timeout/cypress/e2e/all-tests-spec.cy.js index a962e2112..a9a3be987 100644 --- a/examples/fundamentals__timeout/cypress/e2e/all-tests-spec.cy.js +++ b/examples/fundamentals__timeout/cypress/e2e/all-tests-spec.cy.js @@ -1,6 +1,6 @@ /// -import { seconds, testTimeout } from './timeout' +import { seconds, testTimeout } from './timeout.cy' describe('Global timeout of 3 seconds', () => { // Let's try to time limit _every test_ diff --git a/examples/logging-in__using-app-code/cypress.config.js b/examples/logging-in__using-app-code/cypress.config.js index 0556e3ce6..a423347c5 100644 --- a/examples/logging-in__using-app-code/cypress.config.js +++ b/examples/logging-in__using-app-code/cypress.config.js @@ -15,7 +15,7 @@ module.exports = defineConfig({ const options = { // send in the options from your webpack.config.js, so it works the same // as your app's code - webpackOptions: require("../../webpack.config"), + webpackOptions: require("./webpack.config"), watchOptions: {}, } diff --git a/examples/preprocessors__typescript-webpack/cypress.config.js b/examples/preprocessors__typescript-webpack/cypress.config.js index dfa0b46df..ac5bfd81c 100644 --- a/examples/preprocessors__typescript-webpack/cypress.config.js +++ b/examples/preprocessors__typescript-webpack/cypress.config.js @@ -8,7 +8,7 @@ module.exports = defineConfig({ e2e: { setupNodeEvents(on, config) { const options = { - webpackOptions: require("../../webpack.config"), + webpackOptions: require("./webpack.config"), } on("file:preprocessor", wp(options)) diff --git a/examples/testing-dom__download/cypress.config.js b/examples/testing-dom__download/cypress.config.js index a88606271..38bc393a5 100644 --- a/examples/testing-dom__download/cypress.config.js +++ b/examples/testing-dom__download/cypress.config.js @@ -6,8 +6,8 @@ const { stripIndent } = require("common-tags") const globby = require("globby") const { rmdir } = require("fs") -const { readExcelFile } = require("./read-excel") -const { readPdf } = require("./read-pdf") +const { readExcelFile } = require("./cypress/plugins/read-excel") +const { readPdf } = require("./cypress/plugins/read-pdf") module.exports = defineConfig({ fixturesFolder: false,