@transferwise/components 0.0.0-experimental-89c4b74 → 0.0.0-experimental-d44d661

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-89c4b74",
3
+ "version": "0.0.0-experimental-d44d661",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -5,6 +5,7 @@ import { Field } from '../field/Field';
5
5
  import { SelectInput, type SelectInputProps } from './SelectInput';
6
6
  import { lorem5, lorem500 } from '../test-utils';
7
7
  import Body from '../body';
8
+ import { allModes } from '../../.storybook/modes';
8
9
 
9
10
  const meta = {
10
11
  title: 'Forms/SelectInput/tests',
@@ -55,15 +56,21 @@ export const SmoothScrollReset: Story<string> = {
55
56
  </>
56
57
  ),
57
58
  ],
58
- play: async ({ canvasElement, step }) => {
59
+ play: async ({ canvasElement }) => {
59
60
  window.scrollTo({ top: 400, behavior: 'instant' });
60
61
  const canvas = within(canvasElement);
61
62
  const triggerButton = canvas.getByRole('combobox');
62
63
  await userEvent.click(triggerButton);
63
64
  },
65
+ globals: {
66
+ viewport: { value: allModes.largeMobile.viewport, isRotated: false },
67
+ },
64
68
  parameters: {
65
69
  chromatic: {
66
70
  delay: 1000,
71
+ modes: {
72
+ largeMobile: allModes.largeMobile,
73
+ }
67
74
  },
68
75
  },
69
76
  };