In website testing, every detail matters. One small broken link can damage trust and user experience. That’s why checking if important links, like social media icons, lead to the right place is a vital step. This kind of step ensures that users are never left wondering or lost.
One of the key steps in automated functional acceptance testing is verifying that each link leads where it should. In this article, we’ll focus on the step:
Then the "item" link should contain "url"
This definition step ensures that the the href attribute of a link element includes a URL or part of a URL, with the element located using its link text.
Example:
Then the "Login" link should contain "/log-in"
See the full article:https://webship.co/blog/webship-js-then-item-link-should-contain-url
You can see more step definitions: https://webship.co/docs
Top comments (0)