Skip to content

Commit

Permalink
Upgrade to next@15 and fix cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkxf committed Oct 25, 2024
1 parent ffdde7a commit f4f26dd
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 80 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
describe("spec", () => {
it("subscribes to a custom feed", () => {
cy.visit("http://localhost:3000");
cy.contains("New feed").click({ force: true });
cy.contains("New feed").click();

cy.contains("Subscribe");
cy.get("#url").type("https://www.mikefrancis.dev/rss.xml");
cy.get("#url").type("https://smashingmagazine.com/feed");
cy.get("button").contains("Subscribe").click({ force: true });
cy.get("#feed-items li").first().click({ force: true });
});

it("subscribes to a random feed", () => {
cy.visit("http://localhost:3000");
cy.contains("New feed").click({ force: true });
cy.contains("New feed").click();

cy.contains("Subscribe");
cy.get("button").contains("Add random feed").click({ force: true });
Expand All @@ -20,7 +20,7 @@ describe("spec", () => {

it("displays an error when trying to subscribe to an invalid feed", () => {
cy.visit("http://localhost:3000");
cy.contains("New feed").click({ force: true });
cy.contains("New feed").click();

cy.contains("Subscribe");
cy.get("#url").type("lol");
Expand Down
Loading

0 comments on commit f4f26dd

Please sign in to comment.