-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from t3n/webandco-master
Neos 5.0 Update
- Loading branch information
Showing
9 changed files
with
174 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,55 @@ | ||
/// <reference types="Cypress" /> | ||
/// <reference types="Cypress-testing-library" /> | ||
|
||
describe('debug console can be used at all', () => { | ||
it('console can be opened and closed', () => { | ||
describe("debug console can be used at all", () => { | ||
it("console can be opened and closed", () => { | ||
// the console is not there yet+ | ||
cy.visit('/') | ||
.queryByText(/render time/i) | ||
.should('not.exist'); | ||
cy.visit("/") | ||
.queryByText(/cache \(/i) | ||
.should("not.exist"); | ||
|
||
// bring up the console | ||
cy.openConsole() | ||
.queryByText(/render time/i) | ||
.should('exist') | ||
.queryByText(/cache \(/i) | ||
.should("exist") | ||
.queryByText(/close/i) | ||
.should('exist'); | ||
.should("exist"); | ||
|
||
// close it | ||
cy.window() | ||
.queryByText(/close/i) | ||
.click() | ||
.queryByText(/render time/i) | ||
.should('not.exist'); | ||
.queryByText(/cache \(/i) | ||
.should("not.exist"); | ||
}); | ||
|
||
it('cookie can be set so console stays on a refresh', () => { | ||
cy.visit('/') | ||
.queryByText(/render time/i) | ||
.should('not.exist'); | ||
it("cookie can be set so console stays on a refresh", () => { | ||
cy.visit("/") | ||
.queryByText(/cache \(/i) | ||
.should("not.exist"); | ||
|
||
// bring up the console | ||
cy.openConsole(true) | ||
.queryByText(/render time/i) | ||
.should('exist') | ||
.getCookie('__neos_debug__') | ||
.should('have.property', 'value') | ||
.should('eq', 'true') | ||
.queryByText(/render time/i) | ||
.should('exist'); | ||
.queryByText(/cache \(/i) | ||
.should("exist") | ||
.getCookie("__neos_debug__") | ||
.should("have.property", "value") | ||
.should("eq", "true"); | ||
}); | ||
|
||
it('debug console opens when the cookie is set', () => { | ||
cy.setCookie('__neos_debug__', 'true') | ||
.visit('/') | ||
.queryByText(/render time/i); | ||
it("debug console opens when the cookie is set", () => { | ||
cy.setCookie("__neos_debug__", "true") | ||
.visit("/") | ||
.queryByText(/cache \(/i) | ||
.should("exist"); | ||
}); | ||
|
||
it('closing the console will also delete the cooke', () => { | ||
cy.setCookie('__neos_debug__', 'true') | ||
.visit('/') | ||
it("closing the console will also delete the cooke", () => { | ||
cy.setCookie("__neos_debug__", "true") | ||
.visit("/") | ||
.queryByText(/close/i) | ||
.click() | ||
.getCookie('__neos_debug__') | ||
.should('eq', null); | ||
.getCookie("__neos_debug__") | ||
.should("eq", null); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// <reference types="Cypress" /> | ||
// <reference types="Cypress-testing-library" /> | ||
|
||
import '@testing-library/cypress/add-commands'; | ||
import './commands'; | ||
import "@testing-library/cypress/add-commands"; | ||
import "./commands"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.