Commit 1a8bd7a061

1a8bd7a0619129c911c5d4074ef85584eca8dd3e

parent: 85b72babf8

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-28 23:00 UTC

e2e: match current build-follow and account-token page text

TestBuildLogFollow checked for the removed "Live:" marker; the live
build page now says "This page updates itself until the build ends".
TestAccountSettingsWeb asserted the settings page had no token form by
checking for value="token-mint", which never matched even before the
token form shipped (the field is token-create); assert the real form
is present instead.

Ref #271

Layout: unified · split

e2e/accountweb_test.go +4 −5
@@ -106,11 +106,10 @@ func TestAccountSettingsWeb(t *testing.T) {
106106 t.Error("invalid key accepted without an error")
107107 }
108108
109 // The settings page has no token form. Nothing refuses one now
110 // (#234); there is simply no page for it yet, and a minted token is
111 // shown once, which wants a page designed for it.
112 if strings.Contains(body, `value="token-mint"`) {
113 t.Error("token minting exposed on the web")
109 // The settings page has a token form (#264): API tokens: create,
110 // list, revoke.
111 if !strings.Contains(body, `value="token-create"`) {
112 t.Error("token minting form missing from the web")
114113 }
115114
116115 // The account bundle downloads as an attachment, carrying what
e2e/buildfollow_test.go +1 −1
@@ -143,7 +143,7 @@ func TestBuildLogFollow(t *testing.T) {
143143 }
144144 body, _ := io.ReadAll(resp.Body)
145145 resp.Body.Close()
146 if strings.Contains(string(body), "Live:") {
146 if strings.Contains(string(body), "This page updates itself") {
147147 t.Fatalf("?follow=0 rendered the live page:\n%s", body)
148148 }
149149