Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janmonschke committed Oct 4, 2022
1 parent 4824c6f commit cba7809
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('Insights', () => {

expect(screen.getByTestId('related-alerts-by-ancestry')).toBeInTheDocument();
expect(
screen.queryByRole('link', { name: new RegExp(i18n.ALERT_UPSELL) })
screen.queryByRole('button', { name: new RegExp(i18n.INSIGHTS_UPSELL) })
).not.toBeInTheDocument();
});
});
Expand All @@ -150,7 +150,7 @@ describe('Insights', () => {
);

expect(
screen.getByRole('link', { name: new RegExp(i18n.ALERT_UPSELL) })
screen.getByRole('button', { name: new RegExp(i18n.INSIGHTS_UPSELL) })
).toBeInTheDocument();
expect(screen.queryByTestId('related-alerts-by-ancestry')).not.toBeInTheDocument();
});
Expand All @@ -169,7 +169,7 @@ describe('Insights', () => {

expect(screen.queryByTestId('related-alerts-by-ancestry')).not.toBeInTheDocument();
expect(
screen.queryByRole('link', { name: new RegExp(i18n.ALERT_UPSELL) })
screen.queryByRole('button', { name: new RegExp(i18n.INSIGHTS_UPSELL) })
).not.toBeInTheDocument();
});
});
Expand Down

0 comments on commit cba7809

Please sign in to comment.