Skip to content

Commit 28dcd19

Browse files
authored
Adding IDs for Operator tests (#1599)
1 parent 78e4e3f commit 28dcd19

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ const CredentialsPrompt = ({
174174
</Grid>
175175
<Grid item xs={12} className={classes.buttonContainer}>
176176
<Button
177+
id={"done-button"}
177178
variant="outlined"
178179
className={classes.buttonSpacer}
179180
onClick={() => {
@@ -186,6 +187,7 @@ const CredentialsPrompt = ({
186187

187188
{!idp && (
188189
<Button
190+
id={"download-button"}
189191
onClick={() => {
190192
let consoleExtras = {};
191193

portal-ui/src/screens/Console/Common/GenericWizard/GenericWizard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const GenericWizard = ({
165165
{wizardSteps.map((step, index) => {
166166
return (
167167
<ListItem
168+
id={"wizard-step-" + step.label}
168169
button
169170
disableRipple
170171
onClick={() => pageChange(index)}

portal-ui/src/screens/Console/Common/GenericWizard/WizardPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const WizardPage = ({
105105
{page.buttons.map((btn) => {
106106
return (
107107
<Button
108+
id={"wizard-button-" + btn.label}
108109
variant="contained"
109110
color="primary"
110111
size="small"

portal-ui/src/screens/Console/Menu/ConsoleMenuList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ const ConsoleMenuList = ({
157157
</ListItemIcon>
158158
<ListItemText
159159
primary="Logout"
160+
id={"logout"}
160161
sx={{ ...menuItemTextStyles }}
161162
className={stateClsName}
162163
/>

portal-ui/src/screens/Console/Tenants/ListTenants/ListTenants.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ const ListTenants = ({ classes, setErrorSnackMessage }: ITenantsList) => {
208208
/>
209209

210210
<RBIconButton
211+
id={"refresh-tenant-list"}
211212
tooltip={"Refresh Tenant List"}
212213
text={""}
213214
onClick={() => {

portal-ui/src/screens/Console/Tenants/ListTenants/TenantListItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ const TenantListItem = ({ tenant, classes }: ITenantListItem) => {
177177
</Grid>
178178
<Grid item xs={4} textAlign={"end"}>
179179
<RBIconButton
180+
id={"manage-tenant-" + tenant.name}
180181
tooltip={"Manage Tenant"}
181182
text={"Manage"}
182183
disabled={!tenantIsOnline(tenant)}
@@ -190,6 +191,7 @@ const TenantListItem = ({ tenant, classes }: ITenantListItem) => {
190191
variant={"outlined"}
191192
/>
192193
<RBIconButton
194+
id={"view-tenant-" + tenant.name}
193195
tooltip={"View Tenant"}
194196
text={"View"}
195197
onClick={() => {

0 commit comments

Comments
 (0)