Skip to content

Commit

Permalink
E2e tests: Add an assertion to confirm that the URL changed (#50835)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored May 30, 2023
1 parent f24d352 commit a3a63c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/specs/site-editor/command-center.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ test.describe( 'Site editor command center', () => {
await page.getByRole( 'option', { name: 'Add new page' } ).click();
await page.waitForSelector( 'iframe[name="editor-canvas"]' );
const frame = page.frame( 'editor-canvas' );
await expect( page ).toHaveURL(
'/wp-admin/post-new.php?post_type=page'
);
await expect(
frame.getByRole( 'textbox', { name: 'Add title' } )
).toBeVisible();
Expand Down

0 comments on commit a3a63c1

Please sign in to comment.