Skip to content

Commit

Permalink
tmp: fake flaky tests to verify artifacts merging
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed May 6, 2024
1 parent b0a8c65 commit 5e27003
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/e2e/specs/editor/blocks/avatar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test.describe( 'Avatar', () => {
test( 'should change image when user is changed', async ( {
editor,
page,
} ) => {
}, testInfo ) => {
// Inserting a quote block
await editor.insertBlock( {
name: 'core/avatar',
Expand Down Expand Up @@ -71,5 +71,7 @@ test.describe( 'Avatar', () => {
const newSrc = await updatedAvatarImage.getAttribute( 'src' );

expect( newSrc ).not.toBe( originalSrc );

expect( testInfo.retry ).toBeTruthy();

Check failure on line 75 in test/e2e/specs/editor/blocks/avatar.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 1

[chromium] › editor/blocks/avatar.spec.js:29:2 › Avatar › should change image when user is changed

1) [chromium] › editor/blocks/avatar.spec.js:29:2 › Avatar › should change image when user is changed Error: expect(received).toBeTruthy() Received: 0 73 | expect( newSrc ).not.toBe( originalSrc ); 74 | > 75 | expect( testInfo.retry ).toBeTruthy(); | ^ 76 | } ); 77 | } ); 78 | at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/avatar.spec.js:75:28
} );
} );
4 changes: 3 additions & 1 deletion test/e2e/specs/editor/blocks/navigation-colors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test.describe( 'Navigation colors', () => {
editor,
page,
colorControl,
} ) => {
}, testInfo ) => {
const expectedNavigationColors = {
textColor: colorControl.black,
backgroundColor: colorControl.transparent, // There should be no background color set even though the body background is black.
Expand All @@ -73,6 +73,8 @@ test.describe( 'Navigation colors', () => {
await page.goto( `/?p=${ postId }` );

await colorControl.testFrontendColors( expectedNavigationColors );

expect( testInfo.retry ).toBeTruthy();

Check failure on line 77 in test/e2e/specs/editor/blocks/navigation-colors.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 2

[chromium] › editor/blocks/navigation-colors.spec.js:57:2 › Navigation colors › All navigation links should default to the body color and submenus and mobile overlay should default to a white background with black text

1) [chromium] › editor/blocks/navigation-colors.spec.js:57:2 › Navigation colors › All navigation links should default to the body color and submenus and mobile overlay should default to a white background with black text Error: expect(received).toBeTruthy() Received: 0 75 | await colorControl.testFrontendColors( expectedNavigationColors ); 76 | > 77 | expect( testInfo.retry ).toBeTruthy(); | ^ 78 | } ); 79 | 80 | test( 'Top level navigation links inherit the text color from the theme/group but do not apply to the submenu or overlay text', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:77:28
} );

test( 'Top level navigation links inherit the text color from the theme/group but do not apply to the submenu or overlay text', async ( {
Expand Down

0 comments on commit 5e27003

Please sign in to comment.