1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Move room directory Puppeteer tests over to Cypress (#8832)

* Fix user view percy test by sticking the user avatar colour

* Move room directory Puppeteer tests over to Cypress

* Consolidate import

* Fix tests

* Grab default widths

* Tweak Percy CSS mechanism
This commit is contained in:
Michael Telatynski
2022-06-13 19:25:39 +01:00
committed by GitHub
parent dfdba46d57
commit b03aa2ebf5
7 changed files with 150 additions and 58 deletions

View File

@ -37,7 +37,7 @@ declare global {
}
}
Cypress.Commands.add("percySnapshotElement", { prevSubject: true }, (subject, name, options) => {
Cypress.Commands.add("percySnapshotElement", { prevSubject: "element" }, (subject, name, options) => {
cy.percySnapshot(name, {
domTransformation: documentClone => scope(documentClone, subject.selector),
...options,