https://cypress.io logo
Word to word testing
# i-need-help
e
Wanted to know if we can do a word to word testing For example I have a csv file in which i have all the words stored and now i want to match each column with that on the website
s
You mean more like checking table information or really all the data on a website?
it can be done but do you really want to?
e
There's lots of packages that allow you to read csv files. This should be easy to implement. If the words are static on that csv it might be easier to just throw them in a fixture and then check against that.
e
The data in the website is not in table format its just placed in a component , no tr td tag
I have put all the data in fixtures csv the main issue i am.facing is taking out the data of a single column from that csv
s
could this be what you are looking for?
e
I did try this but in console it just displayed array 8 and array 1 not even the text
s
hmm
will need to try this with an example on my own
e
Yes please , will surely help me out
7 Views