Improve stability of Playwright screenshot tests (#11983)
This commit is contained in:
@@ -14,15 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
/* Screenshot test specific CSS */
|
||||
@media only percy {
|
||||
/* Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot */
|
||||
.mx_BaseAvatar {
|
||||
background-color: var(--percy-color-avatar) !important;
|
||||
color: white !important;
|
||||
}
|
||||
}
|
||||
|
||||
button.mx_BaseAvatar {
|
||||
/* <button> is a form element and by default it uses the user agent (browser) styling.
|
||||
We want it to inherit the font-family and line-height from its parent.
|
||||
|
||||
@@ -64,11 +64,3 @@ limitations under the License.
|
||||
--username-color: $username-variant8-color;
|
||||
}
|
||||
}
|
||||
|
||||
/* Percy screenshot test specific CSS */
|
||||
@media only percy {
|
||||
.mx_ReplyChain {
|
||||
/* Override the colour in percy tests for screenshot consistency */
|
||||
border-left-color: var(--percy-color-replyChain-border) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,10 +34,3 @@ limitations under the License.
|
||||
font-size: var(--cpd-font-size-body-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@media only percy {
|
||||
.mx_DisambiguatedProfile_displayName {
|
||||
/* Override the colour in percy tests for screenshot consistency */
|
||||
color: var(--percy-color-displayName) !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user