Skip to content

Commit

Permalink
Merge pull request #1 from BioCarmen/workflow
Browse files Browse the repository at this point in the history
test
  • Loading branch information
BioCarmen authored Nov 4, 2021
2 parents dcf725b + 2456a57 commit a86dfef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: End-to-end tests
on: [push]
on:
pull_request:
branches:
- master
- develop
jobs:
cypress-run:
runs-on: windows-latest
Expand All @@ -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


11 changes: 0 additions & 11 deletions cypress/integration/app_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}");

Expand Down

0 comments on commit a86dfef

Please sign in to comment.