From c0e0c55f9eb698f9213c7467604f6b37f2e9bfab Mon Sep 17 00:00:00 2001 From: Alexey Sudilovskiy Date: Fri, 12 Jul 2024 11:44:03 +0200 Subject: [PATCH] chore: rename tests --- .../__tests__/AvatarStack.visual.test.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/AvatarStack/__tests__/AvatarStack.visual.test.tsx b/src/components/AvatarStack/__tests__/AvatarStack.visual.test.tsx index 830dbd7164..fb3cded5ab 100644 --- a/src/components/AvatarStack/__tests__/AvatarStack.visual.test.tsx +++ b/src/components/AvatarStack/__tests__/AvatarStack.visual.test.tsx @@ -5,30 +5,21 @@ import {test} from '~playwright/core'; import {AvatarStackStories} from './stories'; test.describe('AvatarStack', () => { - test('single avatar', async ({mount, expectScreenshot}) => { + test('render story ', async ({mount, expectScreenshot}) => { await mount(); await expectScreenshot(); }); - test('default more component', async ({mount, expectScreenshot}) => { + test('render story ', async ({mount, expectScreenshot}) => { await mount(); await expectScreenshot(); }); - test('edge case with more button omit', async ({mount, expectScreenshot}) => { + test('render story ', async ({mount, expectScreenshot}) => { await mount(); await expectScreenshot(); }); - - test('custom more button', async ({page, mount, expectScreenshot}) => { - const component = await mount(); - - await component.getByRole('button', {name: 'Rest of the users'}).hover(); - await page.getByText('Somehow display list of all other items').waitFor(); - - await expectScreenshot(); - }); });