microsoft / playwright-test

Build a cross-browser end-to-end test suite with Playwright.
https://playwright.dev
Apache License 2.0
777 stars 34 forks source link

npx folio returns Timeout of 30000ms exceeded #192

Closed didd closed 3 years ago

didd commented 3 years ago

Expected Behavior

3 passed

Current Behavior

Timeout of 30000ms exceeded

Steps to Reproduce

I used the example given here. Then run :

  1. npx folio

Detail

image

Environment

nrhoffmann commented 3 years ago

The example test is actually broken. If you go to https://playwright.dev/ and inspect the page you will find that there isn't and element with the class home-navigation. What is happening here is the page.innerText(".home-navigation") actually waits for the element to become visible. So, innerText times out after 30 seconds (by default), but by then the test times out too.

As an aside, they redesigned the docs and must have forgotten to update the tests.

mxschmitt commented 3 years ago

Good catch @nrhoffmann, created a corresponding patch here which fixes that #194