mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 23:35:31 +02:00
chore(automation): give unique selectors [r8s-168] (#345)
Co-authored-by: JamesPlayer <james.player@portainer.io>
This commit is contained in:
parent
b30a1b5250
commit
c80cc6e268
29 changed files with 38 additions and 4 deletions
|
@ -37,6 +37,7 @@ export function PorAccessManagementUsersSelector({
|
|||
closeMenuOnSelect={false}
|
||||
onChange={onChange}
|
||||
data-cy="component-selectUser"
|
||||
id="component-selectUser"
|
||||
inputId="users-selector"
|
||||
placeholder="Select one or more users and/or teams"
|
||||
components={{ MultiValueLabel, Option: OptionComponent }}
|
||||
|
|
|
@ -30,7 +30,7 @@ export function TeamsField({
|
|||
'You can select which team(s) will be able to manage this resource.'
|
||||
: undefined
|
||||
}
|
||||
inputId="teams-selector"
|
||||
inputId="authorized-teams-selector"
|
||||
errors={errors}
|
||||
>
|
||||
{teams.length > 0 ? (
|
||||
|
@ -39,7 +39,7 @@ export function TeamsField({
|
|||
teams={teams}
|
||||
onChange={onChange}
|
||||
value={value}
|
||||
inputId="teams-selector"
|
||||
inputId="authorized-teams-selector"
|
||||
dataCy="teams-selector"
|
||||
/>
|
||||
) : (
|
||||
|
|
|
@ -21,7 +21,7 @@ export function UsersField({ name, users, value, onChange, errors }: Props) {
|
|||
? 'You can select which user(s) will be able to manage this resource.'
|
||||
: undefined
|
||||
}
|
||||
inputId="users-selector"
|
||||
inputId="authorized-users-selector"
|
||||
errors={errors}
|
||||
>
|
||||
{users.length > 0 ? (
|
||||
|
@ -30,7 +30,7 @@ export function UsersField({ name, users, value, onChange, errors }: Props) {
|
|||
users={users}
|
||||
onChange={onChange}
|
||||
value={value}
|
||||
inputId="users-selector"
|
||||
inputId="authorized-users-selector"
|
||||
dataCy="users-selector"
|
||||
/>
|
||||
) : (
|
||||
|
|
|
@ -26,6 +26,7 @@ export function PorAccessControlFormTeamSelector({
|
|||
closeMenuOnSelect={false}
|
||||
onChange={onChange}
|
||||
data-cy="portainer-selectTeamAccess"
|
||||
id="portainer-selectTeamAccess"
|
||||
inputId={inputId}
|
||||
placeholder="Select one or more teams"
|
||||
/>
|
||||
|
|
|
@ -26,6 +26,7 @@ export function PorAccessControlFormUserSelector({
|
|||
closeMenuOnSelect={false}
|
||||
onChange={onChange}
|
||||
data-cy="portainer-selectUserAccess"
|
||||
id="portainer-selectUserAccess"
|
||||
inputId={inputId}
|
||||
placeholder="Select one or more users"
|
||||
/>
|
||||
|
|
|
@ -112,6 +112,7 @@ export function TimeWindowPickerInputGroup({
|
|||
onChangeTimeZone(newTimeZone.value);
|
||||
}}
|
||||
data-cy="time-window-picker-timezone-select"
|
||||
id="time-window-picker-timezone-select"
|
||||
/>
|
||||
</div>
|
||||
{errors?.StartTime && <FormError>{errors.StartTime}</FormError>}
|
||||
|
|
|
@ -54,6 +54,7 @@ export function EdgeGroupsField({
|
|||
closeMenuOnSelect={false}
|
||||
isDisabled={disabled}
|
||||
data-cy="update-schedules-edge-groups-select"
|
||||
id="update-schedules-edge-groups-select"
|
||||
/>
|
||||
</FormControl>
|
||||
<TextTip color="blue">
|
||||
|
|
|
@ -41,6 +41,7 @@ export function CredentialSelector({
|
|||
noOptionsMessage={() => 'no saved credentials'}
|
||||
inputId="git-creds-selector"
|
||||
data-cy="git-credentials-selector"
|
||||
id="git-credentials-selector"
|
||||
/>
|
||||
</FormControl>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue