Two basic specs

This commit is contained in:
Joshua 2022-09-09 14:50:44 +02:00
parent 3cdf0af343
commit 1636db6455
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,27 @@
/* eslint-env mocha */
/* global cy */
describe("Random Describe", () => {
context("Random Context", () => {
it("Random It", () => {
cy.fixture("File").snapshot("Fixture File", {
humanName: "Random Fixture File"
});
// cy.fixture("File2").snapshot("Fixture File",
});
// it("works with numbers", () => {
// console.log(cy.wrap(42))
// cy.wrap(42).snapshot();
// });
// it("works with strings", () => {
// console.log(cy.wrap("foo-bar"))
// cy.wrap("foo-bar").snapshot();
// });
// it("works with arrays", () => {
// console.log(cy.wrap([1, 2, 3]))
// cy.wrap([1, 2, 3]).snapshot();
// });
});
});

24
cypress/e2e/spec.cy.js Normal file
View file

@ -0,0 +1,24 @@
/* eslint-env mocha */
/* global cy */
describe("@cypress/snapshot", () => {
context("simple types", () => {
it("works with objects", () => {
cy.fixture("File2").snapshot("Compare Files");
});
// it("works with numbers", () => {
// console.log(cy.wrap(42))
// cy.wrap(42).snapshot();
// });
// it("works with strings", () => {
// console.log(cy.wrap("foo-bar"))
// cy.wrap("foo-bar").snapshot();
// });
// it("works with arrays", () => {
// console.log(cy.wrap([1, 2, 3]))
// cy.wrap([1, 2, 3]).snapshot();
// });
});
});