package e2e import ( "net/url" "strings" "testing" ) // TestProfileSettingsWeb covers profile set from the account settings page // (#161): description, website and links round-trip through the form, and // emptying a field actually clears it rather than being skipped. The about // text is not on this form — it is a file, covered below. func TestProfileSettingsWeb(t *testing.T) { t.Parallel() inst := startInstanceWith(t, "[web]\nmode = \"accounts\"\n") aliceKey := inst.newKey(t, "alice") inst.admin(t, "admin", "user", "create", "alice", "--key", aliceKey+".pub", "--email", "alice@example.test", "--verified") alice := inst.login(t, aliceKey) settingsURL := inst.base() + "/settings" // The form is on the page, every input labelled. _, body := browserGet(t, alice, settingsURL) for _, want := range []string{ `