Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair E2E tests #103

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
fail-fast: false
matrix:
core:
- { name: 'WP latest', version: 'latest', number: '6.1' }
- { name: 'WP trunk', version: 'WordPress/WordPress#master', number: '6.2' }
- { name: 'WP latest', version: 'latest', number: '6.2.2' }
- { name: 'WP trunk', version: 'WordPress/WordPress#master', number: '6.4' }
- { name: 'WP minimum', version: 'WordPress/WordPress#5.7', number: '5.7' }
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"prettify": "prettier --write \"**/*.{ts,js}\"",
"typecheck": "tsc --noEmit",
"cypress:open": "cypress open --config-file tests/cypress/cypress-config.js --e2e --browser chrome",
"cypress:run": "cypress run --config-file tests/cypress/cypress-config.js",
"cypress:run": "cypress run --config-file tests/cypress/cypress-config.js --browser chrome",
"env": "wp-env",
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"postenv:start": "./tests/bin/initialize.sh"
"postenv:start": "bash ./tests/bin/initialize.sh"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion run-all-cores.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSIONS="5.7 5.8 5.9 6.0 6.1 master:6.2"
VERSIONS="5.7 5.8 5.9 6.0 6.1 6.2 master:6.4"

SPEC="-- --quiet"

Expand Down
7 changes: 7 additions & 0 deletions tests/cypress/e2e/insert-block.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ describe('Command: insertBlock', () => {
return false;
}
});

// Ignore error related to CORS that occurs when trying to access a remote resource.
Cypress.on('uncaught:exception', (err, runnable) => {
if (err.message.includes('FastAverageColor: Error loading image')) {
return false;
}
});
});

it('Should be able to Insert first paragraph on page', () => {
Expand Down