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

End to end test - should preview story with development mode

Open timarney opened this issue 3 years ago • 0 comments

Feature Description

Test is failing to find "Preview" text

FAIL packages/e2e-tests/src/specs/editor/editor.js (29.372 s)
  ● Story Editor › should preview story with development mode

    TimeoutError: Text not found "/Preview/i"
    waiting for function failed: timeout 2000ms exceeded

      75 |     await previewPage.waitForSelector('.i-amphtml-story-dev-tools-header');
      76 |
    > 77 |     await expect(previewPage).toMatch(/Preview/i);
         |     ^
      78 |     await expect(previewPage).toMatch(/Debug/i);
      79 |     await expect(previewPage).toMatch(/Add device/i);
      80 |

      at Object.<anonymous> (packages/e2e-tests/src/specs/editor/editor.js:77:5)

Alternatives Considered

Additional Context

timarney avatar Jul 26 '22 15:07 timarney