Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
johngodley committed Jan 5, 2023
1 parent c6c9c27 commit c73d7a7
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 37 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Expand Up @@ -4,12 +4,12 @@ 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).

## [Unreleased]
## [2.23.0] - 2023-01-05

### Update
- Update all packages, including React to version 18

### Breaking
### Breaking changes
- Collaborative editing via yjs has been deprecated and will be removed in the next version. A hook-based replacement will be proposed in the future.

## [2.22.0] - 2023-01-03
Expand All @@ -21,7 +21,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [2.21.0] - 2022-12-06

### Breaking changes

- Now doesn't automatically set up the media uploader - you must do this manually (see readme)

## [2.20.0] - 2022-11-17
Expand Down
2 changes: 1 addition & 1 deletion build-browser/isolated-block-editor.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions build-module/__tests__/e2e/index.spec.ts
Expand Up @@ -20,23 +20,23 @@ const test = base.extend( {
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' );
const iframe = await page.frameLocator( '#storybook-preview-iframe' );
await iframe.locator( '[aria-label="Add default block"]' ).focus();
await iframe.locator( '[aria-label="Add default block"]' ).type( 'Hello' );
await expect( iframe.getByRole( 'document' ).nth( 1 ) ).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' );

const alice = iframe.locator( '[aria-label="Editor content"]' ).nth( 0 );
const bob = iframe.locator( '[aria-label="Editor content"]' ).nth( 1 );
const aliceTextBlock = alice.locator( '[aria-label="Add default block"]' );
await aliceTextBlock.click();
await aliceTextBlock.type( 'Hello' );
const bobTextBlock = bob.locator( '[aria-label="Add default block"]' );
await bobTextBlock.click();
await bobTextBlock.type( 'World' );
await expect( alice.locator( 'role=document' ) ).toHaveText( 'Hello' );
await expect( bob.locator( 'role=document' ) ).toHaveText( 'World' );
} );
Expand Down

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.

24 changes: 12 additions & 12 deletions build/__tests__/e2e/index.spec.ts
Expand Up @@ -20,23 +20,23 @@ const test = base.extend( {
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' );
const iframe = await page.frameLocator( '#storybook-preview-iframe' );
await iframe.locator( '[aria-label="Add default block"]' ).focus();
await iframe.locator( '[aria-label="Add default block"]' ).type( 'Hello' );
await expect( iframe.getByRole( 'document' ).nth( 1 ) ).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' );

const alice = iframe.locator( '[aria-label="Editor content"]' ).nth( 0 );
const bob = iframe.locator( '[aria-label="Editor content"]' ).nth( 1 );
const aliceTextBlock = alice.locator( '[aria-label="Add default block"]' );
await aliceTextBlock.click();
await aliceTextBlock.type( 'Hello' );
const bobTextBlock = bob.locator( '[aria-label="Add default block"]' );
await bobTextBlock.click();
await bobTextBlock.type( 'World' );
await expect( alice.locator( 'role=document' ) ).toHaveText( 'Hello' );
await expect( bob.locator( 'role=document' ) ).toHaveText( 'World' );
} );
Expand Down
10 changes: 5 additions & 5 deletions build/components/block-editor-container/click-outside.js

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.

0 comments on commit c73d7a7

Please sign in to comment.