import { html } from 'lit-html'
import { within } from '@storybook/testing-library'
import { expect } from '@storybook/jest'
import { Meta } from '@storybook/web-components'
import '../index'
const meta: Meta = {
title: 'Test',
component: 'lukso-test',
}
export default meta
export function Primary({ disabled }) {
return html`Hello World`
}
Primary.args = {
disabled: false,
}
Primary.play = async ({ canvasElement }) => {
const canvas = within(canvasElement)
// 👇 Assert DOM structure
await expect(canvas.getByText('Hello World')).toBeInTheDocument()
// See https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
// await userEvent.click(canvas.getByTestId("button"));
// 👇 Assert DOM structure
await expect(canvas.getByText('Hello World')).toBeInTheDocument()
}