test(privacy): update App.connectors fixture to match single-button banner

`App.connectors.test.tsx > does not show first-run privacy consent until
daemon config hydration finishes` hardcoded the previous "Share usage
data" affirmative button label. The single-button banner now renders
"I get it", so the assertion was looking for a button that no longer
exists.

CI signal: 26081467446 → Web workspace tests → `× does not show
first-run privacy consent until daemon config hydration finishes`. The
App workspace tests + Validate workspace failures cascaded from this
one — both are aggregator jobs.

Local: vitest run tests/components/App.connectors.test.tsx → 5/5 passed.
This commit is contained in:
lefarcen
2026-05-19 15:12:35 +08:00
parent 62514ea107
commit 626d1e437e
@@ -273,7 +273,7 @@ describe('App connectors settings flows', () => {
const banner = container.querySelector('.privacy-consent-banner');
expect(banner?.querySelector('.seg-control')).toBeNull();
expect(banner?.querySelector('.seg-btn.active')).toBeNull();
expect(screen.getByRole('button', { name: 'Share usage data' }).className).toContain(
expect(screen.getByRole('button', { name: 'I get it' }).className).toContain(
'privacy-consent-action',
);
});