Skip to content

Commit

Permalink
percy snapshot the tooltip visually, prevent it from being hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mann committed Oct 8, 2021
1 parent 9265669 commit c18b5e6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/desktop-gui/cypress/integration/project_nav_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,17 @@ describe('Project Nav', function () {
cy.get('.browsers .fa-exclamation-triangle').trigger('mouseover')

cy.get('.cy-tooltip').should('contain', 'Cypress detected policy settings on your computer that may cause issues with using this browser. For more information, see')
cy.get('.cy-tooltip a').click().then(function () {

// prevent tooltips from being hidden so we can snapshot the state
// of the browser warning tooltip
cy.percySnapshot({ elementOverrides: [] })

cy
.get('.cy-tooltip a')
.click()
.then(function () {
expect(this.ipc.externalOpen).to.be.calledWith('https://on.cypress.io/bad-browser-policy')
})

cy.percySnapshot()
})
})

Expand Down

4 comments on commit c18b5e6

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c18b5e6 Oct 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/8.6.0/circle-develop-c18b5e6d7149cc586525125f75acd28bba274601/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c18b5e6 Oct 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/8.6.0/appveyor-develop-c18b5e6d7149cc586525125f75acd28bba274601/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c18b5e6 Oct 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/8.6.0/appveyor-develop-c18b5e6d7149cc586525125f75acd28bba274601/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c18b5e6 Oct 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/8.6.0/circle-develop-c18b5e6d7149cc586525125f75acd28bba274601/cypress.tgz

Please sign in to comment.