Fixes from the first round of TEST.md
SEO: a domain property (sc-domain:) covers every subdomain, so the shop, Gitea and forum were counted as the website. What ranks, the morning check, the Monday report, keywords, change candidates and the audit's traffic now read only the website's own host (with or without www). The report keeps pages worth a proposal apart from "Waiting for your yes", explains only moves past the thresholds, and says "places up/down". Also: - Feed summaries drop the posts' scripts and styles. - Spend you log can't be negative. - Test and check buttons can't be clicked twice while they run. - Previews show the site's web fonts and icon sprites. - Backups are read without leaving -wal/-shm files; deleting one removes them, and leftovers are swept at start. - The Overview's setup flags a CRM that Hermes can't reach. - Import now says what came in; adding a prospect that exists says so; prospects can be deleted. - Signal tags and brief addresses keep accented letters (Ü → u). - Page errors start with a capital; clearer messages for bad uploads, CRM retry and cancel, keywords, and the finished audit. - The module you're in stays unfolded in the sidebar. - A picked keyword can be unpicked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@ func TestContentPages(t *testing.T) {
|
||||
t.Errorf("write with nothing selected: %d", rec.Code)
|
||||
}
|
||||
rec = postForm(h, "/content/"+id+"/items", url.Values{"action": {"write"}, "item": {"a"}})
|
||||
if !strings.Contains(rec.Body.String(), "choose at least one channel") {
|
||||
if !strings.Contains(rec.Body.String(), "Choose at least one channel") {
|
||||
t.Errorf("write without channels:\n%s", rec.Body.String())
|
||||
}
|
||||
// No AI key: the provider's error is shown.
|
||||
@@ -142,10 +142,10 @@ func TestScheduleFromInbox(t *testing.T) {
|
||||
|
||||
// A past time, or none, is refused.
|
||||
past := time.Now().Add(-time.Hour).Format(dateTimeLocal)
|
||||
if rec := postForm(h, "/drafts/"+id+"/schedule", url.Values{"when": {past}}); !strings.Contains(rec.Body.String(), "that time has passed") {
|
||||
if rec := postForm(h, "/drafts/"+id+"/schedule", url.Values{"when": {past}}); !strings.Contains(rec.Body.String(), "That time has passed") {
|
||||
t.Errorf("past time: %s", rec.Body.String())
|
||||
}
|
||||
if rec := postForm(h, "/drafts/"+id+"/schedule", url.Values{"when": {""}}); !strings.Contains(rec.Body.String(), "choose a date") {
|
||||
if rec := postForm(h, "/drafts/"+id+"/schedule", url.Values{"when": {""}}); !strings.Contains(rec.Body.String(), "Choose a date") {
|
||||
t.Errorf("no time: %s", rec.Body.String())
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ func TestRedditInInbox(t *testing.T) {
|
||||
if d, _ := content.GetDraft(s.DB, mustID(id)); d.Title != "Jitsi 3 is out" || d.Content != "Edited" {
|
||||
t.Errorf("saved: %+v", d)
|
||||
}
|
||||
if rec := postForm(h, "/drafts/"+id+"/save", url.Values{"title": {""}}); !strings.Contains(rec.Body.String(), "the title is empty") {
|
||||
if rec := postForm(h, "/drafts/"+id+"/save", url.Values{"title": {""}}); !strings.Contains(rec.Body.String(), "The title is empty") {
|
||||
t.Errorf("empty title: %s", rec.Body.String())
|
||||
}
|
||||
if rec := postForm(h, "/drafts/"+id+"/publish", nil); !strings.Contains(rec.Body.String(), "Reddit isn't connected") {
|
||||
@@ -271,7 +271,7 @@ func TestWriteRedditNeedsSubreddit(t *testing.T) {
|
||||
}
|
||||
_ = s.Secrets.Set(map[string]string{secrets.AnthropicAPIKey: "k"})
|
||||
rec := postForm(h, "/content/"+id+"/items", url.Values{"action": {"write"}, "item": {"a"}, "channel": {"reddit"}, "subreddit": {" "}})
|
||||
if !strings.Contains(rec.Body.String(), "choose a subreddit") {
|
||||
if !strings.Contains(rec.Body.String(), "Choose a subreddit") {
|
||||
t.Errorf("write without subreddit: %s", rec.Body.String())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user