web-stories-wp icon indicating copy to clipboard operation
web-stories-wp copied to clipboard

End to end test - CORS check

Open timarney opened this issue 2 years ago • 0 comments

Feature Description

Test is timing out waiting for page navigation. Unclear why that's happening on this test as it's a generic logout.

FAIL packages/e2e-tests/src/specs/wordpress/corsCheck.js (14.504 s)
  ● CORS check › should see media dialog
    TimeoutError: Navigation timeout of 10000 ms exceeded
      23 |   await page.goto(createURL('wp-login.php', 'action=logout'));
      24 |   await expect(page).toClick('a', { text: 'log out' });
    > 25 |   await page.waitForNavigation();
         |   ^
      26 |
      27 |   await expect(page).toMatch(/You are now logged out/i);
      28 | }

Alternatives Considered

Additional Context

timarney avatar Jul 21 '22 10:07 timarney