Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrloureed committed Jul 24, 2023
1 parent 686214a commit 07e8e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ test('Given warn state and tooltip value, there should be a warn tooltip next to
}) => {
const select = page.getByTestId('select-warn-tooltip');
const tooltip = select.locator('label > div > v-tooltip').first();
await expect(tooltip.locator('.text-warning-bright')).toBeVisible();
await expect(tooltip).toBeVisible();

// text is not visible
await expect(tooltip.getByText('warn tip').first()).not.toBeVisible();
Expand All @@ -165,7 +165,7 @@ test('Given error state and tooltip value, there should be an error tooltip next
}) => {
const select = page.getByTestId('select-error-tooltip');
const tooltip = select.locator('label > div > v-tooltip').first();
await expect(tooltip.locator('.text-danger-dark')).toBeVisible();
await expect(tooltip).toBeVisible();

// text is not visible
await expect(tooltip.getByText('error tip').first()).not.toBeVisible();
Expand Down

0 comments on commit 07e8e69

Please sign in to comment.