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) {
106 t.Error("invalid key accepted without an error") 106 t.Error("invalid key accepted without an error")
107 } 107 }
108 108
109 // The settings page has no token form. Nothing refuses one now 109 // The settings page has a token form (#264): API tokens: create,
110 // (#234); there is simply no page for it yet, and a minted token is 110 // list, revoke.
111 // shown once, which wants a page designed for it. 111 if !strings.Contains(body, `value="token-create"`) {
112 if strings.Contains(body, `value="token-mint"`) { 112 t.Error("token minting form missing from the web")
113 t.Error("token minting exposed on the web")
114 } 113 }
115 114
116 // The account bundle downloads as an attachment, carrying what 115 // The account bundle downloads as an attachment, carrying what
e2e/buildfollow_test.go +1 −1
@@ -143,7 +143,7 @@ func TestBuildLogFollow(t *testing.T) {
143 } 143 }
144 body, _ := io.ReadAll(resp.Body) 144 body, _ := io.ReadAll(resp.Body)
145 resp.Body.Close() 145 resp.Body.Close()
146 if strings.Contains(string(body), "Live:") { 146 if strings.Contains(string(body), "This page updates itself") {
147 t.Fatalf("?follow=0 rendered the live page:\n%s", body) 147 t.Fatalf("?follow=0 rendered the live page:\n%s", body)
148 } 148 }
149 149