Skip to content

Commit

Permalink
Merge pull request #116 from 10up/fix/115
Browse files Browse the repository at this point in the history
Ensure the publish/save button isn't disabled before clicking on it
  • Loading branch information
dkotter authored Feb 6, 2024
2 parents d370ef3 + 4642661 commit 80fed4e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"eslint-plugin-tsdoc": "^0.2.14",
"husky": "^6.0.0",
"lint-staged": "^13.2.1",
"mochawesome-json-to-md": "^0.7.2",
"prettier": "^2.2.1",
"ts-node": "^10.2.1",
"typedoc": "^0.22.12",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/classic-create-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export const classicCreatePost = ({
});

if ('draft' === status) {
cy.get('#save-post').click();
cy.get('#save-post').should('not.have.class', 'disabled').click();
} else {
cy.get('#publish').click();
cy.get('#publish').should('not.have.class', 'disabled').click();
}

cy.wait('@savePost').then(response => {
Expand Down

0 comments on commit 80fed4e

Please sign in to comment.