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

Intermittent test failure: "Template Part › Template part block › Should load customizations when in a template even if only the slug and theme attributes are set." #24336

Closed
ZebulanStanphill opened this issue Aug 3, 2020 · 1 comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Comments

@ZebulanStanphill
Copy link
Member

ZebulanStanphill commented Aug 3, 2020

Description

This end-to-end test failure is happening intermittently:

FAIL packages/e2e-tests/specs/experiments/template-part.test.js (47.978s)
  ● Template Part › Template part block › Should load customizations when in a template even if only the slug and theme attributes are set.

    TimeoutError: waiting for XPath "//button[contains(text(), "header")]" failed: timeout 30000ms exceeded

      46 | 				'.components-dropdown-menu__toggle[aria-label="Switch Template"]'
      47 | 			);
    > 48 | 			const switchToHeaderTemplatePartButton = await page.waitForXPath(
         | 			                                                    ^
      49 | 				'//button[contains(text(), "header")]'
      50 | 			);
      51 | 			await switchToHeaderTemplatePartButton.click();

      at new WaitTask (../../node_modules/puppeteer/lib/DOMWorld.js:486:34)
      at DOMWorld._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/DOMWorld.js:420:26)
      at DOMWorld.waitForXPath (../../node_modules/puppeteer/lib/DOMWorld.js:393:21)
      at Frame.waitForXPath (../../node_modules/puppeteer/lib/FrameManager.js:575:51)
      at Frame.<anonymous> (../../node_modules/puppeteer/lib/helper.js:106:31)
      at Page.waitForXPath (../../node_modules/puppeteer/lib/Page.js:1015:33)
      at Object.<anonymous> (specs/experiments/template-part.test.js:48:56)
          at runMicrotasks (<anonymous>)

Discovered via this discussion.

@swissspidy swissspidy added [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Aug 4, 2020
@swissspidy
Copy link
Member

Duplicate of #24281

@swissspidy swissspidy marked this as a duplicate of #24281 Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

No branches or pull requests

2 participants