Skip to content

Commit

Permalink
pkp/pkp-lib#10444 [cypress] Reload website page after adding new cust…
Browse files Browse the repository at this point in the history
…omBlock
  • Loading branch information
blesildaramirez committed Oct 8, 2024
1 parent 49511b1 commit 08c3bfe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cypress/tests/functional/CustomBlocks.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ describe('Custom Block Manager plugin tests', function() {
cy.wait(500); // Make sure the form has closed
cy.get('[role="dialog"] button:contains(\'Close\')').click();

// FIXME: The settings area has to be reloaded before the new block will appear.a
// This click should be unnecessary.
cy.get('nav').contains('Settings').click();
// Ensure submenu item click despite animation
cy.get('nav').contains('Website').click({ force: true });
cy.reload();
cy.waitJQuery();

cy.get('button[id="appearance-button"]').click();
cy.get('#appearance-setup-button').click();
cy.get('#appearance-setup span:contains("test-custom-block"):first').click();
Expand Down

0 comments on commit 08c3bfe

Please sign in to comment.