mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
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:
@@ -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',
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user