Skip to content

Commit

Permalink
Edit widths of Percy snapshots of "User settings tab - Appearance" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
luixxiul authored and richvdh committed May 12, 2023
1 parent b220e0a commit 38454f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cypress/e2e/settings/appearance-user-settings-tab.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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],
},
);
});

Expand Down

0 comments on commit 38454f4

Please sign in to comment.