UNPKG

stone-kit

Version:
23 lines (22 loc) 677 B
import { K as c, n as o, J as s } from "../index-DQgqDqGf.js"; import { Page as m } from "./Page.js"; const i = { title: "Example/Page", component: m, parameters: { // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout layout: "fullscreen" } }, l = {}, r = { play: async ({ canvasElement: n }) => { const e = c(n), t = e.getByRole("button", { name: /Log in/i }); await o(t).toBeInTheDocument(), await s.click(t), await o(t).not.toBeInTheDocument(); const a = e.getByRole("button", { name: /Log out/i }); await o(a).toBeInTheDocument(); } }; export { r as LoggedIn, l as LoggedOut, i as default };