Skip to content

Commit 8ff39b5

Browse files
committed
Use different selector in E2E test
1 parent a02b416 commit 8ff39b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/e2e/config/bootstrap.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ async function setupBrowser() {
222222
*/
223223
async function createTestData() {
224224
await visitAdminPage( 'admin.php', 'page=amp-options' );
225-
await page.waitForSelector( '.amp-settings-nav' );
225+
226+
await expect( page ).toMatchElement( 'h1', { text: 'AMP Settings' } );
227+
226228
await page.evaluate( async () => {
227229
await Promise.all( [
228230
wp.apiFetch( { path: '/wp/v2/posts', method: 'POST', data: { title: 'Test Post 1', status: 'publish' } } ),

0 commit comments

Comments
 (0)