mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* init * Fix some TS errors. Comment out a unspecified form field. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
// import { within, userEvent, expect } from '@storybook/test'
|
|
import { TooltipProvider_Shadcn_ } from 'ui'
|
|
import { Page } from './FormLayout2'
|
|
|
|
export default {
|
|
title: 'Form Examples/Side Panel Function Create',
|
|
component: Page,
|
|
parameters: {
|
|
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
|
layout: 'centered',
|
|
},
|
|
decorators: [
|
|
(Story: any) => {
|
|
return (
|
|
<TooltipProvider_Shadcn_>
|
|
<Story />
|
|
</TooltipProvider_Shadcn_>
|
|
)
|
|
},
|
|
],
|
|
}
|
|
|
|
export const StateOne = {}
|
|
|
|
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
|
// export const LoggedIn = {
|
|
// play: async ({ canvasElement }) => {
|
|
// const canvas = within(canvasElement)
|
|
// const loginButton = canvas.getByRole('button', { name: /Log in/i })
|
|
// await expect(loginButton).toBeInTheDocument()
|
|
// await userEvent.click(loginButton)
|
|
// await expect(loginButton).not.toBeInTheDocument()
|
|
|
|
// const logoutButton = canvas.getByRole('button', { name: /Log out/i })
|
|
// await expect(logoutButton).toBeInTheDocument()
|
|
// },
|
|
// }
|