Skip to content

Commit

Permalink
test: update tests for computeShades changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zachstence committed Nov 27, 2024
1 parent 92e3747 commit abc0dbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/themes/tests/tests.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ test('body text should be computed from base', async ({ page }) => {
const text = await page.getByText('This is some body text');

await switchAppearance(page, 'system');
await expect(text).toHaveCSS('color', 'rgb(235, 223, 235)');
await expect(text).toHaveCSS('color', 'rgb(238, 233, 239)');
await expect(body).toHaveCSS('background-color', 'rgb(23, 1, 24)');

await switchAppearance(page, 'light');
await expect(text).toHaveCSS('color', 'rgb(26, 20, 28)');
await expect(text).toHaveCSS('color', 'rgb(21, 18, 22)');
await expect(body).toHaveCSS('background-color', 'rgb(253, 244, 255)');

await switchAppearance(page, 'dark');
await expect(text).toHaveCSS('color', 'rgb(235, 223, 235)');
await expect(text).toHaveCSS('color', 'rgb(238, 233, 239)');
await expect(body).toHaveCSS('background-color', 'rgb(23, 1, 24)');
});

0 comments on commit abc0dbb

Please sign in to comment.