@storybook/sveltekit 8.3.0-alpha.5 → 8.3.0-alpha.7

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": "@storybook/sveltekit",
3
- "version": "8.3.0-alpha.5",
3
+ "version": "8.3.0-alpha.7",
4
4
  "description": "Storybook for SvelteKit",
5
5
  "keywords": [
6
6
  "storybook",
@@ -53,10 +53,10 @@
53
53
  "prep": "jiti ../../../scripts/prepare/bundle.ts"
54
54
  },
55
55
  "dependencies": {
56
- "@storybook/addon-actions": "8.3.0-alpha.5",
57
- "@storybook/builder-vite": "8.3.0-alpha.5",
58
- "@storybook/svelte": "8.3.0-alpha.5",
59
- "@storybook/svelte-vite": "8.3.0-alpha.5"
56
+ "@storybook/addon-actions": "8.3.0-alpha.7",
57
+ "@storybook/builder-vite": "8.3.0-alpha.7",
58
+ "@storybook/svelte": "8.3.0-alpha.7",
59
+ "@storybook/svelte-vite": "8.3.0-alpha.7"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^22.0.0",
@@ -64,7 +64,7 @@
64
64
  "vite": "^4.0.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "storybook": "^8.3.0-alpha.5",
67
+ "storybook": "^8.3.0-alpha.7",
68
68
  "svelte": "^4.0.0 || ^5.0.0-next.65",
69
69
  "vite": "^4.0.0 || ^5.0.0"
70
70
  },
@@ -1,4 +1,4 @@
1
- import { expect, fn, within } from '@storybook/test';
1
+ import { expect, fn, userEvent, within } from '@storybook/test';
2
2
 
3
3
  import Forms from './Forms.svelte';
4
4
 
@@ -13,8 +13,8 @@ const enhance = fn();
13
13
  export const Enhance = {
14
14
  async play({ canvasElement }) {
15
15
  const canvas = within(canvasElement);
16
- const button = canvas.getByText('enhance');
17
- button.click();
16
+ const button = canvas.getByRole('button');
17
+ await userEvent.click(button);
18
18
  expect(enhance).toHaveBeenCalled();
19
19
  },
20
20
  parameters: {