@transferwise/components 45.18.0 → 45.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,7 +68,7 @@ export const OpenedInput: Story = {
68
68
  ...MultipleCurrencies,
69
69
  play: ({ canvasElement }) => {
70
70
  const canvas = within(canvasElement);
71
- userEvent.click(canvas.getByRole('combobox'));
71
+ userEvent.click(canvas.getByRole('button'));
72
72
  },
73
73
  };
74
74
 
@@ -507,7 +507,6 @@ export default function Select({
507
507
  type={null}
508
508
  priority={null}
509
509
  disabled={disabled}
510
- role="combobox"
511
510
  aria-controls={listboxId}
512
511
  aria-expanded={open}
513
512
  aria-autocomplete="none"
@@ -51,7 +51,7 @@ describe('Select', () => {
51
51
  });
52
52
 
53
53
  const openSelect = (container) => {
54
- const button = container.querySelector('button');
54
+ const button = screen.getByRole('button');
55
55
  userEvent.click(button);
56
56
  };
57
57
 
@@ -326,7 +326,7 @@ describe('Select', () => {
326
326
  const { container } = render(<Select {...props} />);
327
327
  openSelect(container);
328
328
 
329
- const button = screen.getByRole('combobox');
329
+ const button = screen.getByRole('button');
330
330
  const options = screen.getByRole('listbox');
331
331
 
332
332
  expect(button).toHaveAttribute('id', 'np-select-mock-random-id');
@@ -337,7 +337,7 @@ describe('Select', () => {
337
337
  const { container } = render(<Select id="my-select-component" {...props} />);
338
338
  openSelect(container);
339
339
 
340
- const button = screen.getByRole('combobox');
340
+ const button = screen.getByRole('button');
341
341
  const options = screen.getByRole('listbox');
342
342
 
343
343
  expect(button).toHaveAttribute('id', 'my-select-component');
@@ -348,7 +348,7 @@ describe('Select', () => {
348
348
  const { container } = render(<Select {...props} search onSearchChange={jest.fn()} />);
349
349
  openSelect(container);
350
350
 
351
- const button = screen.getByRole('combobox');
351
+ const button = screen.getByRole('button');
352
352
  const options = screen.getByRole('listbox');
353
353
 
354
354
  const ariaControlsId = button.getAttribute('aria-controls');
package/src/ssr.spec.js CHANGED
@@ -17,6 +17,7 @@ const excluded = new Set([
17
17
  'Provider',
18
18
  'BottomSheet',
19
19
  'DropFade',
20
+ 'SelectInputTriggerButton',
20
21
 
21
22
  // enums
22
23
  'Size',