N
N
Nastya19202021-03-17 16:20:01
JavaScript
Nastya1920, 2021-03-17 16:20:01

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 question

Ask a Question

731 491 924 answers to any question