Skip to content

Commit

Permalink
Address comments by adding additional assertion to navigation menu
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Wang <[email protected]>
  • Loading branch information
FriedhelmWS committed Feb 11, 2025
1 parent 20b05ba commit 43bc19a
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ if (isWorkspaceEnabled) {
cy.contains(`${workspaceName}_${feature}`).should('exist');
cy.get('.navGroupEnabledHomeIcon').should('exist');
cy.get('input[type="search"]').should('exist');
cy.contains('Manage workspace').should('exist');

// additional assertion according to different type of workspace
callbackFn();
Expand Down Expand Up @@ -75,36 +76,37 @@ if (isWorkspaceEnabled) {
it('features are visible inside left navigation analytics for analytics use case', () => {
validateWorkspaceNavMenu('all', () => {
cy.contains('Visualize and report').should('exist');
cy.contains('Observability').should('exist');
cy.contains('Security Analytics').should('exist');
cy.contains('Search').should('exist');
cy.contains('Manage workspace').should('exist');
cy.contains('Detect').should('exist');
});
});

it('features are visible inside left navigation analytics for essentials use case', () => {
validateWorkspaceNavMenu('essentials', () => {
cy.contains('Manage workspace').should('exist');
});
validateWorkspaceNavMenu('essentials', () => {});
});

it('features are visible inside left navigation analytics for search use case', () => {
validateWorkspaceNavMenu('search', () => {
cy.contains('Visualize and report').should('exist');
cy.contains('Manage workspace').should('exist');
cy.contains('Compare search results ').should('exist');
});
});

it('features are visible inside left navigation analytics for security analytics use case', () => {
validateWorkspaceNavMenu('security-analytics', () => {
cy.contains('Visualize and report').should('exist');
cy.contains('Manage workspace').should('exist');
cy.contains('Threat detection').should('exist');
cy.contains('Detect').should('exist');
cy.contains('Anomaly detection').should('exist');
});
});

it('features are visible inside left navigation for observability use case', () => {
validateWorkspaceNavMenu('observability', () => {
cy.contains('Visualize and report').should('exist');
cy.contains('Detect').should('exist');
cy.contains('Manage workspace').should('exist');
});
});

Expand Down

0 comments on commit 43bc19a

Please sign in to comment.