[tests] Tests first, fix round 1: proof only on the forward-auth UI host, revocations that cannot be written, root key files by content, intermediates that cannot issue, stale SNI after a failed or resumed handshake, edge re-reads the allow list, changes apply while Caddy serves, Hostname focus (red)
This commit is contained in:
@@ -102,7 +102,7 @@ describe("ROADMAP §4 flows, clicks counted", () => {
|
||||
expect(clicks).toBe(3);
|
||||
});
|
||||
|
||||
it("Share link on a host with links off: 4 clicks (open question Q1 not decided)", async () => {
|
||||
it("Share link on a host with links off: 4 clicks (Mark, Q1: the accepted 4th)", async () => {
|
||||
start();
|
||||
await click(await screen.findByRole("button", { name: "More for photos.home.test" }));
|
||||
await click(await screen.findByRole("menuitem", { name: /Share link/ }));
|
||||
@@ -169,6 +169,15 @@ describe("ROADMAP §4 flows, clicks counted", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("focus", () => {
|
||||
it("+ Host puts the cursor in Hostname, so typing right after the click lands there", async () => {
|
||||
start();
|
||||
await click(await screen.findByRole("button", { name: "Add a host" }));
|
||||
await user.keyboard("recipes.home.test");
|
||||
expect((await screen.findByLabelText("Hostname") as HTMLInputElement).value).toBe("recipes.home.test");
|
||||
});
|
||||
});
|
||||
|
||||
describe("sign-in and contact", () => {
|
||||
it("a 401 without Ianitor's envelope shows the signed-out dialog", async () => {
|
||||
start();
|
||||
|
||||
Reference in New Issue
Block a user