Skip to content

Commit

Permalink
E2E tests: remove check for post page (#28299)
Browse files Browse the repository at this point in the history
  • Loading branch information
adimoldovan authored Jan 11, 2023
1 parent fbbafd6 commit 7d615cf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tools/e2e-commons/bin/e2e-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ configure_wp_env() {
fi
$BASE_CMD wp option set permalink_structure ""
$BASE_CMD wp jetpack module deactivate sso
$BASE_CMD wp theme activate twentytwentyone

echo
$BASE_CMD wp plugin status
Expand Down
2 changes: 1 addition & 1 deletion tools/e2e-commons/pages/page-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class PageActions {
await this.waitForDomContentLoaded();
}

if ( checkSelectors ) {
if ( checkSelectors && this.selectors ) {
for ( const selector of this.selectors ) {
await this.waitForElementToBeVisible( selector );
}
Expand Down
2 changes: 1 addition & 1 deletion tools/e2e-commons/pages/postFrontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { resolveSiteUrl } from '../helpers/utils-helper.cjs';
export default class PostFrontendPage extends WpPage {
constructor( page ) {
const url = resolveSiteUrl();
super( page, { expectedSelectors: [ '.post' ], url } );
super( page, { url } );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tools/e2e-commons/pages/wp-admin/blocks/word-ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class WordAdsBlock extends PageActions {
*/
static async isRendered( page ) {
// We check for either the ads placeholder div, or the iframes if the ads are loaded.
const containerSelector = ".entry-content iframe[src*='wordads'],article .wpa";
const containerSelector = ".entry-content iframe[src*='wordads'],main .wpa .wpa-about";
await page.waitForSelector( containerSelector );
}
}

0 comments on commit 7d615cf

Please sign in to comment.