Skip to content

Commit

Permalink
Add test cases for filter of aggregation view feature (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#357) (opensearch-project#363)

Signed-off-by: Ryan Liang <jiallian@amazon.com>

Signed-off-by: Ryan Liang <jiallian@amazon.com>
(cherry picked from commit 37134e9)

Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
Signed-off-by: leanne.laceybyrne@eliatra.com <leanne.laceybyrne@eliatra.com>
  • Loading branch information
2 people authored and leanneeliatra committed Sep 15, 2023
1 parent 8c81484 commit 70bc17d
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@ if (Cypress.env('SECURITY_ENABLED') && Cypress.env('AGGREGATION_VIEW')) {
cy.contains('a', 'se*');
});

it('should check the saved objects by applying filter', () => {
CURRENT_TENANT.newTenant = 'global';
cy.visit(SAVED_OBJECTS_PATH);
cy.contains('a', 'Saved objects');

cy.get('span[title="Tenant"]').first().click({ force: true });
cy.get('span').contains('Private').click();
cy.contains('a', 's*');
cy.contains('a', 'se*').should('not.exist');

cy.wait(3000);

cy.get('span').contains('test').click();
cy.contains('a', 's*');
cy.contains('a', 'se*');
});

it('should login as test1 and check saved object', () =>{
CURRENT_TENANT.newTenant = 'private';
ADMIN_AUTH.newUser = userName1;
Expand Down

0 comments on commit 70bc17d

Please sign in to comment.