Skip to content

Commit a10c444

Browse files
committed
Added condition
1 parent 888caed commit a10c444

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/helper/webapi.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,18 @@ module.exports.tests = function () {
756756

757757
await I.amOnPage('/info')
758758
const val = await I.grabHTMLFrom('#grab-multiple')
759-
assert.equal('<a id="first-link">First</a>\n<a id="second-link">Second</a>\n<a id="third-link">Third</a>', val)
759+
if (isHelper('WebDriver')) {
760+
assert.equal('<a id="first-link">First</a>\n<a id="second-link">Second</a>\n<a id="third-link">Third</a>', val)
761+
} else {
762+
assert.equal(
763+
`
764+
<a id="first-link">First</a>
765+
<a id="second-link">Second</a>
766+
<a id="third-link">Third</a>
767+
`,
768+
val,
769+
)
770+
}
760771
})
761772

762773
it('should grab value from field', async () => {

0 commit comments

Comments
 (0)