mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-21 21:52:28 +00:00
Two basic specs
This commit is contained in:
parent
3cdf0af343
commit
1636db6455
2 changed files with 51 additions and 0 deletions
27
cypress/e2e/Second Spec.cy.js
Normal file
27
cypress/e2e/Second Spec.cy.js
Normal 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
24
cypress/e2e/spec.cy.js
Normal 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();
|
||||||
|
// });
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in a new issue