diff --git a/src/popup/index.html b/src/popup/index.html
index 1dd52bc..91c0630 100644
--- a/src/popup/index.html
+++ b/src/popup/index.html
@@ -7,9 +7,10 @@
-
+ font and its size on body, and a Tailwind class beats it only when
+ marked important: hence font-mono! and text-sm! rather than
+ font-mono and text-sm. -->
+
-
- Enter your 12 or 24 word recovery phrase below, or click
- the button to roll the die for a new one.
-
-
+
+
+
+ Enter your 12 or 24 word recovery phrase below, or
+ click the button to roll the die for a new one.
+
{
);
});
+// The same check as the Chrome suite's (#456), so both browsers are held to
+// the same size.
+step("the popup's text is drawn at the 14px text-sm declares", async (env) => {
+ const size = await env.driver.execute(
+ "return getComputedStyle(document.body).fontSize;",
+ );
+ assert(
+ size === "14px",
+ "the popup's text is drawn at " + size + ", not at the 14px of text-sm",
+ );
+});
+
// The recovery screen (#361): the Chrome suite's four cases, run before any
// wallet exists for the same reason. With no wallet nothing saves on a timer,
// so no save can write a good record over the unreadable one. The last of them
diff --git a/tests/e2e/run.js b/tests/e2e/run.js
index 589fe8b..0e8799f 100644
--- a/tests/e2e/run.js
+++ b/tests/e2e/run.js
@@ -113,6 +113,18 @@ test("the popup is drawn in the monospace font it declares (#418)", async (env)
);
});
+// The same stylesheet sets the size on body to 75%, which would draw the
+// popup at 12px.
+test("the popup's text is drawn at the 14px text-sm declares (#456)", async (env) => {
+ const size = await env.page.evaluate(
+ () => getComputedStyle(document.body).fontSize,
+ );
+ assert(
+ size === "14px",
+ "the popup's text is drawn at " + size + ", not at the 14px of text-sm",
+ );
+});
+
// The empirical half of #182. The manifest change is only a claim about
// what the CSP permits; this is the observation. Two things have to hold
// together, and the run covers both: the popup realm compiles WASM (here),