TimeoutError in GTM setup E2E test
See original GitHub issueBug Description
This seems to be one of the last remaining instabilities in our E2E tests at the moment.
Summary of all failing tests
FAIL specs/modules/tagmanager/setup.test.js (63.599s)
● Tag Manager module setup › Setup without AMP active › displays account creation form when user has no Tag Manager account
TimeoutError: Navigation timeout of 30000 ms exceeded
at ../../node_modules/puppeteer/src/common/LifecycleWatcher.ts:204:18
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The
specs/modules/tagmanager/setup.test.js
E2E test should no longer fail from a navigation timeout error
Implementation Brief
On the following test cases, update the waitForNavigation
calls to include an option of waitUntil
with the value of networkidle2
and timeout
with the value of 0
.
- https://github.com/google/site-kit-wp/blob/56ae1f9a52a80b3485df1e28b317cf28d9b44bde/tests/e2e/specs/modules/tagmanager/setup.test.js#L214
- https://github.com/google/site-kit-wp/blob/56ae1f9a52a80b3485df1e28b317cf28d9b44bde/tests/e2e/specs/modules/tagmanager/setup.test.js#L313
Adding a little higher estimate here as this would include a lot of testing with the CI E2E tests and waiting for each to complete (this cannot be reproduced locally).
POC PR in a fork for exploration: https://github.com/nfmohit/site-kit-wp/pull/3
Test Coverage
No other tests need to be added/updated.
QA Brief
QA:Eng
- Check the status of workflows labelled
E2E Tests
that have run after merging the PR of this issue. - Verify that any failing E2E test doesn’t have the navigation timeout error from
specs/modules/tagmanager/setup.test.js
.
Changelog entry
- N/A
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Timeout error when running e2e test in angular cli projet
I started working with e2e test with protractor and jasmine in angular cli project describe('my-web-client App', function() { let page: ...
Read more >Best practices for trigger configuration - Tag Manager Help
Best practices for trigger configuration. Sometimes triggers, when configured improperly, can yield unexpected results in Google Tag Manager.
Read more >Cypress and Flaky Tests: How to Handle Timeout Errors
Asynchronous operations are not completing before Cypress runs a command, causing a timeout error. Flaky Cypress Tests Caused by Timeout Errors.
Read more >Appendix A: Schema Reference
A declarative configuration for an ADC such as F5 BIG-IP. Properties: ... Data (in 'key':'value' properties) used to verify automated tests.
Read more >Shopify APIs and SDKs
Rest Api Timeout Error ... Hello eveyone, We are trying to set up an API connection between CData and ... I'm creating test...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Works for me—thanks for calling out the multiple tests needed here. 👍🏻
IB ✅
QA: Eng ✅