diff --git a/cypress/e2e/screenshots.cy.ts b/cypress/e2e/screenshots.cy.ts index 44ec5dc9f..76e79215d 100644 --- a/cypress/e2e/screenshots.cy.ts +++ b/cypress/e2e/screenshots.cy.ts @@ -59,6 +59,7 @@ describe('Documentation screenshots — user views', { testIsolation: false }, ( cy.visit('/apps/activity') cy.get('.activity-entry').should('have.length.at.least', 1) cy.get('[data-navigation="self"]').click() + cy.focused().blur() cy.get('.activity-entry').should('have.length.at.least', 1) docScreenshot('user/activity-stream-self') }) @@ -67,6 +68,7 @@ describe('Documentation screenshots — user views', { testIsolation: false }, ( cy.visit('/apps/activity') cy.get('.activity-entry').should('have.length.at.least', 1) cy.get('[data-navigation="by"]').click() + cy.focused().blur() // May be empty — that is expected for a single-user setup docScreenshot('user/activity-stream-by-others') }) @@ -75,6 +77,7 @@ describe('Documentation screenshots — user views', { testIsolation: false }, ( cy.visit('/apps/activity') cy.get('.activity-entry').should('have.length.at.least', 1) cy.get('[data-navigation="files"]').click() + cy.focused().blur() cy.get('.activity-entry').should('have.length.at.least', 1) docScreenshot('user/activity-stream-file-changes') }) @@ -85,6 +88,7 @@ describe('Documentation screenshots — user views', { testIsolation: false }, ( cy.visit('/apps/files') getFileListRow('readme.txt').should('be.visible') showActivityTab('readme.txt') + cy.focused().blur() cy.get('.activity-entry').should('have.length.at.least', 1) docScreenshot('user/activity-sidebar') })