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

Flaky E2E: Expected content is in published post / Configure the block (Instagram Block) #77190

Closed
worldomonation opened this issue May 22, 2023 · 5 comments · Fixed by #77239
Assignees
Labels
[Type] Flaky E2E Denotes an issue created for fixing flaky e2e tests

Comments

@worldomonation
Copy link
Contributor

Spec file

pecs/blocks/blocks__core-jetpack-extended.ts

TeamCity ID

10053778

Logs

locator.waitFor: Timeout 20000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('iframe.instagram-media').locator('text=woocommerce').first() to be visible
============================================================
at InstagramBlockFlow.validateAfterPublish (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/packages/calypso-e2e/src/lib/blocks/block-flows/instagram.ts:70:33)
    at Object.<anonymous> (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/test/e2e/specs/blocks/shared/block-smoke-testing.ts:90:23)
    at Promise.then.completed (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/utils.js:391:28)
    at callAsyncCircusFn (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/utils.js:316:10)
    at _callCircusTest (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/run.js:218:40)
    at _runTest (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/run.js:155:3)
    at _runTestsForDescribeBlock (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/run.js:66:9)
    at _runTestsForDescribeBlock (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/run.js:60:9)
    at _runTestsForDescribeBlock (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/run.js:60:9)
    at run (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/run.js:25:3)
    at runAndTransformResultsToJestFormat (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21)
    at jestAdapter (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19)
    at runTestInternal (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-runner/build/runTest.js:389:16)
    at runTest (/home/teamcity-2/buildAgent/work/c4a9d5b38c1dacde/node_modules/jest-runner/build/runTest.js:475:34)
@worldomonation worldomonation added the [Type] Flaky E2E Denotes an issue created for fixing flaky e2e tests label May 22, 2023
@worldomonation
Copy link
Contributor Author

image

@worldomonation worldomonation self-assigned this May 22, 2023
@worldomonation
Copy link
Contributor Author

image

@worldomonation worldomonation moved this from Backlog to Current Priorities in KitKat Project Board May 22, 2023
@worldomonation
Copy link
Contributor Author

worldomonation commented May 22, 2023

Looks like the preview for this post is not loading on Jurassic Ninja too:
image

@worldomonation worldomonation changed the title Flaky E2E: Expected content is in published post (Instagram Block) Flaky E2E: Expected content is in published post / Configure the block (Instagram Block) May 22, 2023
@worldomonation
Copy link
Contributor Author

locator.waitFor: Timeout 20000ms exceeded.
=========================== logs ===========================
waiting for locator('body.block-editor-page').frameLocator('iframe[name="editor-canvas"]').locator('.editor-styles-wrapper').frameLocator('iframe[title="Embedded content from instagram.com"]').frameLocator('iframe.instagram-media').locator('text=woocommerce').first() to be visible
============================================================
at InstagramBlockFlow.configure (/home/teamcity-3/buildAgent/work/c4a9d5b38c1dacde/packages/calypso-e2e/src/lib/blocks/block-flows/instagram.ts:56:32)
    at Object.<anonymous> (/home/teamcity-3/buildAgent/work/c4a9d5b38c1dacde/test/e2e/specs/blocks/shared/block-smoke-testing.ts:67:7)

@worldomonation
Copy link
Contributor Author

@fullofcaffeine made further changes in #77228 but the locator still isn't quite right.

locator.click: Error: strict mode violation: locator('body.block-editor-page').getByRole('button', { name: 'Embed' }) resolved to 2 elements:
1) <button tabindex="0" type="button" id="id-b5pcv7-1" aria…>…</button> aka getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Embed' })
    2) <button type="submit" class="components-button is-primar…>Embed</button> aka getByRole('document', { name: 'Block: Embed' }).getByRole('button', { name: 'Embed' })
=========================== logs ===========================
waiting for locator('body.block-editor-page').getByRole('button', { name: 'Embed' })
============================================================
    at InstagramBlockFlow.configure (/home/teamcity-0/buildAgent/work/c4a9d5b38c1dacde/packages/calypso-e2e/src/lib/blocks/block-flows/instagram.ts:40:64)
    at Object.<anonymous> (/home/teamcity-0/buildAgent/work/c4a9d5b38c1dacde/test/e2e/specs/blocks/shared/block-smoke-testing.ts:67:7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Flaky E2E Denotes an issue created for fixing flaky e2e tests
Projects
Archived in project
1 participant