@@ -3,7 +3,7 @@ module.exports = {
3
3
browser
4
4
. url ( 'http://localhost:8080/redirect/' )
5
5
. waitForElementVisible ( '#app' , 1000 )
6
- . assert . count ( 'li a' , 10 )
6
+ . assert . count ( 'li a' , 12 )
7
7
// assert correct href with base
8
8
. assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/redirect/relative-redirect' )
9
9
. assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/redirect/relative-redirect?foo=bar' )
@@ -14,7 +14,9 @@ module.exports = {
14
14
. assert . attributeContains ( 'li:nth-child(7) a' , 'href' , '/redirect/dynamic-redirect#baz' )
15
15
. assert . attributeContains ( 'li:nth-child(8) a' , 'href' , '/redirect/named-redirect' )
16
16
. assert . attributeContains ( 'li:nth-child(9) a' , 'href' , '/redirect/redirect-with-params/123' )
17
- . assert . attributeContains ( 'li:nth-child(10) a' , 'href' , '/not-found' )
17
+ . assert . attributeContains ( 'li:nth-child(10) a' , 'href' , '/redirect/foobar' )
18
+ . assert . attributeContains ( 'li:nth-child(11) a' , 'href' , '/redirect/FooBar' )
19
+ . assert . attributeContains ( 'li:nth-child(12) a' , 'href' , '/not-found' )
18
20
19
21
. assert . containsText ( '.view' , 'default' )
20
22
@@ -58,6 +60,14 @@ module.exports = {
58
60
. assert . urlEquals ( 'http://localhost:8080/redirect/' )
59
61
. assert . containsText ( '.view' , 'default' )
60
62
63
+ . click ( 'li:nth-child(11) a' )
64
+ . assert . urlEquals ( 'http://localhost:8080/redirect/' )
65
+ . assert . containsText ( '.view' , 'default' )
66
+
67
+ . click ( 'li:nth-child(12) a' )
68
+ . assert . urlEquals ( 'http://localhost:8080/redirect/' )
69
+ . assert . containsText ( '.view' , 'default' )
70
+
61
71
// check initial visit
62
72
. url ( 'http://localhost:8080/redirect/relative-redirect' )
63
73
. waitForElementVisible ( '#app' , 1000 )
0 commit comments