question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TimeoutError in GTM setup E2E test

See original GitHub issue

Bug 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.

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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
tofumattcommented, Jun 27, 2022

Works for me—thanks for calling out the multiple tests needed here. 👍🏻

IB ✅

1reaction
jimmymadoncommented, Sep 20, 2022

QA: Eng ✅

  • Verified that all E2E tests after the branch was merged (16 Sept 2022 20:09 BST) do not fail with a navigation timeout error.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found