Skip to content

Commit

Permalink
Bundle 2.13.0 (#147)
Browse files Browse the repository at this point in the history
* Update changelog release date

* Bundle 2.13.0
  • Loading branch information
johngodley authored May 17, 2022
1 parent 67de9b7 commit 6088458
Show file tree
Hide file tree
Showing 316 changed files with 1,704 additions and 817 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.13.0] - Unreleased
## [2.13.0] - 2022-05-17

### Added

Expand Down
650 changes: 285 additions & 365 deletions build-browser/core.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build-browser/isolated-block-editor.js

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions build-module/__tests__/e2e/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* External dependencies
*/
import { test as base, expect } from '@playwright/test';

const test = base.extend( {
page: async ( { page }, use ) => {
// Assert no console errors/warnings
const consoleIssues = [];
page.on( 'console', ( msg ) => {
if ( [ 'error', 'warning' ].includes( msg.type() ) ) {
consoleIssues.push( `[${ msg.type() }] ${ msg.text() }` );
}
} );
await use( page );
expect( consoleIssues ).toHaveLength( 0 );
},
} );

test.describe( 'Editor content', () => {
test( 'should allow typing', async ( { page } ) => {
await page.goto( '?path=/story/isolated-block-editor--default' );
const iframe = page.frameLocator( '#storybook-preview-iframe' );
const editorContent = iframe.locator( 'role=region[name="Editor content"]' );
await editorContent.locator( 'role=button[name=/^Add default/]' ).click();
await editorContent.locator( 'role=document' ).type( 'Hello' );
await expect( editorContent.locator( 'role=document' ) ).toHaveText( 'Hello' );
} );

test( 'should isolate content between editors', async ( { page } ) => {
await page.goto( '?path=/story/isolated-block-editor--multiple-editors' );
const iframe = page.frameLocator( '#storybook-preview-iframe' );
const alice = iframe.locator( 'role=region[name="Editor content"]' ).nth( 0 );
const bob = iframe.locator( 'role=region[name="Editor content"]' ).nth( 1 );
await alice.locator( 'role=button[name=/^Add default/]' ).click();
await alice.locator( 'role=document' ).type( 'Hello' );
await bob.locator( 'role=button[name=/^Add default/]' ).click();
await bob.locator( 'role=document' ).type( 'World' );

await expect( alice.locator( 'role=document' ) ).toHaveText( 'Hello' );
await expect( bob.locator( 'role=document' ) ).toHaveText( 'World' );
} );
} );
21 changes: 21 additions & 0 deletions build-module/__tests__/e2e/toolbar-settings.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* External dependencies
*/
import { test, expect } from '@playwright/test';

test.describe( 'Toolbar settings button', () => {
test( 'should open and close popover', async ( { page } ) => {
await page.goto( '/?path=/story/isolated-block-editor--toolbar-settings' );
const editor = page.frameLocator( '#storybook-preview-iframe' );

await editor.locator( 'role=button[name="Settings"]' ).click();

await expect( editor.locator( 'role=button[name="Document (selected)"]' ) ).toBeVisible();
await expect( editor.locator( 'role=button[name="Block"]' ) ).toBeVisible();

await editor.locator( 'role=button[name="Close settings"]' ).click();

await expect( editor.locator( 'role=button[name="Document (selected)"]' ) ).not.toBeVisible();
await expect( editor.locator( 'role=button[name="Block"]' ) ).not.toBeVisible();
} );
} );
2 changes: 1 addition & 1 deletion build-module/components/api-fetch/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions build-module/components/block-editor-container/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6088458

Please sign in to comment.