| index db3ca421..37fc976c 100644 |
| --- a/internal/equipotest/github_browser_test.go |
| +++ b/internal/equipotest/github_browser_test.go |
| @@ -23,12 +23,6 @@ import ( |
| "github.com/chromedp/chromedp" |
| ) |
| |
| -// manifestButtonClickable waits until the manifest page's button is the |
| -// element under its own centre. chromedp clicks at coordinates, and a |
| -// click before the page is first painted lands on nothing: the form is |
| -// never sent (seen 2026-11-29 on docs-t1, every run on mac-slice-f). |
| -const manifestButtonClickable = `(()=>{const b=document.querySelector('form[action^="https://github.com/"] button');if(!b)return false;const r=b.getBoundingClientRect();return document.elementFromPoint(r.x+r.width/2,r.y+r.height/2)===b})()` |
| - |
| func TestBrowserGitHubManifestCSP(t *testing.T) { |
| const origin = "https://equipo.example.test" |
| d, logger := foundationDB(t) |
| @@ -97,7 +91,7 @@ func TestBrowserGitHubManifestCSP(t *testing.T) { |
| run(chromedp.Func(func(ctx context.Context, target *chromedp.Target) error { |
| _, e := chromedp.Evaluate[any](fmt.Sprintf(`document.querySelector('#github-account').value=%q`, g.Login))(ctx, target) |
| return e |
| - }), browsertest.Click("#github-start button"), browsertest.Wait(manifestButtonClickable), browsertest.Click(`form[action^="https://github.com/"] button`), browsertest.Wait(`location.origin==="https://equipo.example.test" && location.pathname==="/conversation/settings/github" && location.search==="" && !!document.querySelector('form[action="/github/connect/confirm"]')`)) |
| + }), browsertest.Click("#github-start button"), browsertest.Wait(`(()=>{const b=document.querySelector('form[action^="https://github.com/"] button');if(!b)return false;const r=b.getBoundingClientRect();return document.elementFromPoint(r.x+r.width/2,r.y+r.height/2)===b})()`), browsertest.Click(`form[action^="https://github.com/"] button`), browsertest.Wait(`location.origin==="https://equipo.example.test" && location.pathname==="/conversation/settings/github" && location.search==="" && !!document.querySelector('form[action="/github/connect/confirm"]')`)) |
| if posts.Load() != 1 { |
| t.Fatal("manifest POST did not reach GitHub") |
| } |