Skip to content

Commit

Permalink
Use different selector in E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Jan 28, 2022
1 parent a02b416 commit 8ff39b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/config/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ async function setupBrowser() {
*/
async function createTestData() {
await visitAdminPage( 'admin.php', 'page=amp-options' );
await page.waitForSelector( '.amp-settings-nav' );

await expect( page ).toMatchElement( 'h1', { text: 'AMP Settings' } );

await page.evaluate( async () => {
await Promise.all( [
wp.apiFetch( { path: '/wp/v2/posts', method: 'POST', data: { title: 'Test Post 1', status: 'publish' } } ),
Expand Down

0 comments on commit 8ff39b5

Please sign in to comment.