fix(curriculum): check for correct method in test (#42214)
I don't know how the code runs from here, but I'm assuming it should be the correct method now
This commit is contained in:
@ -94,7 +94,7 @@ You should assert that the element 'span#dates' exist and its count is 1.
|
|||||||
(getUserInput) =>
|
(getUserInput) =>
|
||||||
$.get(getUserInput('url') + '/_api/get-tests?type=functional&n=5').then(
|
$.get(getUserInput('url') + '/_api/get-tests?type=functional&n=5').then(
|
||||||
(data) => {
|
(data) => {
|
||||||
assert.equal(data.assertions[3].method, 'browser.element');
|
assert.equal(data.assertions[3].method, 'browser.elements');
|
||||||
assert.match(data.assertions[3].args[0], /('|")span#dates\1/);
|
assert.match(data.assertions[3].args[0], /('|")span#dates\1/);
|
||||||
assert.equal(data.assertions[3].args[1], 1);
|
assert.equal(data.assertions[3].args[1], 1);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user