Skip to content

Commit

Permalink
feat(pie-toast): DSW-2121 updated visual tests description with prope…
Browse files Browse the repository at this point in the history
…r component name
  • Loading branch information
thejfreitas committed Jul 22, 2024
1 parent 170af73 commit 235f384
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/components/pie-toast/test/visual/pie-toast.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - isDismissible - Should show close icon if isDismissible is true');
await percySnapshot(page, 'PieToast - isDismissible - Should show close icon if isDismissible is true');
});

test('Should not show close icon if isDismissible is false', async ({ page, mount }) => {
Expand All @@ -46,7 +46,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - isDismissible - Should not show close icon if isDismissible is false');
await percySnapshot(page, 'PieToast - isDismissible - Should not show close icon if isDismissible is false');
});
});

Expand All @@ -60,7 +60,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - message - Should show ellipsis when message is too big and isMultiline is false');
await percySnapshot(page, 'PieToast - message - Should show ellipsis when message is too big and isMultiline is false');
});

test('Should show ellipsis when message is too big and isMultiline is true and message is limited to three lines', async ({ page, mount }) => {
Expand All @@ -72,7 +72,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - message - Should show ellipsis when message is too big and isMultiline is true and message is limited to three lines');
await percySnapshot(page, 'PieToast - message - Should show ellipsis when message is too big and isMultiline is true and message is limited to three lines');
});
});

Expand All @@ -85,7 +85,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - isMultiline - Should show close icon if isDismissible is true');
await percySnapshot(page, 'PieToast - isMultiline - Should show close icon if isDismissible is true');
});

test('Should not show close icon if isDismissible is false', async ({ page, mount }) => {
Expand All @@ -96,7 +96,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - isMultiline - Should not show close icon if isDismissible is false');
await percySnapshot(page, 'PieToast - isMultiline - Should not show close icon if isDismissible is false');
});
});

Expand All @@ -109,7 +109,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - isMultiline - Should show leadingAction in the footer if isMultiline is true');
await percySnapshot(page, 'PieToast - isMultiline - Should show leadingAction in the footer if isMultiline is true');
});

test('Should show leadingAction inline if isMultiline is false', async ({ page, mount }) => {
Expand All @@ -120,7 +120,7 @@ test.describe('Props', () => {
} as ToastProps,
});

await percySnapshot(page, 'PieNotification - isMultiline - Should show leadingAction inline if isMultiline is false');
await percySnapshot(page, 'PieToast - isMultiline - Should show leadingAction inline if isMultiline is false');
});
});
});

0 comments on commit 235f384

Please sign in to comment.