Skip to content

Commit

Permalink
Fix: modify the e2e test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthaknagoshe2002 committed Dec 2, 2024
1 parent e3d32b5 commit e72bede
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/blocks/columns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test.describe( 'Columns', () => {
);
await editor.clickBlockToolbarButton( 'Options' );
await page.click( 'role=menuitem[name="Lock"i]' );
await page.locator( 'role=checkbox[name="Prevent removal"i]' ).check();
await page.locator( 'role=checkbox[name="Lock removal"i]' ).check();
await page.click( 'role=button[name="Apply"i]' );

// Select columns block
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/block-locking.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.describe( 'Block Locking', () => {

await editor.clickBlockOptionsMenuItem( 'Lock' );

await page.click( 'role=checkbox[name="Prevent removal"]' );
await page.click( 'role=checkbox[name="Lock removal"]' );
await page.click( 'role=button[name="Apply"]' );

await expect(
Expand All @@ -35,7 +35,7 @@ test.describe( 'Block Locking', () => {

await editor.clickBlockOptionsMenuItem( 'Lock' );

await page.click( 'role=checkbox[name="Disable movement"]' );
await page.click( 'role=checkbox[name="Lock movement"]' );
await page.click( 'role=button[name="Apply"]' );

// Hide options.
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/block-switcher.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ test.describe( 'Block Switcher', () => {
await expect( button ).toBeEnabled();

await editor.clickBlockOptionsMenuItem( 'Lock' );
await page.click( 'role=checkbox[name="Prevent removal"]' );
await page.click( 'role=checkbox[name="Lock removal"]' );
await page.click( 'role=button[name="Apply"]' );

// Verify the block switcher isn't enabled.
Expand Down

0 comments on commit e72bede

Please sign in to comment.