Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaryan committed Nov 12, 2024
1 parent 4c405f4 commit 64e2651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/__tests__/browser-tests/browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ describe.each([Browser.CHROME, Browser.EDGE, Browser.FIREFOX])("%s driver test",
beforeAll(() => {
const cap = new Capabilities().setBrowserName(browser)
builder.withCapabilities(cap);
console.log("got here");
})

beforeEach(async () => {
console.log("got here");
driver = await builder.build();
})

Expand All @@ -41,10 +39,12 @@ describe.each([Browser.CHROME, Browser.EDGE, Browser.FIREFOX])("%s driver test",

describe("webdriver installed correctly", () => {
it("does google search", async () => {
console.log("got here");
console.log("getting url");
await driver.get('http://www.google.com');
console.log("got url");
await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN);
await driver.wait(until.titleIs('webdriver - Google Search'), 1000);
console.log("did search");
}, 10000);

it.skip("does another google search", async () => {
Expand Down

0 comments on commit 64e2651

Please sign in to comment.