mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Make appearance E2E platform deterministic
Signed-off-by: kenny lopez <klopez4212@gmail.com>
This commit is contained in:
@@ -745,7 +745,7 @@ test("prominent active tab is opt-in and switches selection surfaces", async ({
|
||||
PROMINENT_ACTIVE_TAB_STORAGE_KEY,
|
||||
),
|
||||
)
|
||||
.toBe("true");
|
||||
.toBe("false");
|
||||
|
||||
await toggle.click();
|
||||
await expect(toggle).toBeChecked();
|
||||
@@ -1253,6 +1253,12 @@ test("accent picker reveals/hides when toggling Buzz", async ({ page }) => {
|
||||
// non-Buzz tile brings it back. Asserts the presence toggle (the motion
|
||||
// wrapper) works end to end.
|
||||
await seedTheme(page, "github-light");
|
||||
await page.addInitScript(() => {
|
||||
Object.defineProperty(navigator, "platform", {
|
||||
configurable: true,
|
||||
get: () => "MacIntel",
|
||||
});
|
||||
});
|
||||
await installMockBridge(page);
|
||||
await openAppearance(page, "light");
|
||||
await expect(page.getByTestId("accent-color-neutral")).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user