Skip to content

Commit

Permalink
E2E Tests: Fix demo test by disabling the welcome dialog (#26314)
Browse files Browse the repository at this point in the history
* E2E Tests: Fix demo test by disabling the welcome dialog

* Try to merge two tests into one

* Update packages/jest-puppeteer-axe/src/index.js
  • Loading branch information
gziolo authored Oct 20, 2020
1 parent 32a2ed5 commit 0e56579
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions packages/e2e-tests/specs/local/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import {
createEmbeddingMatcher,
createJSONResponse,
createNewPost,
setUpResponseMocking,
visitAdminPage,
} from '@wordpress/e2e-test-utils';
Expand All @@ -19,6 +20,9 @@ const MOCK_VIMEO_RESPONSE = {

describe( 'new editor state', () => {
beforeAll( async () => {
// First, make sure that the block editor is properly configured.
await createNewPost();

await setUpResponseMocking( [
{
match: createEmbeddingMatcher( 'https://vimeo.com/22439234' ),
Expand All @@ -34,9 +38,7 @@ describe( 'new editor state', () => {
return select( 'core/editor' ).isEditedPostDirty();
} );
expect( isDirty ).toBeTruthy();
} );

it( 'should be immediately saveable', async () => {
expect( await page.$( 'button.editor-post-save-draft' ) ).toBeTruthy();
} );
} );
8 changes: 4 additions & 4 deletions packages/jest-puppeteer-axe/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

## Unreleased

### New Features
### Breaking Changes

- Migrated `axe-puppeteer` to its new package name [@axe-core/puppeteer](https://github.com/dequelabs/axe-core-npm/tree/develop/packages/puppeteer).
- Migrated `axe-puppeteer` to its new package [@axe-core/puppeteer](https://github.com/dequelabs/axe-core-npm/tree/develop/packages/puppeteer) that contains breaking changes.

## 1.1.0 (2019-05-21)

### New Feature

- Added optional `disabledRules` option to use with `toPassAxeTests` matcher.
- Added optional `disabledRules` option to use with `toPassAxeTests` matcher.

## 1.0.0 (2019-03-06)

- Initial release.
- Initial release.

0 comments on commit 0e56579

Please sign in to comment.