Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 01238c1

Browse files
authored
Edit widths of Percy snapshots of "User settings tab - Appearance" (#10861)
1 parent dbf73f7 commit 01238c1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cypress/e2e/settings/appearance-user-settings-tab.spec.ts

+12
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ describe("Appearance user settings tab", () => {
4242

4343
cy.get(".mx_SettingsTab.mx_AppearanceUserSettingsTab").percySnapshotElement(
4444
"User settings tab - Appearance (advanced options collapsed)",
45+
{
46+
// Emulate TabbedView's actual min and max widths
47+
// 580: '.mx_UserSettingsDialog .mx_TabbedView' min-width
48+
// 796: 1036 (mx_TabbedView_tabsOnLeft actual width) - 240 (mx_TabbedView_tabPanel margin-right)
49+
widths: [580, 796],
50+
},
4551
);
4652

4753
// Click "Show advanced" link button
@@ -52,6 +58,12 @@ describe("Appearance user settings tab", () => {
5258

5359
cy.get(".mx_SettingsTab.mx_AppearanceUserSettingsTab").percySnapshotElement(
5460
"User settings tab - Appearance (advanced options expanded)",
61+
{
62+
// Emulate TabbedView's actual min and max widths
63+
// 580: '.mx_UserSettingsDialog .mx_TabbedView' min-width
64+
// 796: 1036 (mx_TabbedView_tabsOnLeft actual width) - 240 (mx_TabbedView_tabPanel margin-right)
65+
widths: [580, 796],
66+
},
5567
);
5668
});
5769

0 commit comments

Comments
 (0)