Skip to content

Commit

Permalink
Fix toggle replaced with checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed May 26, 2023
1 parent 21304f4 commit e0b738d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/e2e-tests/specs/editor/various/links.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe( 'Links', () => {

// Toggle should still have focus and be checked.
await page.waitForSelector(
':focus:checked.components-form-toggle__input'
':focus:checked.components-checkbox-control__input'
);

// Ensure that the contents of the post have not been changed, since at
Expand Down Expand Up @@ -539,7 +539,9 @@ describe( 'Links', () => {

// Confirm that focus was not prematurely returned to the paragraph on
// a changing value of the setting.
await page.waitForSelector( ':focus.components-form-toggle__input' );
await page.waitForSelector(
':focus.components-checkbox-control__input'
);

// Submit link. Expect that "Open in new tab" would have been applied
// immediately.
Expand Down

0 comments on commit e0b738d

Please sign in to comment.