Skip to content

Commit

Permalink
test: add template options test IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 10, 2023
1 parent d6fb068 commit 4d08613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ export const OptionsMenu = makeComposable<OptionsMenuProps>(
return (
<Menu
className={menuStyles}
handle={<IconButton icon={<MoreVerticalIcon />} />}
handle={
<IconButton icon={<MoreVerticalIcon />} data-testid={props["data-testid"]} />
}
anchor={"topLeft"}
{...props}
>
{items.map(item => (
<MenuItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,13 @@ const PageTemplatesDataList = ({
<ButtonIcon icon={<AddIcon />} /> {t`New Template`}
</ButtonSecondary>
<OptionsMenu
data-testid={"pb-templates-list-options-btn"}
items={[
{
label: "Import Templates",
icon: <FileUploadIcon />,
onClick: showImportDialog,
"data-testid": "import-template-button"
"data-testid": "pb-templates-list-options-import-template-btn"
}
]}
/>
Expand Down

0 comments on commit 4d08613

Please sign in to comment.