-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from 10up/fix/166
Cypress integration migrated to 11+
- Loading branch information
Showing
9 changed files
with
4,488 additions
and
3,572 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,22 @@ | ||
const { defineConfig } = require('cypress') | ||
|
||
module.exports = defineConfig({ | ||
fixturesFolder: __dirname+'/fixtures', | ||
screenshotsFolder: __dirname+'/screenshots', | ||
videosFolder: __dirname+'/videos', | ||
downloadsFolder: __dirname+'/downloads', | ||
video: false, | ||
reporter: 'mochawesome', | ||
reporterOptions: { | ||
reportDir: __dirname+'/reports' | ||
}, | ||
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(__dirname+'/plugins/index.js')(on, config) | ||
}, | ||
specPattern: __dirname+'/integration/*.test.js', | ||
supportFile: __dirname+'/support/index.js', | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import {deactivatePlugin} from "@10up/cypress-wp-utils/lib/commands/deactivate-plugin"; | ||
|
||
describe('Admin can login and make sure plugin is activated', () => { | ||
before(() => { | ||
cy.login(); | ||
}); | ||
|
||
it('Can activate plugin if it is deactivated', () => { | ||
cy.activatePlugin('simple-local-avatars'); | ||
cy.deactivatePlugin('simple-local-avatars'); | ||
cy.activatePlugin('simple-local-avatars'); | ||
}); | ||
}); |
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