-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISPN-16580 Display aliases in caches
* Includes IT test
- Loading branch information
Showing
13 changed files
with
130 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
describe('Data Container Caches', () => { | ||
beforeEach(() => { | ||
cy.login(Cypress.env('username'), Cypress.env('password')); | ||
}); | ||
|
||
it('successfully add / update / remove an alias', () => { | ||
cy.get('[data-cy=actions-default]').click(); | ||
cy.get('[aria-label=updateAliasesCacheAction]').click(); | ||
cy.get('[data-cy=updateAliasesCacheModal]').should('exist'); | ||
cy.get('#updateAliasesCacheModal [aria-label=Close]').click(); //Closing modal with close button | ||
cy.get('[data-cy=updateAliasesCacheModal]').should('not.exist'); | ||
|
||
cy.get('[data-cy=actions-default]').click(); | ||
cy.get('[aria-label=updateAliasesCacheAction]').click(); | ||
cy.get('[data-cy=updateAliasesCacheModal]').should('exist'); | ||
cy.get('[data-cy=closeAction]').click(); //Closing modal with Close button | ||
cy.get('[data-cy=updateAliasesCacheModal]').should('not.exist'); | ||
cy.get('[data-cy=actions-default]').click(); | ||
cy.get('[aria-label=updateAliasesCacheAction]').click(); | ||
// add aliases | ||
cy.get('[data-cy=menu-toogle-aliasesSelector]') | ||
.click().type('alias1') | ||
.type('{enter}'); | ||
cy.get('[data-cy=updateAliasesButton]').click(); //Update aliases | ||
cy.get('[data-cy=closeAction]').click(); //Closing modal with Close button | ||
cy.contains('alias1'); | ||
|
||
// Check detail has aliases | ||
cy.login(Cypress.env('username'), Cypress.env('password'), '/cache/default'); | ||
cy.contains('Aliases'); | ||
cy.contains('alias1'); | ||
cy.login(Cypress.env('username'), Cypress.env('password')); | ||
|
||
cy.get('[data-cy=actions-default]').click(); | ||
cy.get('[aria-label=updateAliasesCacheAction]').click(); | ||
// add aliases | ||
cy.get('[data-cy=menu-toogle-aliasesSelector]') | ||
.click().type('alias1') | ||
.type('{enter}'); | ||
cy.get('[data-cy=updateAliasesButton]').click(); //Update aliases | ||
cy.get('[data-cy=closeAction]').click(); //Closing modal with Close button | ||
cy.contains('alias1').should('not.exist'); | ||
cy.contains('Success alert:Cache default successfully updated.'); | ||
|
||
// Check detail has aliases | ||
cy.login(Cypress.env('username'), Cypress.env('password'), '/cache/default'); | ||
cy.contains('Aliases').should('not.exist'); | ||
cy.contains('alias1').should('not.exist'); | ||
cy.login(Cypress.env('username'), Cypress.env('password')); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters