Skip to content

Commit

Permalink
Rename data-testId to data-testid
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored Oct 16, 2023
1 parent 4c145bb commit aa67fe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/apps/account-ui/src/resources/ResourcesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const ResourcesTab = ({ isShared = false }: ResourcesTabProps) => {
>
<Tr>
<Td
data-testId={`expand-${resource.name}`}
data-testid={`expand-${resource.name}`}
expand={
!isShared
? {
Expand Down
6 changes: 3 additions & 3 deletions js/apps/account-ui/src/resources/ShareTheResource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const ShareTheResource = ({
<Button
key="confirm"
variant="primary"
data-testId="done"
data-testid="done"
isDisabled={!isValid}
type="submit"
form="share-form"
Expand All @@ -147,7 +147,7 @@ export const ShareTheResource = ({
<InputGroup>
<KeycloakTextInput
id="users"
data-testId="users"
data-testid="users"
placeholder={t("usernamePlaceholder")}
validated={
errors.usernames
Expand All @@ -161,7 +161,7 @@ export const ShareTheResource = ({
<Button
key="add-user"
variant="primary"
data-testId="add"
data-testid="add"
onClick={() => append({ value: "" })}
isDisabled={isDisabled}
>
Expand Down
2 changes: 1 addition & 1 deletion js/apps/account-ui/src/resources/SharedWith.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type SharedWithProps = {

export const SharedWith = ({ permissions: p = [] }: SharedWithProps) => (
<div
data-testId={`shared-with-${p.length ? p.map((e) => e.username) : "none"}`}
data-testid={`shared-with-${p.length ? p.map((e) => e.username) : "none"}`}
>
<Trans i18nKey="resourceSharedWith" count={p.length}>
<strong>
Expand Down

0 comments on commit aa67fe9

Please sign in to comment.