Skip to content

Commit

Permalink
Added filter logic (need some tweak)
Browse files Browse the repository at this point in the history
Signed-off-by: Satyajit Bulage <[email protected]>
  • Loading branch information
sbulage committed Apr 18, 2024
1 parent 51c4b21 commit 7aa5948
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ Cypress.Commands.add('checkApplicationStatus', (appName, namespace, clusterName=
cypressLib.burgerMenuToggle();
cypressLib.accesMenu(clusterName);
cy.clickNavMenu(['Workloads', 'Pods']);
cy.nameSpaceMenuToggle(namespace);
if (namespace) {
cy.nameSpaceMenuToggle(namespace);
}
// Type application name in filter
let newAppName = new RegExp(appName + "(?=.*[a-zA-Z])(?=.*[0-9])[A-Za-z0-9]+")
cy.get('.search.row').should('exist').type(newAppName);
cy.contains('tr.main-row[data-testid="sortable-table-0-row"]').should('not.be.empty', { timeout: 25000 });
cy.get(`table > tbody > tr.main-row[data-testid="sortable-table-0-row"]`)
.children({ timeout: 60000 })
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare global {
deleteAll(fleetCheck?: boolean): Chainable<Element>;
deleteAllFleetRepos(): Chainable<Element>;
checkGitRepoStatus(repoName: string, bundles?: string, resources?: string): Chainable<Element>;
checkApplicationStatus(appName: string, namespace?: string, clusterName?: string): Chainable<Element>;
checkApplicationStatus(appName: string, clusterName?: string): Chainable<Element>;
deleteApplicationDeployment(clusterName?: string): Chainable<Element>;
modifyDeployedApplication(appName: string, clusterName?: string): Chainable<Element>;
}
Expand Down

0 comments on commit 7aa5948

Please sign in to comment.