});
beforeEach(function () {
- cy.clearCookies();
- cy.clearLocalStorage();
-
cy.on('uncaught:exception', (err, runnable, promise) => {
Cypress.log({ message: `Application Error: ${err}`});
if (promise) {
cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
- cy.get('[title=Notifications]').click();
- cy.get('li').contains('Restore Banner').click();
+ cy.get('[title=Notifications]').click({ force: true });
+ cy.get('[data-cy=restore-banner-li]').click({ force: true });
cy.get('[data-cy=confirmation-dialog-ok-btn]').should('be.visible');
});
cy.get('[data-cy=confirmation-dialog-ok-btn]').click();
cy.get('[title=Notifications]').click();
- cy.get('li').contains('Disable tooltips').click();
+ cy.get('[data-cy=disable-tooltip-toggle]').click({ force: true });
cy.get('[data-cy=side-panel-tree]').then(($el) => {
const el = $el.get(0) //native DOM element