Edit widths of Percy snapshots of "User settings tab - Appearance" (#10861)

This commit is contained in:
Suguru Hirahara 2023-05-12 10:00:01 +00:00 committed by GitHub
parent dbf73f725f
commit 01238c1c38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,12 @@ describe("Appearance user settings tab", () => {
cy.get(".mx_SettingsTab.mx_AppearanceUserSettingsTab").percySnapshotElement(
"User settings tab - Appearance (advanced options collapsed)",
{
// Emulate TabbedView's actual min and max widths
// 580: '.mx_UserSettingsDialog .mx_TabbedView' min-width
// 796: 1036 (mx_TabbedView_tabsOnLeft actual width) - 240 (mx_TabbedView_tabPanel margin-right)
widths: [580, 796],
},
);
// Click "Show advanced" link button
@ -52,6 +58,12 @@ describe("Appearance user settings tab", () => {
cy.get(".mx_SettingsTab.mx_AppearanceUserSettingsTab").percySnapshotElement(
"User settings tab - Appearance (advanced options expanded)",
{
// Emulate TabbedView's actual min and max widths
// 580: '.mx_UserSettingsDialog .mx_TabbedView' min-width
// 796: 1036 (mx_TabbedView_tabsOnLeft actual width) - 240 (mx_TabbedView_tabPanel margin-right)
widths: [580, 796],
},
);
});