- Notifications
You must be signed in to change notification settings - Fork1k
refactor: replace deprecated Popovers which open on click#19709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
fba9492
e230f38
75c9fdf
bea24d8
9e6fa0c
303222b
f835cb1
dd7e233
d397fff
6134bad
ad562be
d30170c
4438af8
00b70ea
c59daf3
3aeaa49
eaf3baf
c93e092
ef6cceb
c142b5a
143e33e
d22a040
2ff9e66
ed5bf98
ff6c794
9887b09
d859688
bda70b2
6a37c49
6921bbe
423bddc
81a70f3
949698b
8207137
a6cf0da
183d163
1242cbe
1f9acc3
244792a
07fd1e2
8bd2cd0
bdacfb1
9e7b432
5ba7da8
85611c3
259e8a3
d5a6d18
e0f4f4c
e5ab08d
189fe0b
431b828
f6a3098
8785d6b
ffc7aa8
cf7b88f
8c6c3fc
005256a
018c654
eca5477
9a12e1b
1f89beb
3a77cef
dad5ada
59e9e0f
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react-vite"; | ||
import { Avatar } from "components/Avatar/Avatar"; | ||
import { useState } from "react"; | ||
import { action } from "storybook/actions"; | ||
import { expect,screen,userEvent, within } from "storybook/test"; | ||
import { | ||
SelectFilter, | ||
type SelectFilterOption, | ||
@@ -88,7 +88,7 @@ export const SelectingOption: Story = { | ||
const canvas = within(canvasElement); | ||
const button = canvas.getByRole("button"); | ||
await userEvent.click(button); | ||
const option =screen.getByText("Option 25"); | ||
await userEvent.click(option); | ||
await expect(button).toHaveTextContent("Option 25"); | ||
}, | ||
@@ -102,7 +102,7 @@ export const UnselectingOption: Story = { | ||
const canvas = within(canvasElement); | ||
const button = canvas.getByRole("button"); | ||
await userEvent.click(button); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. muuuuch better | ||
const menu =screen.getByRole("menu"); | ||
const option = within(menu).getByText("Option 26"); | ||
await userEvent.click(option); | ||
await expect(button).toHaveTextContent("All options"); | ||
@@ -140,7 +140,7 @@ export const SearchingOption: Story = { | ||
const canvas = within(canvasElement); | ||
const button = canvas.getByRole("button"); | ||
await userEvent.click(button); | ||
const search =screen.getByLabelText("Search options"); | ||
await userEvent.type(search, "option-2"); | ||
}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2,7 +2,7 @@ import { css } from "@emotion/css"; | ||
import { type Theme, useTheme } from "@emotion/react"; | ||
import { type DependencyList, useMemo } from "react"; | ||
type ClassName = (cssFn: typeof css, theme: Theme) => string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. this means we're getting closer!! excited to see this old hack gone | ||
/** | ||
* @deprecated This hook was used as an escape hatch to generate class names | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.