|
1 | 1 | /// <reference types="Cypress" /> |
2 | 2 | /// <reference types="Cypress-testing-library" /> |
3 | 3 |
|
4 | | -describe('debug console can be used at all', () => { |
5 | | - it('console can be opened and closed', () => { |
| 4 | +describe("debug console can be used at all", () => { |
| 5 | + it("console can be opened and closed", () => { |
6 | 6 | // the console is not there yet+ |
7 | | - cy.visit('/') |
8 | | - .queryByText(/render time/i) |
9 | | - .should('not.exist'); |
| 7 | + cy.visit("/") |
| 8 | + .queryByText(/cache \(/i) |
| 9 | + .should("not.exist"); |
10 | 10 |
|
11 | 11 | // bring up the console |
12 | 12 | cy.openConsole() |
13 | | - .queryByText(/render time/i) |
14 | | - .should('exist') |
| 13 | + .queryByText(/cache \(/i) |
| 14 | + .should("exist") |
15 | 15 | .queryByText(/close/i) |
16 | | - .should('exist'); |
| 16 | + .should("exist"); |
17 | 17 |
|
18 | 18 | // close it |
19 | 19 | cy.window() |
20 | 20 | .queryByText(/close/i) |
21 | 21 | .click() |
22 | | - .queryByText(/render time/i) |
23 | | - .should('not.exist'); |
| 22 | + .queryByText(/cache \(/i) |
| 23 | + .should("not.exist"); |
24 | 24 | }); |
25 | 25 |
|
26 | | - it('cookie can be set so console stays on a refresh', () => { |
27 | | - cy.visit('/') |
28 | | - .queryByText(/render time/i) |
29 | | - .should('not.exist'); |
| 26 | + it("cookie can be set so console stays on a refresh", () => { |
| 27 | + cy.visit("/") |
| 28 | + .queryByText(/cache \(/i) |
| 29 | + .should("not.exist"); |
30 | 30 |
|
31 | 31 | // bring up the console |
32 | 32 | cy.openConsole(true) |
33 | | - .queryByText(/render time/i) |
34 | | - .should('exist') |
35 | | - .getCookie('__neos_debug__') |
36 | | - .should('have.property', 'value') |
37 | | - .should('eq', 'true') |
38 | | - .queryByText(/render time/i) |
39 | | - .should('exist'); |
| 33 | + .queryByText(/cache \(/i) |
| 34 | + .should("exist") |
| 35 | + .getCookie("__neos_debug__") |
| 36 | + .should("have.property", "value") |
| 37 | + .should("eq", "true"); |
40 | 38 | }); |
41 | 39 |
|
42 | | - it('debug console opens when the cookie is set', () => { |
43 | | - cy.setCookie('__neos_debug__', 'true') |
44 | | - .visit('/') |
45 | | - .queryByText(/render time/i); |
| 40 | + it("debug console opens when the cookie is set", () => { |
| 41 | + cy.setCookie("__neos_debug__", "true") |
| 42 | + .visit("/") |
| 43 | + .queryByText(/cache \(/i) |
| 44 | + .should("exist"); |
46 | 45 | }); |
47 | 46 |
|
48 | | - it('closing the console will also delete the cooke', () => { |
49 | | - cy.setCookie('__neos_debug__', 'true') |
50 | | - .visit('/') |
| 47 | + it("closing the console will also delete the cooke", () => { |
| 48 | + cy.setCookie("__neos_debug__", "true") |
| 49 | + .visit("/") |
51 | 50 | .queryByText(/close/i) |
52 | 51 | .click() |
53 | | - .getCookie('__neos_debug__') |
54 | | - .should('eq', null); |
| 52 | + .getCookie("__neos_debug__") |
| 53 | + .should("eq", null); |
55 | 54 | }); |
56 | 55 | }); |
0 commit comments