Fix performance tests (#6245)

This commit is contained in:
Charles Bochet
2024-07-13 22:30:11 +02:00
committed by GitHub
parent dc6e27e388
commit e5d76a33ed
3 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ export const RegenerateApiKey: Story = {
const canvas = within(canvasElement);
await canvas.findByText('Settings');
await userEvent.click(canvas.getByText('Regenerate Key'));
await userEvent.click(await canvas.findByText('Regenerate Key'));
await canvas.findByText('Cancel');
const confirmationInput = await canvas.findByPlaceholderText('yes');
@ -85,7 +85,7 @@ export const DeleteApiKey: Story = {
const canvas = within(canvasElement);
await canvas.findByText('Settings');
await userEvent.click(canvas.getByText('Delete'));
await userEvent.click(await canvas.findByText('Delete'));
await canvas.findByText('Cancel');
const confirmationInput = await canvas.findByPlaceholderText('yes');