Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate list block test to Playwright #41555

Merged
merged 27 commits into from
Jul 5, 2022
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace waitForSelector to locator
  • Loading branch information
torounit committed Jul 5, 2022
commit f619e1bd65602f1a501f92364242f75867dd624f
6 changes: 1 addition & 5 deletions test/e2e/specs/editor/blocks/list.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,7 @@ test.describe( 'List', () => {

test( 'should change the base list type', async ( { editor, page } ) => {
await editor.insertBlock( { name: 'core/list' } );
const button = await page.waitForSelector(
'button[aria-label="Ordered"]'
);
await button.click();

await page.click( 'role=button[name="Ordered"i]' );
await expect.poll( editor.getEditedPostContent ).toBe(
`<!-- wp:list {"ordered":true} -->
<ol><li></li></ol>
Expand Down