-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch applitools to percy for website VRT (#2664)
* chore: switch applitools to percy for website VRT * chore: node version * chore: parallelise percy * chore: better parallel * test: unset scrolling for percy * chore: update visual regression internal docs for Percy * chore: changeset
- Loading branch information
Showing
22 changed files
with
515 additions
and
739 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@twilio-paste/animation-library': patch | ||
'@twilio-paste/core': patch | ||
--- | ||
|
||
[Animation Library]: remove unecessary check for VRT tool we no longer use |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const percyCSS = ` | ||
/* disable all the iframes in the docs site */ | ||
iframe { | ||
display: none; | ||
} | ||
/* make it scroll so vrt can capture all of it */ | ||
#styled-site-body { | ||
scroll-behavior: auto; | ||
overflow: unset; | ||
} | ||
`; | ||
module.exports = { | ||
version: 2, | ||
snapshot: { | ||
widths: [1280], | ||
percyCSS, | ||
}, | ||
}; |
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
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.
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,14 @@ | ||
enum EnvironmentVariables { | ||
UseCypressVRT = 'USE_CYPRESS_VRT', | ||
} | ||
|
||
export const DEFAULT_VRT_OPTIONS = {}; | ||
|
||
/** vrtIsEnabled: Extract environment variable for vrt usage | ||
* @returns boolean | ||
*/ | ||
export const vrtIsEnabled = (): boolean => { | ||
const vrtEnabled = Cypress.env(EnvironmentVariables.UseCypressVRT); | ||
cy.log(`[VRT]: VRT is ${vrtEnabled ? '' : 'not '}enabled`); | ||
return Cypress.env(EnvironmentVariables.UseCypressVRT); | ||
}; |
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.