From 2456a576cfbdc7d7ae0bd1205dfdd43faaef44a0 Mon Sep 17 00:00:00 2001 From: carmen Date: Thu, 4 Nov 2021 13:47:57 -0400 Subject: [PATCH] test --- .github/workflows/main.yml | 8 +++++--- cypress/integration/app_spec.js | 11 ----------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f5d4868..e87d62ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,9 @@ name: End-to-end tests -on: [push] +on: + pull_request: + branches: + - master + - develop jobs: cypress-run: runs-on: windows-latest @@ -14,5 +18,3 @@ jobs: # let's see if the Test Runner handles url in the config # https://github.com/cypress-io/cypress/issues/5466 config: baseUrl=http://localhost:8888 - - diff --git a/cypress/integration/app_spec.js b/cypress/integration/app_spec.js index 3e81696b..9435a44e 100644 --- a/cypress/integration/app_spec.js +++ b/cypress/integration/app_spec.js @@ -113,17 +113,6 @@ describe("TodoMVC - React", function () { .should("contain", TODO_ITEM_TWO); }); - it("adds items", function () { - // create several todos then check the number of items in the list - cy.get(".new-todo") - .type("todo A{enter}") - .type("todo B{enter}") // we can continue working with same element - .type("todo C{enter}") // and keep adding new items - .type("todo D{enter}"); - - cy.get(".todo-list li").should("have.length", 4); - }); - it("should clear text input field when an item is added", function () { cy.get(".new-todo").type(TODO_ITEM_ONE).type("{enter}");