Skip to content

Commit 1a6fd30

Browse files
committed
add check that clicking on a row twice works
1 parent 94ee613 commit 1a6fd30

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

webdriver-ts/src/benchmarks.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ const benchRemove = new class extends Benchmark {
182182
}
183183
await testTextContains(driver, '//tbody/tr[5]/td[1]', '10');
184184
await testTextContains(driver, '//tbody/tr[4]/td[1]', '4');
185+
186+
// Click on a row the second time
187+
await testTextContains(driver, `//tbody/tr[6]/td[1]`, '11');
188+
await clickElementByXPath(driver, `//tbody/tr[6]/td[3]/a/span[1]`);
189+
await testTextContains(driver, `//tbody/tr[6]/td[1]`, '12');
190+
185191
}
186192
async run(driver: WebDriver) {
187193
await clickElementByXPath(driver, "//tbody/tr[4]/td[3]/a/span[1]");
@@ -392,7 +398,7 @@ class BenchStartup extends Benchmark {
392398
type: BenchmarkType.STARTUP,
393399
})
394400
}
395-
async init(driver: WebDriver) { // not used with lighthouse
401+
async init(driver: WebDriver) { // not used with lighthouse
396402
}
397403
async run(driver: WebDriver, framework: FrameworkData) {
398404
// not used with lighthouse

0 commit comments

Comments
 (0)