mirror of
https://github.com/strapi/strapi.git
synced 2025-12-08 13:29:57 +00:00
Update test messages
This commit is contained in:
parent
781c62c084
commit
22bd8657dd
@ -284,7 +284,7 @@ describe('Marketplace page', () => {
|
|||||||
expect(sortMenu).toBeVisible();
|
expect(sortMenu).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Sort select shows the correct options', () => {
|
it('shows the correct options on sort select', () => {
|
||||||
render(App);
|
render(App);
|
||||||
const sortButton = screen.getByRole('button', { name: /Sort by/i });
|
const sortButton = screen.getByRole('button', { name: /Sort by/i });
|
||||||
fireEvent.mouseDown(sortButton);
|
fireEvent.mouseDown(sortButton);
|
||||||
@ -296,7 +296,7 @@ describe('Marketplace page', () => {
|
|||||||
expect(newestOption).toBeVisible();
|
expect(newestOption).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Click on sort by newest changes the url', () => {
|
it('sort by newest changes the url on click', () => {
|
||||||
render(App);
|
render(App);
|
||||||
const sortButton = screen.getByRole('button', { name: /Sort by/i });
|
const sortButton = screen.getByRole('button', { name: /Sort by/i });
|
||||||
fireEvent.mouseDown(sortButton);
|
fireEvent.mouseDown(sortButton);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user