Skip to content

Commit

Permalink
add new typography tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BenOsodrac committed Jun 14, 2024
1 parent 8bd39b4 commit 445f04a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/src/css/test/typography/display/typography.e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { expect } from '@playwright/test';
import { configs, test } from '@utils/test/playwright';

configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
test.describe(title('Typography: display'), () => {
test('should not have visual regressions', async ({ page }) => {
await page.goto(`/src/css/test/typography/display`, config);

await page.setIonViewport();

await expect(page).toHaveScreenshot(screenshot(`ionic-typography-display-styles`));
});
});
});

0 comments on commit 445f04a

Please sign in to comment.