Skip to content

Commit

Permalink
fixed the update page button element inside the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Sep 20, 2024
1 parent 24bcae7 commit d4bfeba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/e2e/specs/constructor-create-block.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ test.describe('constructor create block', () => {
.locator('role=button[name="Publish"i]')
.click();

await expect(
page.locator('role=button[name="Update"i]')
).toBeDisabled();
await expect(page.locator('role=button[name="Save"i]')).toBeDisabled();

let postID = await page.locator('input[name="post_ID"]').inputValue();
postID = typeof postID === 'string' ? parseInt(postID, 10) : null;
Expand Down

0 comments on commit d4bfeba

Please sign in to comment.