From fe2a4dee050e2b7b0db7e4520956d27bced2ae68 Mon Sep 17 00:00:00 2001 From: Jaime Leonardo Suncin Cruz Date: Sun, 2 Feb 2020 17:20:40 -0600 Subject: [PATCH 1/2] test: chain commands with subject different of document, element or window --- cypress/fixtures/test-app/index.html | 14 ++++++++++++ cypress/integration/find.spec.js | 32 ++++++++++++++++++---------- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/cypress/fixtures/test-app/index.html b/cypress/fixtures/test-app/index.html index 36a3fc3..dcd1eeb 100644 --- a/cypress/fixtures/test-app/index.html +++ b/cypress/fixtures/test-app/index.html @@ -15,6 +15,13 @@ section { padding: 10px; } + input:valid + span { + display: none; + } + input:invalid + span { + display: block; + color: red; + } @@ -110,6 +117,13 @@

Eventual non-existence

}, 500) +
+

Chain selectors

+
+ + +
+