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 4, 2024
1 parent 62fa31e commit f3a0e8d
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/missing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.describe( 'missing block', () => {
test( 'should strip potentially malicious on* attributes', async ( {
editor,
page,
} ) => {
}, testInfo ) => {
let hasAlert = false;

page.on( 'dialog', () => {
Expand All @@ -26,6 +26,8 @@ test.describe( 'missing block', () => {
await page.evaluate( () => new Promise( window.requestIdleCallback ) );

expect( hasAlert ).toBe( false );

expect( testInfo.retry ).toBeTruthy();

Check failure on line 30 in test/e2e/specs/editor/blocks/missing.spec.js

View workflow job for this annotation

GitHub Actions / Playwright - 2

[chromium] › editor/blocks/missing.spec.js:11:2 › missing block › should strip potentially malicious on* attributes

1) [chromium] › editor/blocks/missing.spec.js:11:2 › missing block › should strip potentially malicious on* attributes Error: expect(received).toBeTruthy() Received: 0 28 | expect( hasAlert ).toBe( false ); 29 | > 30 | expect( testInfo.retry ).toBeTruthy(); | ^ 31 | } ); 32 | 33 | test( 'should strip potentially malicious script tags', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/missing.spec.js:30:28
} );

test( 'should strip potentially malicious script tags', async ( {
Expand Down

0 comments on commit f3a0e8d

Please sign in to comment.