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)

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

Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 authored Nov 3, 2022
1 parent 89b9c35 commit 37134e9
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 37134e9

Please sign in to comment.