Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Investigate navigation timeout for networkidle0 #1481

Closed
timothywangdev opened this issue Apr 15, 2020 · 2 comments
Closed

[Test] Investigate navigation timeout for networkidle0 #1481

timothywangdev opened this issue Apr 15, 2020 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@timothywangdev
Copy link
Contributor

Follow the suggestion from puppeteer/puppeteer#1908 (comment)

and add the following tracking code

class InflightRequests {
  constructor(page) {
    this._page = page;
    this._requests = new Set();
    this._onStarted = this._onStarted.bind(this);
    this._onFinished = this._onFinished.bind(this);
    this._page.on('request', this._onStarted);
    this._page.on('requestfinished', this._onFinished);
    this._page.on('requestfailed', this._onFinished);
  }

  _onStarted(request) { this._requests.add(request); }
  _onFinished(request) { this._requests.delete(request); }
 
  inflightRequests() { return Array.from(this._requests); }  

  dispose() {
    this._page.removeListener('request', this._onStarted);
    this._page.removeListener('requestfinished', this._onFinished);
    this._page.removeListener('requestfailed', this._onFinished);
  }
}

received the following reports:

  console.error src/tests/e2e/emailTransferForm.test.e2e.js:119
    Navigation failed: Navigation timeout of 30000 ms exceeded

  console.error src/tests/e2e/emailTransferForm.test.e2e.js:121
      http://172.17.0.3:3000/sockjs-node/092/h5meigsq/xhr_streaming?t=1586976964888
  console.error src/tests/e2e/emailTransferForm.test.e2e.js:119
    Navigation failed: Navigation timeout of 30000 ms exceeded

  console.error src/tests/e2e/emailTransferForm.test.e2e.js:121
      https://api-iam.intercom.io/messenger/web/metrics
      http://172.17.0.3:3000/sockjs-node/820/gm0xzxqp/eventsource

  console.error src/tests/e2e/emailTransferForm.test.e2e.js:119
    Navigation failed: Navigation timeout of 30000 ms exceeded

  console.error src/tests/e2e/emailTransferForm.test.e2e.js:121
      http://172.17.0.3:3000/sockjs-node/779/gqa4csjh/eventsource

seems to be caused by react websocket?

@timothywangdev timothywangdev added the bug Something isn't working label Apr 15, 2020
@timothywangdev timothywangdev added this to the Sprint 109 milestone Apr 15, 2020
@timothywangdev timothywangdev self-assigned this Apr 15, 2020
@timothywangdev
Copy link
Contributor Author

@timothywangdev
Copy link
Contributor Author

First build then serve -s build disabled hot loading

timothywangdev added a commit to timothywangdev/Chainsfr that referenced this issue Apr 16, 2020
williamleha pushed a commit to williamleha/Chainsfer that referenced this issue Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant