Fix performance tests (#6245)
This commit is contained in:
2
nx.json
2
nx.json
@ -162,7 +162,7 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"cwd": "{projectRoot}",
|
"cwd": "{projectRoot}",
|
||||||
"commands": [
|
"commands": [
|
||||||
"test-storybook --url http://localhost:{args.port} --maxWorkers=3"
|
"test-storybook --url http://localhost:{args.port} --maxWorkers=2"
|
||||||
],
|
],
|
||||||
"port": 6006
|
"port": 6006
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,6 +49,6 @@ export const Elipsis: Story = {
|
|||||||
export const Performance = getProfilingStory({
|
export const Performance = getProfilingStory({
|
||||||
componentName: 'AddressFieldDisplay',
|
componentName: 'AddressFieldDisplay',
|
||||||
averageThresholdInMs: 0.15,
|
averageThresholdInMs: 0.15,
|
||||||
numberOfRuns: 30,
|
numberOfRuns: 20,
|
||||||
numberOfTestsPerRun: 50,
|
numberOfTestsPerRun: 100,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -60,7 +60,7 @@ export const RegenerateApiKey: Story = {
|
|||||||
const canvas = within(canvasElement);
|
const canvas = within(canvasElement);
|
||||||
await canvas.findByText('Settings');
|
await canvas.findByText('Settings');
|
||||||
|
|
||||||
await userEvent.click(canvas.getByText('Regenerate Key'));
|
await userEvent.click(await canvas.findByText('Regenerate Key'));
|
||||||
|
|
||||||
await canvas.findByText('Cancel');
|
await canvas.findByText('Cancel');
|
||||||
const confirmationInput = await canvas.findByPlaceholderText('yes');
|
const confirmationInput = await canvas.findByPlaceholderText('yes');
|
||||||
@ -85,7 +85,7 @@ export const DeleteApiKey: Story = {
|
|||||||
const canvas = within(canvasElement);
|
const canvas = within(canvasElement);
|
||||||
await canvas.findByText('Settings');
|
await canvas.findByText('Settings');
|
||||||
|
|
||||||
await userEvent.click(canvas.getByText('Delete'));
|
await userEvent.click(await canvas.findByText('Delete'));
|
||||||
|
|
||||||
await canvas.findByText('Cancel');
|
await canvas.findByText('Cancel');
|
||||||
const confirmationInput = await canvas.findByPlaceholderText('yes');
|
const confirmationInput = await canvas.findByPlaceholderText('yes');
|
||||||
|
|||||||
Reference in New Issue
Block a user