|
1 | 1 | /* eslint-disable no-undef */ |
2 | | -import 'cypress-plugin-snapshots/commands'; |
3 | | -describe('Smoke test', function () { |
4 | | - it('fragmentIssue', function () { |
5 | | - cy.visit('http://127.0.0.1:8080/cy/smoke-fragment-issue.html'); |
| 2 | +import "cypress-plugin-snapshots/commands"; |
| 3 | +describe("Smoke test", function () { |
| 4 | + it("fragmentIssue", function () { |
| 5 | + cy.visit("http://127.0.0.1:8080/cy/smoke-fragment-issue.html"); |
6 | 6 | // This line is to make sure the privacy icon is loaded |
7 | | - cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible'); |
| 7 | + cy.get(".privacy>span>svg", { timeout: 5000 }).should("be.visible"); |
8 | 8 | cy.document().toMatchImageSnapshot({ |
9 | 9 | imageConfig: { threshold: 0.01 }, |
10 | | - capture: 'viewport', |
| 10 | + capture: "viewport", |
11 | 11 | }); |
12 | 12 | }); |
13 | 13 |
|
14 | | - it('fragment', function () { |
15 | | - cy.visit('http://127.0.0.1:8080/cy/smoke-fragment.html'); |
| 14 | + it("fragment", function () { |
| 15 | + cy.visit("http://127.0.0.1:8080/cy/smoke-fragment.html"); |
16 | 16 | // This line is to make sure the privacy icon is loaded |
17 | | - cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible'); |
| 17 | + cy.get(".privacy>span>svg", { timeout: 5000 }).should("be.visible"); |
18 | 18 | cy.document().toMatchImageSnapshot({ |
19 | 19 | imageConfig: { threshold: 0.02 }, |
20 | | - capture: 'viewport', |
| 20 | + capture: "viewport", |
21 | 21 | }); |
22 | 22 | }); |
23 | 23 | }); |
0 commit comments