-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve e2e testing - charts (#974)
- Loading branch information
Showing
6 changed files
with
44 additions
and
4 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,27 @@ | ||
describe('charts', () => { | ||
it('should display transactions chart UI elements', () => { | ||
cy.visit('/charts/transactions') | ||
cy.get('.charts-navigation__link').should('be.visible') | ||
cy.get('.chart-controls__button').should('be.visible') | ||
cy.get('.range-picker').should('be.visible') | ||
cy.get('.transactions-chart-panel__select').should('be.visible') | ||
cy.get('.line-chart canvas').should('be.visible') | ||
cy.get('.chart-controls__button').should('be.visible') | ||
}) | ||
it('should display keyblock chart', () => { | ||
cy.visit('/charts/keyblocks') | ||
cy.get('.line-chart canvas').should('be.visible') | ||
}) | ||
it('should display contracts chart', () => { | ||
cy.visit('/charts/contracts') | ||
cy.get('.line-chart canvas').should('be.visible') | ||
}) | ||
it('should display names chart', () => { | ||
cy.visit('/charts/names') | ||
cy.get('.line-chart canvas').should('be.visible') | ||
}) | ||
it('should display difficulty', () => { | ||
cy.visit('/charts/difficulty') | ||
cy.get('.line-chart canvas').should('be.visible') | ||
}) | ||
}) |
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,11 @@ | ||
describe('contract verification', () => { | ||
it('should display contract verification page', () => { | ||
cy.visit('/contract-verification') | ||
|
||
cy.get('.contract-verification-form__select').should('be.visible') | ||
cy.get('.contract-verification-form__text-input').should('be.visible') | ||
cy.get('.contract-verification-form__submit').should('be.visible') | ||
cy.get('.contracts-file-upload__drop-area').should('be.visible') | ||
cy.get('#consent').should('be.visible') | ||
}) | ||
}) |
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