Increase storybook pages coverage (#4885)
On FE: - refreshing metadata mocks - updating jest tests - fixing storybook pages coverage - fixing storybook modules coverage
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { Meta, StoryObj } from '@storybook/react';
|
||||
import { within } from '@storybook/test';
|
||||
|
||||
import { SettingsDevelopers } from '~/pages/settings/developers/SettingsDevelopers';
|
||||
import {
|
||||
@ -23,7 +24,10 @@ export default meta;
|
||||
export type Story = StoryObj<typeof SettingsDevelopers>;
|
||||
|
||||
export const Default: Story = {
|
||||
play: async () => {
|
||||
play: async ({ canvasElement }) => {
|
||||
const canvas = within(canvasElement);
|
||||
await sleep(100);
|
||||
|
||||
await canvas.findByText('API keys');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user