Skip to content

Commit

Permalink
test: remove redundant condition for osx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayushman Chhabra committed Jun 17, 2023
1 parent 20f7d4a commit e52eeeb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/e2e/mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ export function mode() {
};

it("should run", async () => {
if (nwOptions.platform === "osx" && nwOptions.arch === "arm64") {
nwOptions.downloadUrl =
"https://github.com/corwin-of-amber/nw.js/releases/download";
nwOptions.manifestUrl =
"https://raw.githubusercontent.com/nwutils/nw-builder/dev-494/src/util/osx.arm.versions.json";
}

await nwbuild({ ...nwOptions });

Expand All @@ -55,7 +49,7 @@ export function mode() {
`chromedriver${nwOptions.platform === "win" ? ".exe" : ""}`
);

const service = await new ServiceBuilder(chromedriverPath).build();
const service = new ServiceBuilder(chromedriverPath).build();

driver = Driver.createSession(options, service);
const text = await driver.findElement(By.id("test")).getText();
Expand Down

0 comments on commit e52eeeb

Please sign in to comment.