diff --git a/packages/e2e-tests/src/specs/wordpress/webStoriesBlock.js b/packages/e2e-tests/src/specs/wordpress/webStoriesBlock.js index 17afbc35a7f5..fb7035aee636 100644 --- a/packages/e2e-tests/src/specs/wordpress/webStoriesBlock.js +++ b/packages/e2e-tests/src/specs/wordpress/webStoriesBlock.js @@ -34,6 +34,11 @@ import { insertBlock, } from '@web-stories-wp/e2e-test-utils'; +/** + * Internal dependencies + */ +import { addAllowedErrorMessage } from '../../config/bootstrap'; + const EMBED_BLOCK_CONTENT = `
Stories in AMP - Hello World
@@ -42,8 +47,12 @@ const EMBED_BLOCK_CONTENT = ` describe('Web Stories Block', () => { let stopRequestInterception; + let removeErrorMessage; beforeAll(async () => { + removeErrorMessage = addAllowedErrorMessage( + 'Failed to load resource: the server responded with a status of 404' + ); await page.setRequestInterception(true); stopRequestInterception = addRequestInterception((request) => { // amp-story-player scripts @@ -72,6 +81,7 @@ describe('Web Stories Block', () => { afterAll(async () => { await page.setRequestInterception(false); stopRequestInterception(); + removeErrorMessage(); }); it('should insert a new web stories block', async () => {