Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Aug 20, 2024
1 parent ff7e92e commit 3952cc3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e/pages/firmware-wizard/firmware-selection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ test("Copy URL button copies a link to the selected firmware", async ({
test.skip(browserName !== "chromium");
await (await queries.findByLabelText("Firmware version")).press("Enter");
await page
.locator(".ant-select-item-option[title='EdgeTX \"Santa\" v2.6.0']")
.locator(
".ant-select-item-option[title='EdgeTX \"Flying Dutchman\" v2.8.5']"
)
.click();

const radioSelector = await queries.findByLabelText("Radio model");
Expand All @@ -181,9 +183,9 @@ test("Copy URL button copies a link to the selected firmware", async ({

if (isElectron) {
expect(copiedUrl).toBe(
"buddy.edgetx.org/#/flash?version=v2.6.0&target=x10"
"buddy.edgetx.org/#/flash?version=v2.8.5&target=x10"
);
} else {
expect(copiedUrl).toBe("localhost:8081/#/flash?version=v2.6.0&target=x10");
expect(copiedUrl).toBe("localhost:8081/#/flash?version=v2.8.5&target=x10");
}
});

0 comments on commit 3952cc3

Please sign in to comment.