@cypress/core-desktop-gui
Version:
Desktop GUI for managing Cypress projects.
35 lines (26 loc) • 952 B
text/coffeescript
describe "Footer", ->
beforeEach ->
cy
.visit("/")
.window().then (win) ->
{, } = win
= cy.agents()
.spy(, "ipc")
= "1.78"
.handle("get:options", null, {version: })
it "does not display on login", ->
cy.get("footer").should("not.be.visible")
describe "footer displays in app", ->
beforeEach ->
cy
.fixture("user").then () ->
.handle("get:current:user", null, )
.handle("get:project:paths", null, [])
it "displays version sent from get:options", ->
cy.get("footer").contains()
it "displays after login", ->
cy.get("footer").should("be.visible")
it "opens link to changelog on click of changelog", ->
cy
.get("a").contains("Changelog").click().then ->
expect(.ipc).to.be.calledWith("external:open", "https://on.cypress.io/changelog")