Skip to content

Commit a4349e0

Browse files
committed
[red] Require tablet diagnostics in support intake
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent 9bbf690 commit a4349e0

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

tests/publication/test_public_claims.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def test_bug_template_collects_the_exact_installer_diagnostics(self) -> None:
6464
"browser",
6565
"operating_system",
6666
"installer_stage",
67+
"tablet",
68+
"tablet_os",
6769
):
6870
self.assertIn(f" id: {field_id}\n", self.bug_template)
6971

@@ -74,6 +76,8 @@ def test_bug_template_collects_the_exact_installer_diagnostics(self) -> None:
7476
"Browser name and exact version",
7577
"Desktop operating system and exact version",
7678
"Failed installer stage",
79+
"Exact tablet or device model",
80+
"Tablet operating system and exact version",
7781
):
7882
self.assertIn(wording, self.bug_template)
7983

tools/web/src/test/site-contract.test.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ describe("public-site contract", () => {
118118
expect(socialSvg).toContain("Everyday coding over BLE.");
119119
expect(socialSvg).toContain("FIRMWARE HIL PENDING");
120120
expect(socialSvg).not.toContain("WEB FLASHER");
121-
expect(createHash("sha256").update(socialPng).digest("hex")).not.toBe(
122-
"c6ff10039c00780909b79b0e557c46b843d9994bc0d545a9a098488c3157ff1d",
121+
expect(createHash("sha256").update(socialPng).digest("hex")).toBe(
122+
"7e7e037d9bd2e58e2e66f516bfd6f1b753bda472c402b8130f8a8a6dd8f19ba9",
123123
);
124124
expect([qrCardPng.readUInt32BE(16), qrCardPng.readUInt32BE(20)]).toEqual([
125125
1080, 1080,
@@ -163,7 +163,10 @@ describe("public-site contract", () => {
163163
/designed for boards that run MicroPython and support Bluetooth Low Energy/i,
164164
),
165165
).toBeInTheDocument();
166-
expect(screen.getByText(/v0\.4\.2 firmware candidate/i)).toHaveTextContent(
166+
expect(screen.getByText(/public v0\.4\.2 firmware/i)).toHaveTextContent(
167+
/pending HIL for the exact esp32-4mb and esp32-s3-n16r8 profiles/i,
168+
);
169+
expect(screen.getByText(/public v0\.4\.2 firmware/i)).toHaveTextContent(
167170
/public browser installer stays unavailable until both exact profiles pass HIL/i,
168171
);
169172
expect(
@@ -509,9 +512,7 @@ describe("public-site contract", () => {
509512
expect(
510513
screen.getByRole("heading", { level: 1, name: "Support" }),
511514
).toBeInTheDocument();
512-
expect(
513-
screen.getByText(/exact installer profile ID/i),
514-
).toBeInTheDocument();
515+
expect(screen.getByText(/exact installer profile ID/i)).toBeInTheDocument();
515516
expect(
516517
screen.getByText(/exact board model and module marking/i),
517518
).toBeInTheDocument();
@@ -524,6 +525,12 @@ describe("public-site contract", () => {
524525
expect(
525526
screen.getByText(/failed installer stage and redacted error text/i),
526527
).toBeInTheDocument();
528+
expect(
529+
screen.getByText(/exact tablet or device model/i),
530+
).toBeInTheDocument();
531+
expect(
532+
screen.getByText(/iPadOS or Android name\/version/i),
533+
).toBeInTheDocument();
527534
expect(
528535
screen.getByText(
529536
/public installer is unavailable while v0\.4\.2 HIL runs for esp32-4mb and esp32-s3-n16r8/i,

0 commit comments

Comments
 (0)