Skip to content

Commit d216c18

Browse files
committed
fix selenium css selectors
1 parent d6ebe38 commit d216c18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

v1/webdriver/selenium/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ after(async function() {
6666

6767
describe("Hello Tauri", () => {
6868
it("should be cordial", async () => {
69-
const text = await driver.findElement(By.css("body > h1")).getText();
69+
const text = await driver.findElement(By.css("body h1")).getText();
7070
expect(text).to.match(/^Welcome/);
7171
});
7272

7373
it("should be excited", async () => {
74-
const text = await driver.findElement(By.css("body > h1")).getText();
74+
const text = await driver.findElement(By.css("body h1")).getText();
7575
expect(text).to.match(/!$/);
7676
});
7777

v2/webdriver/selenium/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ after(async function () {
6565

6666
describe("Hello Tauri", () => {
6767
it("should be cordial", async () => {
68-
const text = await driver.findElement(By.css("body > h1")).getText();
68+
const text = await driver.findElement(By.css("body h1")).getText();
6969
expect(text).to.match(/^Welcome/);
7070
});
7171

7272
it("should be excited", async () => {
73-
const text = await driver.findElement(By.css("body > h1")).getText();
73+
const text = await driver.findElement(By.css("body h1")).getText();
7474
expect(text).to.match(/!$/);
7575
});
7676

0 commit comments

Comments
 (0)