Skip to content

Commit

Permalink
set up to run cypress tests from modules
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Aug 1, 2023
1 parent 50958ac commit 59b470e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 169 deletions.
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ const { phpVersion, core } = require('./.wp-env.json')
const wpVersion = /[^/]*$/.exec(core)[0]

module.exports = defineConfig({
projectId: "h78f39",
projectId: "h78f39",
env: {
wpUsername: 'admin',
wpPassword: 'password',
wpVersion,
phpVersion,
pluginid: 'bluehost',
},
downloadsFolder: 'tests/cypress/downloads',
fixturesFolder: 'tests/cypress/fixtures',
Expand Down Expand Up @@ -75,7 +76,10 @@ module.exports = defineConfig({
return config;
},
baseUrl: 'http://localhost:8882',
specPattern: 'tests/cypress/integration/**/*.cy.{js,jsx,ts,tsx}',
specPattern: [
"tests/cypress/integration/**/*.cy.{js,jsx,ts,tsx}",
"vendor/newfold-labs/**/tests/cypress/integration/**/*.cy.{js,jsx,ts,tsx}",
],
supportFile: 'tests/cypress/support/index.js',
testIsolation: false,
excludeSpecPattern: [
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions tests/cypress/fixtures/ctbGET.json

This file was deleted.

4 changes: 0 additions & 4 deletions tests/cypress/fixtures/ctbPOST.json

This file was deleted.

Loading

0 comments on commit 59b470e

Please sign in to comment.