-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2064 from usablica/restructure
Restructure the project and public APIs
- Loading branch information
Showing
150 changed files
with
6,249 additions
and
4,700 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { defineConfig } from "cypress"; | ||
import { configureVisualRegression } from "cypress-visual-regression"; | ||
|
||
module.exports = defineConfig({ | ||
trashAssetsBeforeRuns: true, | ||
env: { | ||
failSilently: false, | ||
}, | ||
e2e: { | ||
screenshotsFolder: "./cypress/snapshots/actual", | ||
supportFile: "./cypress/support/index.ts", | ||
specPattern: "**/*.*cy.*", | ||
setupNodeEvents(on, config) { | ||
configureVisualRegression(on); | ||
|
||
return config; | ||
}, | ||
}, | ||
}); |
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,4 @@ | ||
module.exports = (on, config) => { | ||
const getCompareSnapshotsPlugin = require("cypress-visual-regression/dist/plugin"); | ||
getCompareSnapshotsPlugin(on, config); | ||
}; |
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+133 KB
...ts/diff/tour/dont-show-again.cy.js/dont-show-again-checkbox-first-step-diff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+119 KB
...ots/diff/tour/dont-show-again.cy.js/dont-show-again-clicked-first-step-diff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+130 KB
cypress/snapshots/diff/tour/highlight.cy.js/highlight-element-first-step-diff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+67.5 KB
cypress/snapshots/diff/tour/highlight.cy.js/highlight-fixed-element-diff.png
Oops, something went wrong.
Binary file added
BIN
+63.2 KB
...ess/snapshots/diff/tour/highlight.cy.js/highlight-fixed-element-scroll-diff.png
Oops, something went wrong.
Binary file added
BIN
+66.2 KB
...pshots/diff/tour/highlight.cy.js/highlight-fixed-parent-element-scroll-diff.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
declare namespace Cypress { | ||
interface Chainable<Subject = any>{ | ||
nextStep(): Chainable<any>; | ||
prevStep(): Chainable<any>; | ||
} | ||
interface Window { | ||
introJs: any; | ||
click: () => void; | ||
clickRelative: () => void; | ||
clickAbsolute: () => void; | ||
} | ||
} |
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,24 @@ | ||
/// <reference types="./index.d.ts" /> | ||
|
||
import { addCompareSnapshotCommand } from "cypress-visual-regression/dist/command"; | ||
|
||
addCompareSnapshotCommand({ | ||
capture: "fullPage", | ||
}); | ||
|
||
Cypress.Commands.add("nextStep", () => { | ||
cy.get(".introjs-nextbutton").click(); | ||
}); | ||
|
||
Cypress.Commands.add("prevStep", () => { | ||
cy.get(".introjs-prevbutton").click(); | ||
}); | ||
|
||
Cypress.on("window:before:load", (win) => { | ||
const htmlNode = win.document.querySelector("html"); | ||
const node = win.document.createElement("style"); | ||
node.innerHTML = "html { scroll-behavior: inherit !important; }"; | ||
htmlNode?.appendChild(node); | ||
}); | ||
|
||
import "cypress-real-events/support"; |
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.