mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-21 13:42:28 +00:00
insert most used options
This commit is contained in:
parent
f5d6b7f63d
commit
e8f8434188
1 changed files with 22 additions and 19 deletions
|
@ -3,28 +3,31 @@
|
||||||
describe("@cypress/snapshot", () => {
|
describe("@cypress/snapshot", () => {
|
||||||
context("simple types", () => {
|
context("simple types", () => {
|
||||||
it("works with objects", () => {
|
it("works with objects", () => {
|
||||||
cy.fixture("File2").snapshot(
|
cy.fixture("File2").snapshot({
|
||||||
"Compare Files"
|
snapshotPath: "cypress/snapshots",
|
||||||
,{
|
snapshotName: "Objects",
|
||||||
snapshotPath: "cypress/snapshots",
|
});
|
||||||
snapshotName: "Comparison"
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// it("works with numbers", () => {
|
it("works with numbers", () => {
|
||||||
// console.log(cy.wrap(42))
|
cy.wrap(42).snapshot({
|
||||||
// cy.wrap(42).snapshot();
|
snapshotPath: "cypress/snapshots",
|
||||||
// });
|
snapshotName: "Numbers",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// it("works with strings", () => {
|
it("works with strings", () => {
|
||||||
// console.log(cy.wrap("foo-bar"))
|
cy.wrap("foo-bar").snapshot({
|
||||||
// cy.wrap("foo-bar").snapshot();
|
snapshotPath: "cypress/snapshots",
|
||||||
// });
|
snapshotName: "Strings",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// it("works with arrays", () => {
|
it("works with arrays", () => {
|
||||||
// console.log(cy.wrap([1, 2, 3]))
|
cy.wrap([1, 2, 3]).snapshot({
|
||||||
// cy.wrap([1, 2, 3]).snapshot();
|
snapshotPath: "cypress/snapshots",
|
||||||
// });
|
snapshotName: "Arrays",
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue