Hey I’m having difficulty with the QA/Testing Challenges.
This is my code so far:
/** Now it's your turn. Please don't use the keyword #example in the title. **/
test('submit "surname" : "Colombo" - write your e2e test...', function(done) {
browser.fill("surname", "Colombo").pressButton("submit", function() {
browser.assert.success();
// assert that the text inside the element 'span#name' is 'Cristoforo'
browser.assert.text("span#name", "Cristoforo");
// assert that the text inside the element 'span#surname' is 'Colombo'
browser.assert.text("span#surname", "Colombo");
// assert that the element(s) 'span#dates' exist and their count is 1
browser.assert.element("span#dates", 1);
done(); // It's an async test, so we have to call 'done()''
});
});
// running tests
All tests should pass.
You should assert that the text inside the element ‘span#name’ is ‘Cristoforo’.
You should assert that the text inside the element ‘span#surname’ is ‘Colombo’.
You should assert that the element ‘span#dates’ exist and its count is 1.
// tests completed
Can anyone help me?