From 8662a5a6009ddc4573bbeee7e4adce2224432332 Mon Sep 17 00:00:00 2001 From: AtofStryker Date: Tue, 2 Apr 2024 16:16:06 -0400 Subject: [PATCH] fix: readd end table for older versions of cypress --- 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.