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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 150 additions and 58 deletions

View file

@ -52,3 +52,12 @@ limitations under the License.
vertical-align: top;
background-color: $background;
}
// Percy screenshot test specific CSS
@media only percy {
.mx_BaseAvatar_initial,
.mx_BaseAvatar_initial + .mx_BaseAvatar_image {
// Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot
background-color: $username-variant2-color !important;
}
}