Closed sam-myers closed 1 year ago
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
[X] functions/search/template.html
✅ Commit c269fd8
• Change the href attribute of the anchor tag on line 15 from "/public" to "/".
[X] cypress/e2e/search_results.cy.js
✅ Commit a3c8ca8
• Add a new test case after line 37. The test case should be named 'Check navigation to home page'.
• In the new test case, use the `cy.visit` function to navigate to the search page.
• Use the `cy.get` function to select the link that leads to the home page. You can use the class name 'navbar-brand' to select this link.
• Use the `cy.click` function to simulate a click event on the selected link.
• Use the `cy.url` function to get the current URL. Use the `should` function to assert that the current URL is equal to the home page URL.
I have finished reviewing the code for completeness. I did not find errors for sweep/fix-button-navigation
.
.
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord
In
functions/search/template.html
, the link on line 15,<div class="container"><a class="navbar-brand" href="/public">OmniRSS</a><button data-bs-toggle="collapse" class="navbar-toggler" data-bs-target="#navcol-1"></button>
is broken. It should lead to the main page at/
, but it instead leads to/public
.Make these changes:
/
instead of/public
cypress/e2e/search_results.cy.js
that verifies that clicking the link takes you back to the home pageChecklist
- [X] ``functions/search/template.html`` ✅ Commitc269fd8
- [X] ``cypress/e2e/search_results.cy.js`` ✅ Commita3c8ca8