Skip to content

Commit d82987a

Browse files
mikepitreclaude
andcommitted
Merge branch 'main' into mike/expo-biometrics-package
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2 parents d7094a9 + 2eb16ce commit d82987a

5 files changed

Lines changed: 16 additions & 6 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎.changeset/purple-pugs-change.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎packages/mosaic/src/blocks/destructive/destructive.feature.test.tsx‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,16 @@ function Host({
7070
);
7171
}
7272

73+
async function typeConfirmation(user: ReturnType<typeof userEvent.setup>) {
74+
await user.click(screen.getByRole('button', { name: 'Open' }));
75+
const dialog = await screen.findByRole('dialog');
76+
await waitFor(() => expect(dialog).toContainElement(document.activeElement as HTMLElement));
77+
await user.type(screen.getByRole('textbox'), 'Delete');
78+
}
79+
7380
async function openVerification() {
7481
const user = userEvent.setup();
75-
await user.click(screen.getByRole('button', { name: 'Open' }));
76-
await user.type(await screen.findByRole('textbox'), 'Delete');
82+
await typeConfirmation(user);
7783
await user.click(screen.getByRole('button', { name: 'Delete account' }));
7884
return { user };
7985
}
@@ -200,8 +206,7 @@ describe('Destructive with reverification', () => {
200206
await user.click(screen.getAllByRole('button', { name: 'Close' })[0]);
201207
await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());
202208

203-
await user.click(screen.getByRole('button', { name: 'Open' }));
204-
await user.type(await screen.findByRole('textbox'), 'Delete');
209+
await typeConfirmation(user);
205210
const stopWatching = watchForConfirmStep();
206211
await user.click(screen.getByRole('button', { name: 'Delete account' }));
207212
await new Promise(resolve => setTimeout(resolve, 150));

‎packages/mosaic/src/components/card/card.styles.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export const branding = stylex.create({
116116
borderBlockStartColor: colorVars['--cl-color-border'],
117117
borderBlockStartStyle: 'solid',
118118
borderBlockStartWidth: '1px',
119-
textAlign: 'center',
119+
display: 'flex',
120+
justifyContent: 'center',
120121
},
121122
});

‎packages/mosaic/src/features/reverification/__tests__/reverification.feature.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ describe('Reverification', () => {
932932

933933
// The code step opens with an empty field and no error once the code is sent
934934
expect(await screen.findByText(STEP.emailCode)).toBeVisible();
935-
expect(slotValues()).toEqual(['', '', '', '', '', '']);
935+
await waitFor(() => expect(slotValues()).toEqual(['', '', '', '', '', '']));
936936
expect(screen.queryByText('Incorrect code')).toBeNull();
937937

938938
// Picking a phone code sends the SMS code through the first factor endpoints

0 commit comments

Comments
 (0)