Skip to content

Commit 96400bd

Browse files
fix tests for badge and remove screenshots
1 parent 319a9a7 commit 96400bd

File tree

19 files changed

+6
-6
lines changed

19 files changed

+6
-6
lines changed

core/src/components/badge/test/shape/badge.e2e.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { configs, test } from '@utils/test/playwright';
66
*/
77
configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ config, screenshot, title }) => {
88
test.describe(title('badge: shape'), () => {
9-
test('should render soft badges for smaller sizes', async ({ page }) => {
9+
test('should render soft badges for small size', async ({ page }) => {
1010
await page.setContent(
1111
`
1212
<div id="container">
@@ -18,10 +18,10 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ config, screens
1818

1919
const container = page.locator('#container');
2020

21-
await expect(container).toHaveScreenshot(screenshot(`badge-shape-soft-smaller-sizes`));
21+
await expect(container).toHaveScreenshot(screenshot(`badge-shape-soft-small-size`));
2222
});
2323

24-
test('should render soft badges with long text for smaller sizes', async ({ page }) => {
24+
test('should render soft badges with long text for small size', async ({ page }) => {
2525
await page.setContent(
2626
`
2727
<div id="container">
@@ -33,10 +33,10 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ config, screens
3333

3434
const container = page.locator('#container');
3535

36-
await expect(container).toHaveScreenshot(screenshot(`badge-shape-soft-smaller-sizes-long-text`));
36+
await expect(container).toHaveScreenshot(screenshot(`badge-shape-soft-small-size-long-text`));
3737
});
3838

39-
test('should render soft badges with icon for smaller sizes', async ({ page }) => {
39+
test('should render soft badges with icon for small size', async ({ page }) => {
4040
await page.setContent(
4141
`
4242
<div id="container">
@@ -50,7 +50,7 @@ configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ config, screens
5050

5151
const container = page.locator('#container');
5252

53-
await expect(container).toHaveScreenshot(screenshot(`badge-shape-soft-smaller-sizes-icon`));
53+
await expect(container).toHaveScreenshot(screenshot(`badge-shape-soft-small-size-icon`));
5454
});
5555

5656
test('should render soft badges for larger sizes', async ({ page }) => {

0 commit comments

Comments
 (0)