Skip to content

Commit

Permalink
Merge branch 'next' into fix-commit-entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Feb 4, 2023
2 parents 11c84df + 8e4526d commit c5cfc82
Show file tree
Hide file tree
Showing 4 changed files with 634 additions and 103 deletions.
10 changes: 5 additions & 5 deletions cypress/e2e/api.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ describe('API Test', () => {
const text = $el.find('a').text();
const link = $el.find('a').attr('href');

cy.visit(`/api/${link}`);

cy.get('h2').should('include.text', text);
cy.get('h1').should('not.include.text', 'PAGE NOT FOUND');
cy.go('back');
cy.request(`/api/${link}`).should((response) => {
expect(response.status).to.eq(200);
expect(response.body).to.include(text);
expect(response.body).to.not.include('PAGE NOT FOUND');
});
});
});
});
Expand Down
Loading

0 comments on commit c5cfc82

Please sign in to comment.