fix: Prevent invalid host assignment (#9441)
* Avoids invalid hosts * Fixed test selector, instead using react-select-2-listbox * Different way of selecting the managed user * Convert select-option- to value instead of label * Replaced all instances of networkidle * done rewriting test * Fix prisma is not defined error * Depend on inner text rather than testid * Fill of team create is unstable * Removed console.log --------- Co-authored-by: Efraín Rochín <[email protected]>
This commit is contained in:
1 parent
d9a7952467
commit
bb31c4ba14
4 files changed
+85
-71
No files matched your search
@@ -43,8 +43,8 @@ export const OptionComponent = <
|
||||
// This gets styled in the select classNames prop now - handles overrides with styles vs className here doesnt
|
||||
<reactSelectComponents.Option {...props}>
|
||||
<div className="flex">
|
||||
<span className="mr-auto" data-testid={`select-option-${props.label}`}>
|
||||
{props.label}
|
||||
<span className="mr-auto" data-testid={`select-option-${(props as unknown as ExtendedOption).value}`}>
|
||||
{props.label || <> </>}
|
||||
</span>
|
||||
{(props.data as unknown as ExtendedOption).needsUpgrade && <UpgradeTeamsBadge />}
|
||||
{props.isSelected && <Check className="ml-2 h-4 w-4" />}
|
||||
|
||||
Reference in new issue
Block a user