diff --git a/cypress/e2e/po/components/kubectl.po.ts b/cypress/e2e/po/components/kubectl.po.ts index a7d565bffe9..78063308acf 100644 --- a/cypress/e2e/po/components/kubectl.po.ts +++ b/cypress/e2e/po/components/kubectl.po.ts @@ -29,7 +29,7 @@ export default class Kubectl extends ComponentPo { } waitForTerminalStatus(status: 'Connected' | 'Disconnected', options?: GetOptions) { - this.self().find('.active .status').contains(status, options).should('be.visible'); + this.self().contains('.active .status', status, options); } /** diff --git a/cypress/e2e/tests/pages/charts/logging.spec.ts b/cypress/e2e/tests/pages/charts/logging.spec.ts index 5993a337f5f..0a60ed4c521 100644 --- a/cypress/e2e/tests/pages/charts/logging.spec.ts +++ b/cypress/e2e/tests/pages/charts/logging.spec.ts @@ -10,6 +10,7 @@ import PromptRemove from '@/cypress/e2e/po/prompts/promptRemove.po'; import ChartInstalledAppsListPagePo from '@/cypress/e2e/po/pages/chart-installed-apps.po'; import { MEDIUM_TIMEOUT_OPT } from '@/cypress/support/utils/timeouts'; import { CLUSTER_APPS_BASE_URL } from '@/cypress/support/utils/api-endpoints'; +import CardPo from '~/cypress/e2e/po/components/card.po'; describe('Logging Chart', { testIsolation: 'off', tags: ['@charts', '@adminUser'] }, () => { const kubectl = new Kubectl(); @@ -115,6 +116,7 @@ describe('Logging Chart', { testIsolation: 'off', tags: ['@charts', '@adminUser' installedAppsPage.goTo(); installedAppsPage.waitForPage(); cy.wait('@getCharts', MEDIUM_TIMEOUT_OPT).its('response.statusCode').should('eq', 200); + installedAppsPage.appsList().checkVisible(MEDIUM_TIMEOUT_OPT); installedAppsPage.appsList().sortableTable().checkLoadingIndicatorNotVisible(); installedAppsPage.appsList().sortableTable().noRowsShouldNotExist(); installedAppsPage.appsList().resourceTableDetails(chartApp, 1).should('exist'); @@ -134,6 +136,10 @@ describe('Logging Chart', { testIsolation: 'off', tags: ['@charts', '@adminUser' promptRemove.checkbox().set(); promptRemove.checkbox().isChecked(); promptRemove.remove(); + + const card = new CardPo(); + + card.checkNotExists(MEDIUM_TIMEOUT_OPT); cy.wait('@chartUninstall').its('response.statusCode').should('eq', 201); cy.wait('@crdUninstall').its('response.statusCode').should('eq', 201); @@ -145,6 +151,7 @@ describe('Logging Chart', { testIsolation: 'off', tags: ['@charts', '@adminUser' installedAppsPage.goTo(); installedAppsPage.waitForPage(); cy.wait('@getCharts', MEDIUM_TIMEOUT_OPT).its('response.statusCode').should('eq', 200); + installedAppsPage.appsList().checkVisible(MEDIUM_TIMEOUT_OPT); installedAppsPage.appsList().sortableTable().checkLoadingIndicatorNotVisible(); installedAppsPage.appsList().sortableTable().noRowsShouldNotExist(); installedAppsPage.appsList().sortableTable().rowNames('.col-link-detail', MEDIUM_TIMEOUT_OPT)