Skip to content

Commit

Permalink
fix(metadata-sidebar): Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubKida committed Oct 4, 2024
1 parent 494a80f commit 38c18dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const MetadataInstanceEditorCancelChanges: StoryObj<typeof MetadataSideba

headlines = await canvas.findAllByRole('heading', { level: 1 });
expect(headlines).toHaveLength(1);
expect(headlines.map(heading => heading.textContent)).toEqual(expect.arrayContaining(['My Template']));
expect(headlines.map(heading => heading.textContent)).toEqual(expect.arrayContaining(['Custom Metadata']));

// cancel editing - back to list view
const cancelButton = await canvas.findByRole('button', { name: 'Cancel' });
Expand Down

0 comments on commit 38c18dd

Please sign in to comment.