Skip to content

Commit

Permalink
Update our cypress utils package to 0.2.0 and update cypress to the l…
Browse files Browse the repository at this point in the history
…atest. Ensure we can access iframes
  • Loading branch information
dkotter committed Oct 13, 2023
1 parent 2a9d295 commit a7f1ce0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 35 deletions.
56 changes: 24 additions & 32 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"cypress:run": "cypress run --config-file tests/cypress/config.js"
},
"devDependencies": {
"@10up/cypress-wp-utils": "^0.1.0",
"@10up/cypress-wp-utils": "^0.2.0",
"@wordpress/env": "^5.3.0",
"@wordpress/scripts": "23.3.0",
"cypress": "^13.1.0",
"cypress": "^13.3.1",
"cypress-mochawesome-reporter": "^3.4.0",
"husky": "^8.0.1",
"lint-staged": "^10.0.7"
Expand Down
1 change: 1 addition & 0 deletions tests/cypress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { defineConfig } = require('cypress');
const { readConfig } = require('@wordpress/env/lib/config');

module.exports = defineConfig({
chromeWebSecurity: false,
fixturesFolder: 'tests/cypress/fixtures',
screenshotsFolder: 'tests/cypress/screenshots',
videosFolder: 'tests/cypress/videos',
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/e2e/insert-character-in-post.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe( 'Insert character in post', () => {
cy.window().then( ( win ) => {
const { wp } = win;

const paraBlock = wp.blocks.createBlock(
const paraBlock = wp.blocks.createBlock(
'core/paragraph',
{
content: 'Hello world'
Expand Down

0 comments on commit a7f1ce0

Please sign in to comment.