Skip to content

[Flaky Test] last-inserted block should be given and keep the focus (small viewport) #48464

@github-actions

Description

@github-actions

Flaky test detected. This is an auto-generated issue by GitHub Actions. Please do NOT edit this manually.

Test title

last-inserted block should be given and keep the focus (small viewport)

Test path

specs/editor/various/inserting-blocks.test.js

Errors

[2023-02-26T21:41:50.874Z] Test passed after 2 failed attempts on try/attrs.
[2023-02-27T22:16:03.995Z] Test passed after 2 failed attempts on try/attrs.
[2023-03-07T12:01:57.001Z] Test passed after 1 failed attempt on try/dedicated-block-controls-filter.
[2023-04-26T09:33:45.942Z] Test passed after 2 failed attempts on fix/iframe-enqueuing-and-warn.
[2023-04-26T10:11:07.631Z] Test passed after 2 failed attempts on fix/iframe-enqueuing-and-warn.
[2023-06-02T15:42:56.891Z] Test passed after 1 failed attempt on try/fn-meta.
[2023-06-02T17:11:36.483Z] Test passed after 2 failed attempts on try/fn-meta.
[2023-06-09T14:22:43.006Z] Test passed after 2 failed attempts on add/custom-attribute-sources.
[2023-06-12T11:42:29.199Z] Test passed after 2 failed attempts on add/custom-attribute-sources.
[2023-06-15T06:30:31.728Z] Test passed after 2 failed attempts on add/back-to-top.
[2023-06-16T08:32:40.960Z] Test passed after 2 failed attempts on add/back-to-top.
[2023-06-19T05:32:52.682Z] Test passed after 2 failed attempts on add/back-to-top.
[2023-08-11T09:57:44.650Z] Test passed after 1 failed attempt on try/second-layout-prototype.
[2023-09-22T02:02:54.316Z] Test passed after 1 failed attempt on update/patterns-filter.
[2023-09-22T03:22:16.797Z] Test passed after 1 failed attempt on update/patterns-filter.
[2023-09-22T04:21:57.153Z] Test passed after 1 failed attempt on update/patterns-filter.
[2023-11-22T15:31:02.208Z] Test passed after 1 failed attempt on try/prerender-patterns.
[2023-12-09T12:02:43.958Z] Test passed after 1 failed attempt on components/move-kebabcase.
  ● Inserting blocks › last-inserted block should be given and keep the focus (small viewport)

    Node is detached from document

      at ElementHandle._scrollIntoViewIfNeeded (../../node_modules/puppeteer-core/src/common/JSHandle.ts:477:22)
          at runMicrotasks (<anonymous>)
      at ElementHandle.click (../../node_modules/puppeteer-core/src/common/JSHandle.ts:619:5)
      at insertFromGlobalInserter (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/inserter.js:260:2)
      at insertBlock (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/inserter.js:330:2)
      at specs/editor/various/inserting-blocks.test.js:379:4

  ● Inserting blocks › last-inserted block should be given and keep the focus (small viewport)

    expect(jest.fn()).not.toHaveErrored(expected)

    Expected mock function not to be called but it was called with:
    ["ReferenceError: kebabCase is not defined

      at Pm (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/block-editor/index.min.js?ver=f68eeec03068c0ecf39f:33:4140)
      at St (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:47627)
      at $s (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:120574)
      at Sl (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88649)
      at kl (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88577)
      at bl (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88440)
      at sl (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:85264)
      at il (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:83821)
      at v (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react.min.js?ver=18:1:3385)
      at MessagePort.ce (../../http:/localhost:8889/wp-content/plugins/gutenberg/build/vendors/react.min.js?ver=18:1:5527)"]
      console.error() should not be used unless explicitly expected
      See https://www.npmjs.com/package/@wordpress/jest-console for details.
          at runMicrotasks (<anonymous>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.[Type] Flaky TestAuto-generated flaky test report issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions