feat: publish Toolbox 0.6.0 with regex-tools
This commit is contained in:
@@ -121,6 +121,33 @@ describe('portal UI', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('uses the compact Regex presentation for the released tool', async () => {
|
||||
vi.stubGlobal(
|
||||
'fetch',
|
||||
vi.fn(
|
||||
catalogueFetch({
|
||||
'/toolbox.catalog.json': Response.json({
|
||||
...catalogue,
|
||||
apps: [
|
||||
...catalogue.apps,
|
||||
{ manifest: './apps/regex/toolbox-app.json', enabled: true },
|
||||
],
|
||||
}),
|
||||
})
|
||||
)
|
||||
);
|
||||
render(<App />);
|
||||
|
||||
await findToolLink();
|
||||
const card = screen.getByTestId('app-card-de.add-ideas.regex-tools');
|
||||
expect(within(card).getByRole('heading', { level: 3 })).toHaveTextContent(
|
||||
'Regex'
|
||||
);
|
||||
expect(
|
||||
within(card).getByText('Explain and test regex locally.')
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
it('moves the full disclosure into an accessible modal', async () => {
|
||||
vi.stubGlobal('fetch', vi.fn(catalogueFetch()));
|
||||
const user = userEvent.setup();
|
||||
|
||||
Reference in New Issue
Block a user