Skip to content

Commit

Permalink
Fix performance tests (#6245)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet authored Jul 13, 2024
1 parent dc6e27e commit e5d76a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"options": {
"cwd": "{projectRoot}",
"commands": [
"test-storybook --url http://localhost:{args.port} --maxWorkers=3"
"test-storybook --url http://localhost:{args.port} --maxWorkers=2"
],
"port": 6006
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export const Elipsis: Story = {
export const Performance = getProfilingStory({
componentName: 'AddressFieldDisplay',
averageThresholdInMs: 0.15,
numberOfRuns: 30,
numberOfTestsPerRun: 50,
numberOfRuns: 20,
numberOfTestsPerRun: 100,
});
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit e5d76a3

Please sign in to comment.