From 55ef7594e41b4a68ceef11ffb5fb480766a5c8f0 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Tue, 2 Apr 2024 16:37:30 -0400 Subject: [PATCH] fix: readd end table for older versions of cypress (#820) --- app/commands/misc.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/app/commands/misc.html b/app/commands/misc.html index b3881da88..0248fdf30 100644 --- a/app/commands/misc.html +++ b/app/commands/misc.html @@ -70,6 +70,43 @@

Misc

+
+

.end()

+

To end the command chain, use the .end() command.

+
// cy.end is useful when you want to end a chain of commands
+// and force Cypress to re-query from the root element
+cy.get('.misc-table').within(() => {
+  // ends the current chain and yields null
+  cy.contains('Cheryl').click().end()
+
+  // queries the entire table again
+  cy.contains('Charles').click()
+})
+
+
+
+ + + + + + + + + + + + + + + + + +
Table
User: Cheryl
User: Charles
User: Darryl
+
+
+ +

cy.exec()

To execute a system command, use the cy.exec() command.