Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asserting value from certain row on table

I am trying to assert a value from a certain row on a table. The row I am trying to assert the value of will always have the same description, but where the row is on the table might change according to what document gets loaded to create the table from.

My Question is, How am I able to assert the value in the row where the description is Parts Inventory Here is the HTML to the row on the table I am trying to assert enter image description here

like image 280
ItsNotAndy Avatar asked Jun 10 '26 16:06

ItsNotAndy


1 Answers

This solution should work:

cy.contains('01 - Parts inventory').parent().next().children()
.should('have.text','2899869.56')
like image 54
cypher_null Avatar answered Jun 12 '26 07:06

cypher_null



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!