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 Image block tests #21051

Closed
aduth opened this issue Mar 20, 2020 · 0 comments · Fixed by #21174
Closed

E2E Tests: Intermittent failure in Image block tests #21051

aduth opened this issue Mar 20, 2020 · 0 comments · Fixed by #21174
Assignees
Labels
[Package] E2E Tests /packages/e2e-tests [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@aduth
Copy link
Member

aduth commented Mar 20, 2020

Examples:

FAIL packages/e2e-tests/specs/editor/blocks/image.test.js (8.134s)
  Image
    ✓ can be inserted (3648ms)
    ✕ should replace, reset size, and keep selection (3905ms)
  ● Image › should replace, reset size, and keep selection
    expect(received).toMatch(expected)
    Expected pattern: /<!-- wp:image {"id":\d+,"sizeSlug":"large"} -->\s*<figure class="wp-block-image size-large"><img src="[^"]+\/e8de60ce-3010-4064-adaf-3c284ec05fbc\.png" alt="" class="wp-image-\d+"\/><\/figure>\s*<!-- \/wp:image -->/
    Received string:  "<!-- wp:image {\"id\":280,\"sizeSlug\":\"large\"} -->
    <figure class=\"wp-block-image size-large\"><img src=\"blob:http://localhost:8889/3282e96a-704d-41c6-a909-9442adfd8eba\" alt=\"\" class=\"wp-image-280\"/></figure>
    <!-- /wp:image -->"
      76 | 			`<!-- wp:image {"id":\\d+,"sizeSlug":"large"} -->\\s*<figure class="wp-block-image size-large"><img src="[^"]+\\/${ filename2 }\\.png" alt="" class="wp-image-\\d+"/></figure>\\s*<!-- \\/wp:image -->`
      77 | 		);
    > 78 | 		expect( await getEditedPostContent() ).toMatch( regex3 );
         | 		                                       ^
      79 | 
      80 | 		await page.keyboard.press( 'Backspace' );
      81 | 
      at Object.toMatch (specs/editor/blocks/image.test.js:78:42)
          at runMicrotasks (<anonymous>)

Recent changes (history):

@aduth aduth added [Type] Bug An existing feature does not function as intended [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Package] E2E Tests /packages/e2e-tests labels Mar 20, 2020
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Mar 26, 2020
@aduth aduth removed the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Apr 1, 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 [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant