Skip to content

Commit d5805cd

Browse files
authored
feat(Operator Page): add storage_type to orgs list (#6488)
* feat(Operator Page): add storage_type to orgs list * test: test correct storage type of org is shown * fix: prettier
1 parent 1bbbdce commit d5805cd

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

cypress/e2e/cloud/operator.test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,27 @@ describe('Operator Page', () => {
109109

110110
cy.getByTestID('operator-resource--searchbar').clear()
111111

112+
// displays org storage type - iox
113+
cy.getByTestID('operator-resource--searchbar').type('345')
114+
cy.wait('@quartzSearchOrgs')
115+
cy.getByTestID('table-body').within(() => {
116+
cy.getByTestID('table-row').within(() => {
117+
cy.getByTestID('storage_type').should('exist').and('have.text', 'iox')
118+
})
119+
})
120+
cy.getByTestID('operator-resource--searchbar').clear()
121+
122+
// displays org storage type - tsm
123+
cy.getByTestID('operator-resource--searchbar').type('678')
124+
cy.wait('@quartzSearchOrgs')
125+
cy.getByTestID('table-body').within(() => {
126+
cy.getByTestID('table-row').within(() => {
127+
cy.getByTestID('storage_type').should('exist').and('have.text', 'tsm')
128+
})
129+
})
130+
131+
cy.getByTestID('operator-resource--searchbar').clear()
132+
112133
// search for an unknown org
113134
const unknownOrg = ['i', 'n', 'v', 'a', 'l', 'i', 'd']
114135
for (let index = 0; index < unknownOrg.length; index += 1) {

src/operator/constants.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const organizationColumnHeaders = [
6969
'Provider',
7070
'Region',
7171
'Date Created',
72+
'Storage Type',
7273
]
7374

7475
export const organizationColumnInfo: CellInfo[] = [
@@ -121,6 +122,11 @@ export const organizationColumnInfo: CellInfo[] = [
121122
name: 'date',
122123
defaultValue: '',
123124
},
125+
{
126+
path: 'storageType',
127+
name: 'storage_type',
128+
defaultValue: '',
129+
},
124130
]
125131

126132
export const accountUserHeaderInfo = [

0 commit comments

Comments
 (0)