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

E2E Tests: Intermittent failure in Quote tests #22430

Closed
aduth opened this issue May 18, 2020 · 2 comments
Closed

E2E Tests: Intermittent failure in Quote tests #22430

aduth opened this issue May 18, 2020 · 2 comments
Labels
[Package] E2E Tests /packages/e2e-tests [Type] Bug An existing feature does not function as intended

Comments

@aduth
Copy link
Member

aduth commented May 18, 2020

Related: #22377 (comment)

Examples:

Error:

FAIL packages/e2e-tests/specs/editor/blocks/quote.test.js (71.035s)

  ● Quote › can be merged into from a paragraph
    TypeError: Cannot read property 'click' of undefined
      at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/insert-block.js:12:8)
      at tryCatch (../../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:45:40)
      at Generator.invoke [as _invoke] (../../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:274:22)
      at Generator.prototype.<computed> [as next] (../../node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:97:21)
      at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
          at runMicrotasks (<anonymous>)

Recent Changes to Relevant Code:

Debugging:

Possible leads:

  • If there's no "Quote" or "Paragraph" button to click on, is it possible that these blocks are disabled by some means or another? (block manager, etc)
  • The XPath selector used for finding the inserter item is extremely broad and could match other elements on the page (any span within a button that contains the text "Quote" or "Paragraph"). That said, based on the error message, it's unclear why the first member would be undefined if it were matching another element.
@aduth aduth added [Type] Bug An existing feature does not function as intended [Package] E2E Tests /packages/e2e-tests labels May 18, 2020
@gziolo
Copy link
Member

gziolo commented Jun 20, 2020

@youknowriad did you manage to fix it?

@youknowriad
Copy link
Contributor

I can't guarantee 100% I did fix intermittent failures on the Quote test but the error was different. Maybe we can close and reopen if it happens again.

@gziolo gziolo closed this as completed Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] E2E Tests /packages/e2e-tests [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants