Skip to content

Commit

Permalink
Adding IDs for Operator tests (#1599)
Browse files Browse the repository at this point in the history
  • Loading branch information
cniackz authored Feb 19, 2022
1 parent 78e4e3f commit 28dcd19
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ const CredentialsPrompt = ({
</Grid>
<Grid item xs={12} className={classes.buttonContainer}>
<Button
id={"done-button"}
variant="outlined"
className={classes.buttonSpacer}
onClick={() => {
Expand All @@ -186,6 +187,7 @@ const CredentialsPrompt = ({

{!idp && (
<Button
id={"download-button"}
onClick={() => {
let consoleExtras = {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const GenericWizard = ({
{wizardSteps.map((step, index) => {
return (
<ListItem
id={"wizard-step-" + step.label}
button
disableRipple
onClick={() => pageChange(index)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const WizardPage = ({
{page.buttons.map((btn) => {
return (
<Button
id={"wizard-button-" + btn.label}
variant="contained"
color="primary"
size="small"
Expand Down
1 change: 1 addition & 0 deletions portal-ui/src/screens/Console/Menu/ConsoleMenuList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const ConsoleMenuList = ({
</ListItemIcon>
<ListItemText
primary="Logout"
id={"logout"}
sx={{ ...menuItemTextStyles }}
className={stateClsName}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const ListTenants = ({ classes, setErrorSnackMessage }: ITenantsList) => {
/>

<RBIconButton
id={"refresh-tenant-list"}
tooltip={"Refresh Tenant List"}
text={""}
onClick={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ const TenantListItem = ({ tenant, classes }: ITenantListItem) => {
</Grid>
<Grid item xs={4} textAlign={"end"}>
<RBIconButton
id={"manage-tenant-" + tenant.name}
tooltip={"Manage Tenant"}
text={"Manage"}
disabled={!tenantIsOnline(tenant)}
Expand All @@ -190,6 +191,7 @@ const TenantListItem = ({ tenant, classes }: ITenantListItem) => {
variant={"outlined"}
/>
<RBIconButton
id={"view-tenant-" + tenant.name}
tooltip={"View Tenant"}
text={"View"}
onClick={() => {
Expand Down

0 comments on commit 28dcd19

Please sign in to comment.