tests navigate: Add tests for rel attributes with nofollow
Add two extra tests for checking navigation on pages with rel "next" and "prev" links which are also rel "nofollow" to test for the correct functionality of navigating pages with rel "next" and "prev" links with multiple rel attributes.
This commit is contained in:
parent
5b7090e402
commit
1fcba72958
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Navigate</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Index page</p>
|
||||
<a href="/data/navigate/prev.html" rel="nofollow prev">bla</a>
|
||||
<a href="/data/navigate/next.html" rel="nofollow next">blub</a>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -53,6 +53,16 @@ Feature: Using :navigate
|
|||
And I run :navigate next
|
||||
Then data/navigate/next.html should be loaded
|
||||
|
||||
Scenario: Navigating to previous page with rel nofollow
|
||||
When I open data/navigate/rel_nofollow.html
|
||||
And I run :navigate prev
|
||||
Then data/navigate/prev.html should be loaded
|
||||
|
||||
Scenario: Navigating to next page with rel nofollow
|
||||
When I open data/navigate/rel_nofollow.html
|
||||
And I run :navigate next
|
||||
Then data/navigate/next.html should be loaded
|
||||
|
||||
# increment/decrement
|
||||
|
||||
Scenario: Incrementing number in URL
|
||||
|
|
|
|||
Loading…
Reference in New Issue