Skip to content

Commit

Permalink
fix wait before cloasing yoast panel
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Aug 23, 2023
1 parent 0d3de1d commit e00d096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Cypress.Commands.add('createPost', (options = {}) => {
.contains(postType, { matchCase: false })
.click({ force: true });

cy.wait(100);

// close the Yoast SEO metabox
cy.get('.wpseo-metabox .handlediv').then(button => {
const isExpanded = button[0].getAttribute('aria-expanded') === 'true';
Expand Down

0 comments on commit e00d096

Please sign in to comment.