gray-kilobyte-89541
12/16/2022, 6:45 PMthousands-house-85089
12/17/2022, 1:01 AMworried-lifeguard-15953
12/17/2022, 1:06 AMthousands-house-85089
12/17/2022, 1:09 AMworried-lifeguard-15953
12/17/2022, 1:13 AM// Do something
, I'm storing the data-cy
value of each row in an array. Then I do that again after the cancel, and compare the arrays. Like I said, it works fine when there are rows, but it times-out and fails if there aren't any.thousands-house-85089
12/17/2022, 1:15 AMthousands-house-85089
12/17/2022, 1:16 AMthousands-house-85089
12/17/2022, 1:16 AMfew-waitress-52308
12/17/2022, 9:59 AMfresh-doctor-14925
12/17/2022, 1:56 PMnutritious-analyst-96582
12/17/2022, 1:56 PMgray-kilobyte-89541
12/17/2022, 3:24 PMstraight-pencil-91170
12/18/2022, 7:18 AMfresh-doctor-14925
12/18/2022, 9:21 AMstraight-pencil-91170
12/18/2022, 9:22 AMstraight-pencil-91170
12/18/2022, 9:22 AMfresh-doctor-14925
12/18/2022, 9:28 AMhandsome-twilight-72740
12/18/2022, 9:44 AMmagnificent-laptop-98009
12/18/2022, 11:09 AMthousands-house-85089
12/18/2022, 6:44 PMthousands-house-85089
12/18/2022, 6:46 PMmagnificent-laptop-98009
12/18/2022, 6:49 PMproud-gpu-14798
12/18/2022, 7:13 PMcy.get('[data-testid="code-box"]:visible'
only to discover "visible" really means "could be visible currently OR visible if the user can scroll it into view" so that locator strategy often fails for me due to multiple matches. Elsewhere, I'm currently using the isInViewport
custom chai assertion successfully. I am thinking I need to write a helper that can use similar logic during a cy.get()
to filter elements to just those that are currently in the viewport. Has anyone already tackled this?most-secretary-62975
12/19/2022, 12:37 AMthousands-house-85089
12/19/2022, 12:40 AMmost-secretary-62975
12/19/2022, 12:41 AMthousands-house-85089
12/19/2022, 12:41 AMthousands-house-85089
12/19/2022, 12:41 AMmost-secretary-62975
12/19/2022, 12:41 AM