Skip to content

Commit 66401b2

Browse files
chore: use later release for e2e tests (#122)
1 parent 9b9ef84 commit 66401b2

File tree

2 files changed

+14
-22
lines changed

2 files changed

+14
-22
lines changed

e2e/pages/firmware-wizard/firmware-selection.spec.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test("Latest firmware is pre selected by default", async ({
2626
test("Radio model can be searched", async ({ queries, page }) => {
2727
await (await queries.findByLabelText("Firmware version")).press("Enter");
2828
await (
29-
await queries.findByText('EdgeTX "Flying Dutchman" v2.8.5', undefined, {
29+
await queries.findByText('EdgeTX "Centurion" v2.10.6', undefined, {
3030
timeout: 20000,
3131
})
3232
).click();
@@ -63,7 +63,7 @@ test("Flash via USB is disabled if model is not selected", async ({
6363
await expectFlashButtonIsDisabled();
6464
await (await queries.findByLabelText("Firmware version")).press("Enter");
6565
await (
66-
await queries.findByText('EdgeTX "Flying Dutchman" v2.8.5', undefined, {
66+
await queries.findByText('EdgeTX "Centurion" v2.10.6', undefined, {
6767
timeout: 20000,
6868
})
6969
).click();
@@ -96,8 +96,8 @@ const streamToString = (stream: Readable): Promise<string> => {
9696
testCase: "Can download the selected firmware target",
9797
radioName: "FrSky X-Lite S",
9898
expected: {
99-
fileName: "xlites-v2.8.5.bin",
100-
fileHash: "ac0467c5a9ec9e8cee22b7a2a97e523e",
99+
fileName: "xlites-v2.10.6.bin",
100+
fileHash: "517d8108fdc638091c6e5f0804e82a6f",
101101
},
102102
},
103103
{
@@ -106,15 +106,15 @@ const streamToString = (stream: Readable): Promise<string> => {
106106
expected: {
107107
// In this case `x7` could match `x7-access` due to the way the code names
108108
// were previously matched
109-
fileName: "x7-v2.8.5.bin",
110-
fileHash: "1e4f20364c0a2b9caeb3b8bdae61858e",
109+
fileName: "x7-v2.10.6.bin",
110+
fileHash: "f8322236e059ecdfa6487aea8b4668b0",
111111
},
112112
},
113113
].forEach(({ testCase, radioName, expected }) => {
114114
test(testCase, async ({ queries, page, isElectron, tempDownloadDir }) => {
115115
await (await queries.findByLabelText("Firmware version")).press("Enter");
116116
await (
117-
await queries.findByText('EdgeTX "Flying Dutchman" v2.8.5', undefined, {
117+
await queries.findByText('EdgeTX "Centurion" v2.10.6', undefined, {
118118
timeout: 20000,
119119
})
120120
).click();
@@ -160,9 +160,7 @@ test("Copy URL button copies a link to the selected firmware", async ({
160160
test.skip(browserName !== "chromium");
161161
await (await queries.findByLabelText("Firmware version")).press("Enter");
162162
await page
163-
.locator(
164-
".ant-select-item-option[title='EdgeTX \"Flying Dutchman\" v2.8.5']"
165-
)
163+
.locator(".ant-select-item-option[title='EdgeTX \"Centurion\" v2.10.6']")
166164
.click();
167165

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

184182
if (isElectron) {
185183
expect(copiedUrl).toBe(
186-
"buddy.edgetx.org/#/flash?version=v2.8.5&target=x10"
184+
"buddy.edgetx.org/#/flash?version=v2.10.6&target=x10"
187185
);
188186
} else {
189-
expect(copiedUrl).toBe("localhost:8081/#/flash?version=v2.8.5&target=x10");
187+
expect(copiedUrl).toBe("localhost:8081/#/flash?version=v2.10.6&target=x10");
190188
}
191189
});

e2e/pages/firmware-wizard/flash-firmware.spec.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ test.beforeEach(async ({ queries }) => {
77
});
88

99
test.describe.parallel("Flashing", () => {
10-
test("Flash v2.8.5 firmware", async ({ queries, browserName, page }) => {
10+
test("Flash v2.10.6 firmware", async ({ queries, browserName, page }) => {
1111
test.skip(browserName !== "chromium");
1212
// First page
1313
await (await queries.findByLabelText("Firmware version")).press("Enter");
1414
await page
15-
.locator(
16-
".ant-select-item-option[title='EdgeTX \"Flying Dutchman\" v2.8.5']"
17-
)
15+
.locator(".ant-select-item-option[title='EdgeTX \"Centurion\" v2.10.6']")
1816
.click();
1917

2018
const radioSelector = await queries.findByLabelText("Radio model");
@@ -78,9 +76,7 @@ test.describe.parallel("Flashing", () => {
7876
test.skip(browserName !== "chromium");
7977
await (await queries.findByLabelText("Firmware version")).press("Enter");
8078
await page
81-
.locator(
82-
".ant-select-item-option[title='EdgeTX \"Flying Dutchman\" v2.8.5']"
83-
)
79+
.locator(".ant-select-item-option[title='EdgeTX \"Centurion\" v2.10.6']")
8480
.click();
8581

8682
const radioSelector = await queries.findByLabelText("Radio model");
@@ -126,9 +122,7 @@ test.describe.parallel("Flashing", () => {
126122
test.skip(browserName !== "chromium");
127123
await (await queries.findByLabelText("Firmware version")).press("Enter");
128124
await page
129-
.locator(
130-
".ant-select-item-option[title='EdgeTX \"Flying Dutchman\" v2.8.5']"
131-
)
125+
.locator(".ant-select-item-option[title='EdgeTX \"Centurion\" v2.10.6']")
132126
.click();
133127

134128
const radioSelector = await queries.findByLabelText("Radio model");

0 commit comments

Comments
 (0)