diff --git a/cypress/tests/functional/CustomBlocks.cy.js b/cypress/tests/functional/CustomBlocks.cy.js index 3d4934f..426b5f0 100644 --- a/cypress/tests/functional/CustomBlocks.cy.js +++ b/cypress/tests/functional/CustomBlocks.cy.js @@ -11,7 +11,9 @@ describe('Custom Block Manager plugin tests', function() { it('Creates and exercises a custom block', function() { cy.login('admin', 'admin', 'publicknowledge'); - cy.get('.app__nav a').contains('Website').click(); + cy.get('nav').contains('Settings').click(); + // Ensure submenu item click despite animation + cy.get('nav').contains('Website').click({ force: true }); cy.get('button[id="plugins-button"]').click(); // Find and enable the plugin @@ -36,7 +38,9 @@ describe('Custom Block Manager plugin tests', function() { // FIXME: The settings area has to be reloaded before the new block will appear.a // This click should be unnecessary. - cy.get('.app__nav a').contains('Website').click(); + cy.get('nav').contains('Settings').click(); + // Ensure submenu item click despite animation + cy.get('nav').contains('Website').click({ force: true }); cy.get('#appearance > .pkpTabs > .pkpTabs__buttons > #appearance-setup-button').click(); cy.get('#appearance-setup span:contains("test-custom-block"):first').click(); cy.get('#appearance-setup button:contains("Save")').click();