Skip to content

Commit b6ff2d5

Browse files
authored
Update single.test.js
1 parent c7c2072 commit b6ff2d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/single.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ describe('webdriver', () => {
7171

7272
const output = await getElementByXpath(
7373
driver,
74-
'//html/body/div/div/div/ul/li[6]/span'
74+
'//html/body/div/div/div/ul/li[5]/span'
7575
);
7676
const outputVal = await output.getText();
77-
expect(outputVal).toEqual("Yey, Let's add it to list");
77+
expect(outputVal).toEqual("Fifth Item");
7878
await updateJob(sessionId, 'passed');
7979
} catch (err) {
80+
await updateJob(sessionId, 'failed');
8081
await webdriverErrorHandler(err, driver);
8182
throw err;
8283
}

0 commit comments

Comments
 (0)