Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Feb 9, 2024
1 parent 18e91c9 commit d1a96e7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions app/all-collections/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ const Page = async () => {

return (
<Hydrate state={dehydratedState}>
<Wrapper dehydratedState={dehydratedState}>
<Suspense>
<Suspense>
<Wrapper dehydratedState={dehydratedState}>
<AllCollections />
</Suspense>
</Wrapper>
</Wrapper>
</Suspense>
</Hydrate>
);
};
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/collection/summary.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('Collection Summary', () => {
});
});

it.only('Show like button', () => {
it('Show like button', () => {
cy.setUpApi(environment);
const item = PUBLISHED_ITEMS[1];
cy.visit(buildCollectionRoute(item.id));
Expand Down
18 changes: 9 additions & 9 deletions cypress/e2e/home/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ describe('Home Page', () => {
cy.visit(HOME_ROUTE);

cy.get(`#${HOME_PAGE_TITLE_TEXT_ID}`).should('be.visible');
cy.get(`#${POPULAR_THIS_WEEK_TITLE_ID} #${SECTION_TITLE_ID}`).should(
'be.visible',
);
cy.get(`#${MOST_LIKED_TITLE_ID} #${SECTION_TITLE_ID}`).should(
'be.visible',
);
cy.get(`#${POPULAR_THIS_WEEK_TITLE_ID} #${SECTION_TITLE_ID}`)
.scrollIntoView()
.should('be.visible');
cy.get(`#${MOST_LIKED_TITLE_ID} #${SECTION_TITLE_ID}`)
.scrollIntoView()
.should('be.visible');

cy.get(`#${GRAASP_SELECTION_TITLE_ID} #${SECTION_TITLE_ID}`, {
timeout: 4000,
}).should('be.visible');
cy.get(`#${GRAASP_SELECTION_TITLE_ID} #${SECTION_TITLE_ID}`)
.scrollIntoView()
.should('be.visible');
});

describe('Graasper items', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/home/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Search', () => {
cy.get(`#${SEARCH_RESULTS_SHOW_MORE_BUTTON}`)
.should('be.visible')
.click();

cy.url().should('include', '/all-collections');
cy.get(`#${ALL_COLLECTIONS_GRID_ID}`).should('be.visible');

cy.get(`#${HOME_SEARCH_ID}`).should('have.value', keywords);
Expand Down

0 comments on commit d1a96e7

Please sign in to comment.