Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Defines the WordPress and PHP Versions matrix to run tests on.
strategy:
matrix:
wp-versions: [ 'latest' ] #[ '6.1.1', 'latest' ]
wp-versions: [ '7.1-beta2' ] #[ '6.1.1', 'latest' ]
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] #[ '7.3', '7.4', '8.0', '8.1' ]

# Steps to install, configure and run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
wp-version: [ 'latest' ]
wp-version: [ '7.1-beta2' ]
php-version: [ '8.1', '8.2', '8.3', '8.4' ]
test-group:
- 'EndToEnd/broadcasts/blocks-shortcodes'
Expand Down
12 changes: 9 additions & 3 deletions tests/Support/Helper/WPGutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ public function isGutenbergIFrameEditorEnabled()
*/
public function switchToGutenbergIFrameEditor($I)
{
// Don't switch if the iframe doesn't exist e.g. Divi is active, which prevents
// the iframe block editor in WordPress 7.0+ from being used.
if ( ! $I->tryToSeeElement('iframe[name="editor-canvas"]')) {
// Wait for the iframe to mount. In WordPress 7.1+ the editor iframe
// can take longer to appear in the DOM than a tryToSeeElement()
// check, causing the switch to be silently skipped. Catch the timeout
// so that environments which intentionally have no iframe (e.g. Divi
// is active, which prevents the iframe block editor from being used)
// still fall through to the non-iframe path.
try {
$I->waitForElement('iframe[name="editor-canvas"]', 10);
} catch (\Facebook\WebDriver\Exception\TimeoutException $e) {
return;
}

Expand Down
Loading