Refine task editor layout and personal reminder defaults
Build and publish container images / images (push) Successful in 11m12s
Release container images / release (push) Successful in 17s

This commit is contained in:
Anya Tokugawa committed 2026-11-04 10:12:25 +09:00
1 parent 8fd0b6ec8b
commit a6bf3dfe41
14 files changed
+263 -26

No files matched your search

+18 -3
View File
@@ -15,10 +15,19 @@ func TestProductivityChromium(t *testing.T) {
if os.Getenv("PAGESWIKI_BROWSER_TEST") != "1" {
t.Skip("opt-in Chromium")
}
for _, view := range []string{"contacts", "settings", "report", "tasks", "home"} {
for _, size := range []string{"desktop", "mobile"} {
for _, view := range []string{"contacts", "settings", "report", "tasks", "home", "editor"} {
sizes := []string{"desktop", "mobile"}
if view == "editor" {
sizes = append(sizes, "laptop", "mobile-small", "english")
}
for _, size := range sizes {
t.Run(view+"-"+size, func(t *testing.T) {
s, token, domain, actor := taskFixture(t)
if size == "english" {
if err := s.store.SetConfigInDomain(domain, "locale", "en"); err != nil {
t.Fatal(err)
}
}
s.mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { s.renderSearchHome(w, r, "search") })
item := newTaskRecord("task", "Browser work task")
item.Status = "done"
@@ -38,7 +47,7 @@ func TestProductivityChromium(t *testing.T) {
if e != nil {
t.Fatal(e)
}
path := map[string]string{"contacts": "/v/plan/contacts", "settings": "/-/sys/config?panel=organizer", "report": "/v/plan/dashboard", "tasks": "/v/plan/tasks", "home": "/"}[view]
path := map[string]string{"contacts": "/v/plan/contacts", "settings": "/-/sys/config?panel=organizer", "report": "/v/plan/dashboard", "tasks": "/v/plan/tasks", "home": "/", "editor": "/v/plan/task/-/new"}[view]
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
r.Header.Set("Authorization", "Bearer "+token)
if r.Method == "GET" && r.URL.RequestURI() == path {
@@ -64,6 +73,12 @@ func TestProductivityChromium(t *testing.T) {
if size == "mobile" {
width, height = "390", "844"
}
if size == "laptop" {
width, height = "1024", "768"
}
if size == "mobile-small" {
width, height = "320", "568"
}
ctx, cancel := context.WithTimeout(context.Background(), 45*time.Second)
defer cancel()
shot := ""