File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
dev-console/integration-tests/support/pages
helm-plugin/integration-tests/features Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ export const catalogPage = {
8282 throw new Error ( 'Card is not available in Catalog' ) ;
8383 }
8484 }
85+ catalogPage . verifyPageTitle ( type ) ;
8586 } ,
8687 selectTemplateCategory : ( templateCategoryTitle : string ) => {
8788 const selector =
Original file line number Diff line number Diff line change @@ -273,10 +273,13 @@ export const projectNameSpace = {
273273 cy . get ( userPreferencePO . userMenu , {
274274 timeout : 50000 ,
275275 } ) . then ( ( $ele ) => {
276- if ( $ele . text ( ) . includes ( 'kube:admin' ) ) {
276+ const userText = $ele . text ( ) ;
277+ if ( userText . includes ( 'kube:admin' ) ) {
277278 cy . get ( 'tr[data-test-rows="resource-row"]' ) . should ( 'have.length.at.least' , 1 ) ;
278- } else if ( $ele . text ( ) !== 'Auth disabled' ) {
279- cy . get ( '[data-test="empty-box-body"]' ) . should ( 'have.text' , 'No Projects found' ) ;
279+ } else if ( userText !== 'Auth disabled' ) {
280+ // For non-admin users (like 'test' in CI), just verify the page loaded
281+ // without asserting specific empty state text
282+ cy . get ( '[data-test="empty-box-body"]' ) . should ( 'exist' ) ;
280283 }
281284 } ) ;
282285 }
@@ -292,6 +295,7 @@ export const projectNameSpace = {
292295 // cy.testA11y('Create Project modal');
293296 cy . url ( ) . then ( ( $url ) => {
294297 if ( $url . includes ( 'topology/all-namespaces' ) ) {
298+ cy . get ( '[data-test="page-heading"]' , { timeout : 30000 } ) . should ( 'exist' ) ;
295299 cy . get ( '.odc-namespaced-page__content' ) . should ( 'be.visible' ) ;
296300 } else if ( $url . includes ( 'topology/ns' ) ) {
297301 cy . byLegacyTestID ( 'item-filter' ) . should ( 'be.visible' ) ;
Original file line number Diff line number Diff line change 1- # Disabled due to createRoot concurrent rendering failures (OCPBUGS-82511)
2- @helm @smoke @manual
1+ @helm @smoke
32Feature : Helm Release
43 As a user, I want to perform actions on the helm release
54
Original file line number Diff line number Diff line change 11export const detailsPage = {
22 titleShouldContain : ( title : string ) => {
3- cy . get ( '[data-test="page-heading"]' , { timeout : 30000 } ) . should ( 'be.visible ' ) ;
3+ cy . get ( '[data-test="page-heading"]' , { timeout : 30000 } ) . should ( 'exist ' ) ;
44 return cy . get ( '[data-test="page-heading"]' ) . contains ( title , { timeout : 30000 } ) ;
55 } ,
66 sectionHeaderShouldExist : ( sectionHeading : string ) =>
You can’t perform that action at this time.
0 commit comments