Skip to content

Commit 5e3c936

Browse files
committed
Fixed eslint issues.
1 parent 73bb6a1 commit 5e3c936

File tree

5 files changed

+40
-38
lines changed

5 files changed

+40
-38
lines changed

cypress/e2e/creation.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* eslint-disable no-undef */
2-
import 'cypress-plugin-snapshots/commands';
3-
describe('Smoke test', function () {
4-
it('creation', function () {
5-
cy.visit('http://127.0.0.1:8080/cy/smoke-creation.html');
2+
import "cypress-plugin-snapshots/commands";
3+
describe("Smoke test", function () {
4+
it("creation", function () {
5+
cy.visit("http://127.0.0.1:8080/cy/smoke-creation.html");
66
// 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");
88
cy.document().toMatchImageSnapshot({
99
imageConfig: { threshold: 0.01 },
10-
capture: 'viewport',
10+
capture: "viewport",
1111
});
1212
});
1313
});

cypress/e2e/defect-406.spec.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
/* eslint-disable no-undef */
2-
import 'cypress-plugin-snapshots/commands';
3-
describe('Defect 406', function () {
2+
import "cypress-plugin-snapshots/commands";
3+
describe("Defect 406", function () {
44
beforeEach(() => {
55
// run these tests as if in a desktop
66
// browser with a 720p monitor
7-
cy.viewport(1280, 720)
8-
})
7+
cy.viewport(1280, 720);
8+
});
99

10-
it('Fragments under Creation', function () {
11-
cy.visit('http://127.0.0.1:8080/cy/defect-406-alt-under-creation.html');
12-
cy.get('[data-signature="m6"]', { timeout: 5000 }).should('be.visible');
10+
it("Fragments under Creation", function () {
11+
cy.visit("http://127.0.0.1:8080/cy/defect-406-alt-under-creation.html");
12+
cy.get('[data-signature="m6"]', { timeout: 5000 }).should("be.visible");
1313
// This line is to make sure the privacy icon is loaded
14-
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
14+
cy.get(".privacy>span>svg", { timeout: 5000 }).should("be.visible");
1515
cy.document().toMatchImageSnapshot({
1616
imageConfig: { threshold: 0.01 },
17-
capture: 'viewport',
17+
capture: "viewport",
1818
});
1919
});
2020
});

cypress/e2e/fragment.spec.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/* 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");
66
// 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");
88
cy.document().toMatchImageSnapshot({
99
imageConfig: { threshold: 0.01 },
10-
capture: 'viewport',
10+
capture: "viewport",
1111
});
1212
});
1313

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");
1616
// 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");
1818
cy.document().toMatchImageSnapshot({
1919
imageConfig: { threshold: 0.02 },
20-
capture: 'viewport',
20+
capture: "viewport",
2121
});
2222
});
2323
});

cypress/e2e/return.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* eslint-disable no-undef */
2-
import 'cypress-plugin-snapshots/commands';
3-
describe('Smoke test', function () {
4-
it('return', function () {
5-
cy.visit('http://127.0.0.1:8080/cy/smoke-return.html');
2+
import "cypress-plugin-snapshots/commands";
3+
describe("Smoke test", function () {
4+
it("return", function () {
5+
cy.visit("http://127.0.0.1:8080/cy/smoke-return.html");
66
// 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");
88
cy.document().toMatchImageSnapshot({
99
imageConfig: { threshold: 0.01 },
10-
capture: 'viewport',
10+
capture: "viewport",
1111
});
1212
});
1313
});

cypress/e2e/smoke.spec.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
/* eslint-disable no-undef */
2-
import 'cypress-plugin-snapshots/commands';
3-
describe('Smoke test', function () {
4-
it('should load the home page', function () {
5-
cy.visit('http://127.0.0.1:8080/cy/smoke.html');
6-
cy.get('[data-signature="append(line)"]', { timeout: 5000 }).should('be.visible');
2+
import "cypress-plugin-snapshots/commands";
3+
describe("Smoke test", function () {
4+
it("should load the home page", function () {
5+
cy.visit("http://127.0.0.1:8080/cy/smoke.html");
6+
cy.get('[data-signature="append(line)"]', { timeout: 5000 }).should(
7+
"be.visible",
8+
);
79
// This line is to make sure the privacy icon is loaded
8-
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
10+
cy.get(".privacy>span>svg", { timeout: 5000 }).should("be.visible");
911
cy.document().toMatchImageSnapshot({
1012
imageConfig: { threshold: 0.012 },
11-
capture: 'viewport',
13+
capture: "viewport",
1214
});
1315
});
1416
});

0 commit comments

Comments
 (0)