1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-10-23 17:08:30 +03:00

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

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],
},
);
});