Skip to content

Commit

Permalink
Fix test assertions when workspaceis disabled
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 43bc19a commit 81ad523
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ if (isWorkspaceEnabled) {
it('features are visible inside left navigation analytics for search use case', () => {
validateWorkspaceNavMenu('search', () => {
cy.contains('Visualize and report').should('exist');
cy.contains('Compare search results ').should('exist');
isWorkspaceEnabled &&
cy.contains('Compare search results').should('exist');
});
});

Expand All @@ -99,7 +100,7 @@ if (isWorkspaceEnabled) {
cy.contains('Visualize and report').should('exist');
cy.contains('Threat detection').should('exist');
cy.contains('Detect').should('exist');
cy.contains('Anomaly detection').should('exist');
isWorkspaceEnabled && cy.contains('Anomaly detection').should('exist');
});
});

Expand Down

0 comments on commit 81ad523

Please sign in to comment.