-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dev-app): initial setup for snapshot diff testing
- Loading branch information
1 parent
617f462
commit 83d6801
Showing
15 changed files
with
139 additions
and
219 deletions.
There are no files selected for viewing
Empty file.
7 changes: 7 additions & 0 deletions
7
apps/ngrid-dev-app-e2e/src/integration/ngrid/column-width/column-width.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
describe('ngrid-dev-app', () => { | ||
beforeEach(() => cy.visit('/ngrid-column-width')); | ||
|
||
it('should display welcome message', () => { | ||
cy.matchImageSnapshot('column-width.component'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
// *********************************************** | ||
// This example commands.js shows you how to | ||
// create various custom commands and overwrite | ||
// existing commands. | ||
// | ||
// For more comprehensive examples of custom | ||
// commands please read more here: | ||
// https://on.cypress.io/custom-commands | ||
// *********************************************** | ||
import '@pebula/ngrid-cypress'; | ||
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command'; | ||
|
||
// -- This is a child command -- | ||
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This is a dual command -- | ||
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This will overwrite an existing command -- | ||
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) | ||
declare global { | ||
namespace Cypress { | ||
interface ResolvedConfigOptions { | ||
isInteractive: boolean; | ||
} | ||
} | ||
} | ||
|
||
// if (Cypress.config('isInteractive')) { | ||
// Cypress.Commands.add('matchImageSnapshot', () => { | ||
// cy.log('Skipping snapshot 👀') | ||
// }) | ||
// } else { | ||
// addMatchImageSnapshotCommand({ | ||
// customSnapshotsDir: './src/__snapshots__', | ||
// failureThreshold: 0.03, // threshold for entire image | ||
// failureThresholdType: 'percent', // percent of image or number of pixels | ||
// customDiffConfig: { threshold: 0.1 }, // threshold for each pixel | ||
// capture: 'viewport', // capture viewport in screenshot | ||
// }); | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
96 changes: 0 additions & 96 deletions
96
apps/ngrid-docs-app-e2e/src/support/ngrid-harness/actions.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
91 changes: 0 additions & 91 deletions
91
apps/ngrid-docs-app-e2e/src/support/ngrid-harness/ngrid-harness.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.