From 00a08fd399b8faa1d22f0993185155d000ed182f Mon Sep 17 00:00:00 2001 From: Nicolas Ramz Date: Tue, 6 Sep 2022 17:27:21 +0200 Subject: [PATCH] fix: remove deprecated cy.state('subject') --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 649e11d..5ded29d 100644 --- a/src/utils.js +++ b/src/utils.js @@ -6,7 +6,7 @@ function getFirstElement(jqueryOrElement) { } function getContainer(container) { - const subject = cy.state('subject') + const subject = cy.currentSubject() const withinContainer = cy.state('withinSubject') if (!subject && withinContainer) {