We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7c2072 commit b6ff2d5Copy full SHA for b6ff2d5
test/single.test.js
@@ -71,12 +71,13 @@ describe('webdriver', () => {
71
72
const output = await getElementByXpath(
73
driver,
74
- '//html/body/div/div/div/ul/li[6]/span'
+ '//html/body/div/div/div/ul/li[5]/span'
75
);
76
const outputVal = await output.getText();
77
- expect(outputVal).toEqual("Yey, Let's add it to list");
+ expect(outputVal).toEqual("Fifth Item");
78
await updateJob(sessionId, 'passed');
79
} catch (err) {
80
+ await updateJob(sessionId, 'failed');
81
await webdriverErrorHandler(err, driver);
82
throw err;
83
}
0 commit comments