Friday, 26 May 2017

How to check if text contained in a span, matches the text contained in a separate div

Using Aurelia, I am testing an application where a user can have a currency or multiple currencies. When a user logs in to their dashboard, their currency is displayed in a class at the top of the page. i.e EUR 1,000 GBP 5,000

Then there is another section in the same page where there is a tab based on the number of currencies they have. If the user has two currencies, the user will have two tabs and so on.

I want to test that if the user has 2 currencies displaying at the top of the page, there will be 2 tabs displaying for each of these currencies.

I've no real idea how to test this, any ideas where to begin or if there are certain classes/methods I can use?

Thanks



via Edmond

No comments:

Post a Comment