Skip to content

Commit fd86037

Browse files
author
DavertMik
committed
fixed tests
1 parent bcb5202 commit fd86037

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

test/helper/webapi.js

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,15 @@ export function tests() {
120120
await I.seeCurrentPathEquals('/info')
121121
await I.seeCurrentPathEquals('/info/')
122122

123-
await I.amOnPage('/users/')
124-
await I.seeCurrentPathEquals('/users')
125-
await I.seeCurrentPathEquals('/users/')
123+
await I.amOnPage('/form/field/')
124+
await I.seeCurrentPathEquals('/form/field')
125+
await I.seeCurrentPathEquals('/form/field/')
126126
})
127127

128128
it('should normalize multiple consecutive slashes in path', async () => {
129-
await I.amOnPage('/users//1')
130-
await I.seeCurrentPathEquals('/users/1')
131-
await I.seeCurrentPathEquals('/users//1')
132-
133-
await I.amOnPage('/info///test')
134-
await I.seeCurrentPathEquals('/info/test')
129+
await I.amOnPage('/form//field')
130+
await I.seeCurrentPathEquals('/form/field')
131+
await I.seeCurrentPathEquals('/form//field')
135132
})
136133

137134
it('should handle root path correctly', async () => {
@@ -142,13 +139,13 @@ export function tests() {
142139
})
143140

144141
it('should normalize both expected and actual paths', async () => {
145-
await I.amOnPage('/users/')
146-
await I.seeCurrentPathEquals('/users/')
147-
await I.seeCurrentPathEquals('/users')
142+
await I.amOnPage('/form/field/')
143+
await I.seeCurrentPathEquals('/form/field/')
144+
await I.seeCurrentPathEquals('/form/field')
148145

149-
await I.amOnPage('/users//1/')
150-
await I.seeCurrentPathEquals('/users/1')
151-
await I.seeCurrentPathEquals('/users/1/')
146+
await I.amOnPage('/form//field//')
147+
await I.seeCurrentPathEquals('/form/field')
148+
await I.seeCurrentPathEquals('/form/field/')
152149
})
153150
})
154151

0 commit comments

Comments
 (0)