From 9472f7f4eb8d2ec1f128f55b804de6d9783b2e2a Mon Sep 17 00:00:00 2001 From: Koen van Gilst Date: Tue, 14 Aug 2018 10:13:21 +0200 Subject: [PATCH] updates cypress, revert app name change --- cypress/integration/simple_spec.js | 6 +++--- package.json | 2 +- yarn.lock | 14 +++----------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/cypress/integration/simple_spec.js b/cypress/integration/simple_spec.js index 9c9722f..25f31ff 100644 --- a/cypress/integration/simple_spec.js +++ b/cypress/integration/simple_spec.js @@ -13,8 +13,8 @@ describe('Clicking N should turn button green', function() { }) }) -describe('First clicking O should turn button red', function() { - it('finds O, clicks it and it should turn red', function() { +describe('First clicking O should turn button orange (almost correct)', function() { + it('finds O, clicks it and it should turn orange', function() { cy.visit('http://localhost:3000/') cy.get('.grid') @@ -24,6 +24,6 @@ describe('First clicking O should turn button red', function() { cy.get('.grid') .contains('O') .click() - .should('have.class', 'wrong') + .should('have.class', 'almost-correct') }) }) diff --git a/package.json b/package.json index 044bd18..179c4bc 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@types/react-redux": "^6.0.6", "babel-core": "^6.26.3", "babel-runtime": "^6.26.0", - "cypress": "^3.0.3", + "cypress": "^3.1.0", "http-server": "^0.11.1", "react-scripts-ts": "2.17.0", "source-map-explorer": "^1.5.0", diff --git a/yarn.lock b/yarn.lock index 1cac8ff..81de370 100644 --- a/yarn.lock +++ b/yarn.lock @@ -294,10 +294,6 @@ version "4.14.87" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.87.tgz#55f92183b048c2c64402afe472f8333f4e319a6b" -"@types/lodash@^4.14.116": - version "4.14.116" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.116.tgz#5ccf215653e3e8c786a58390751033a9adca0eb9" - "@types/minimatch@3.0.3": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" @@ -2129,10 +2125,6 @@ chalk@2.4.1, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0, chalk@^2.3.2, chalk@^2.4. escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chance@^1.0.16: - version "1.0.16" - resolved "https://registry.yarnpkg.com/chance/-/chance-1.0.16.tgz#bd61912716b0010c3dca8e3948a960efcaa7bb1b" - chardet@^0.4.0: version "0.4.2" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2" @@ -2756,9 +2748,9 @@ cyclist@~0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640" -cypress@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/cypress/-/cypress-3.0.3.tgz#b8d64d36a8c642f5343f826b6ebac312eed5a51d" +cypress@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cypress/-/cypress-3.1.0.tgz#b718ba64289b887c7ab7a7f09245d871a4a409ba" dependencies: "@cypress/listr-verbose-renderer" "0.4.1" "@cypress/xvfb" "1.2.3"