insert most used options

This commit is contained in:
Joshua 2022-09-13 10:36:59 +02:00
parent f5d6b7f63d
commit e8f8434188

View file

@ -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", snapshotPath: "cypress/snapshots",
snapshotName: "Comparison" snapshotName: "Objects",
} });
); });
});
it("works with numbers", () => {
// it("works with numbers", () => { cy.wrap(42).snapshot({
// console.log(cy.wrap(42)) snapshotPath: "cypress/snapshots",
// cy.wrap(42).snapshot(); snapshotName: "Numbers",
// }); });
});
// it("works with strings", () => {
// console.log(cy.wrap("foo-bar")) it("works with strings", () => {
// cy.wrap("foo-bar").snapshot(); cy.wrap("foo-bar").snapshot({
// }); snapshotPath: "cypress/snapshots",
snapshotName: "Strings",
// it("works with arrays", () => { });
// console.log(cy.wrap([1, 2, 3])) });
// cy.wrap([1, 2, 3]).snapshot();
// }); it("works with arrays", () => {
cy.wrap([1, 2, 3]).snapshot({
snapshotPath: "cypress/snapshots",
snapshotName: "Arrays",
});
});
}); });
}); });