-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace custom commands with @10up/cypress-wp-utils #162
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dinhtungdu thank you for this great update!
I left couple questions about other commands we can potentially replace.
}); | ||
|
||
it('Can activate plugin if it is deactivated', () => { | ||
cy.visit('/wp-admin/plugins.php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use cy.activatePlugin()
and cy.deactivatePlugin()
here?
cy.visitAdminPage( | ||
'edit-tags.php?taxonomy=podcasting_podcasts&podcasts=true' | ||
it('Can delete all taxonomies', () => { | ||
cy.visit( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we shortcut this with cy.deleteAllTerms('podcasting_podcasts')
?
@cadic Thanks for the review. I updated the PR per your suggestion. Please take another look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @dinhtungdu!
Description of the Change
This PR updates the Cypress test suite to use
@10up/cypress-wp-utils
instead of custom commands. This is currently blocked by 10up/cypress-wp-utils#51.Closes #161
Verification Process
See tests pass on both local and GH Actions.
Checklist:
Changelog Entry
Credits
Props @dinhtungdu