Commit 1a8bd7a061
Verified · cmc
Layout: unified · split
e2e/accountweb_test.go +4 −5
| @@ -106,11 +106,10 @@ func TestAccountSettingsWeb(t *testing.T) { | ||
| 106 | 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 | |
| 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") | |
| 114 | 113 | } |
| 115 | 114 | |
| 116 | 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 | 144 | body, _ := io.ReadAll(resp.Body) |
| 145 | 145 | resp.Body.Close() |
| 146 | if strings.Contains(string(body), "Live:") { | |
| 146 | if strings.Contains(string(body), "This page updates itself") { | |
| 147 | 147 | t.Fatalf("?follow=0 rendered the live page:\n%s", body) |
| 148 | 148 | } |
| 149 | 149 | |