Answer the question
In order to leave comments, you need to log in
JasmineTests: how to test a link contained in the middle of a string?
Given: there is a div containing text. Inside the text there is <a href=Blabla> Read me
How can I pull and click this link using jasmine test? The goal is to check that the user actually followed this link
. Further, as I understand it, you can use something like
expect(windows.location.href).toBe("blabla")
Has anyone come across?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question