sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| describe("Within", () => { | |
| it("makes sure the CTA button in the home page hero links to the correct section", () => { | |
| cy.visit("https://learn.cypress.io/"); | |
| cy.get(".bg-course-hero").within(() => { | |
| cy.get("a").invoke("attr", "href").should("eq", "#courses"); | |
| }); | |
| }); | |
| it.only("makes sure all the links in the courses dropdown link to the correct page", () => { |
| describe("Invoke", () => { | |
| it("invokes the slice method on an array", () => { | |
| cy.request("https://jsonplaceholder.typicode.com/posts") | |
| .its("body") | |
| .invoke("slice", 0, 5) | |
| .its("length") | |
| .should("eq", 5); | |
| }); | |
| it("the nav dropdown toggles the aria-expanded property when opened or closed", () => { |