Commit 39ab462b authored by Walmyr Filho's avatar Walmyr Filho

Pretify test file

parent 612f7bb4
Pipeline #46908777 passed with stage
in 2 minutes and 25 seconds
......@@ -6,7 +6,9 @@ describe("Sample app", () => {
it("shortens a URL", () => {
cy.visit("https://goo.gl/ZYQsTL");
cy.get("input[type='text']").type("https://abcdefghijklmnopqrstuvwxyz.æåø");
cy.get("input[type='text']").type(
"https://abcdefghijklmnopqrstuvwxyz.æåø"
);
cy.contains("Shorten").click();
cy.get("#responseField a").should("contain", "https://foo.bar");
......@@ -18,7 +20,10 @@ describe("Sample app", () => {
cy.get("input[type='text']").type("https://abc.de");
cy.contains("Expand").click();
cy.get("#responseField a").should("contain", "https://foo.bar.baz.bah.boo");
cy.get("#responseField a").should(
"contain",
"https://foo.bar.baz.bah.boo"
);
});
});
});
......@@ -77,4 +82,4 @@ describe("Sample app", () => {
cy.verifyResponseFieldLinkContainUrl("https://foo.bar.baz.bah.boo");
});
});
});
\ No newline at end of file
});
......@@ -14,4 +14,4 @@ Cypress.Commands.add("typeUrl", url => {
Cypress.Commands.add("verifyResponseFieldLinkContainUrl", url => {
cy.get("#responseField a").should("contain", url);
});
\ No newline at end of file
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment