-
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.
Co-authored-by: Michele F. <michele-franchi@users.noreply.github.com>
- Loading branch information
1 parent
faecd05
commit 0a8f912
Showing
31 changed files
with
981 additions
and
34 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
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,23 @@ | ||
import { defineConfig } from 'cypress' | ||
|
||
export default defineConfig({ | ||
env: { | ||
accountAddress: 'ak_gZ55FLJoGEfF5gJ2xJU7j9uSH3fEjoTZq3ygQG8gYA4no6GFW', | ||
contractAddress: 'ct_s5ZB6cGCqS5QbUboQBK8CWwpknKRSajrt8b1EQRp4t4R5D47e', | ||
microblockAddress: 'mh_27HKqcut9U9xDwEAf3Lz6evTxY4rfy7odKeSnQaqu45iQesjyj', | ||
nftAddress: 'ct_2UVjVLvt2NycqbfJWywixyYm68iVvkiVS9wubiQRjp9WeQtfpK', | ||
transactionAddress: 'th_2Yafj84tsuxskvJnzqGcvthrpDUX8gZE84RXVUwXvkSJxmxbc1', | ||
oracleAddress: 'ok_2w2Gkp9mwThn6jWdJi5Leuh3P5Zj7oJ6gyoHa8KnKzWwEVSnKf', | ||
tokenAddress: 'ct_2qyFRzXzTyPCtPKZQ32EPXqxxAcgiWqtADV3amcBVVPYQRKZm7', | ||
stateChannelAddress: 'ch_2Qo4r6u3Bq1ZMnPL7GpjLLsATaEgMK5BnYnoi68hzLL5QuKbev', | ||
name: 'testaensrawpointers.chain', | ||
keyblockId: '947025', | ||
}, | ||
e2e: { | ||
baseUrl: 'http://localhost:8080', | ||
experimentalRunAllSpecs: true, | ||
}, | ||
viewportWidth: 1280, | ||
viewportHeight: 720, | ||
defaultCommandTimeout: 30000, | ||
}) |
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,17 @@ | ||
describe('account detail', () => { | ||
it('should display account detail', () => { | ||
cy.visit(`/accounts/${Cypress.env('accountAddress')}`) | ||
|
||
cy.get('.account-details-panel').should('be.visible') | ||
cy.get('.account-activities-panel table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Transactions').click() | ||
cy.get('.account-transactions-panel table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'AENS Names').click() | ||
cy.get('.account-names-panel table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Tokens').click() | ||
cy.get('.account-tokens-panel table').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,15 @@ | ||
describe('contract detail', () => { | ||
it('should display contract detail', () => { | ||
cy.visit(`/contracts/${Cypress.env('contractAddress')}`) | ||
|
||
cy.get('.contract-details-panel').should('be.visible') | ||
cy.get('.contract-call-transactions-panel table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Events').click() | ||
cy.get('.contract-events-panel table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Contract').click() | ||
cy.get('.contract-verified-table').should('be.visible') | ||
cy.get('.code-editor').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,8 @@ | ||
describe('contracts', () => { | ||
it('should display contracts', () => { | ||
cy.visit('/contracts') | ||
|
||
cy.get('.contracts-table').should('be.visible') | ||
cy.get('.line-chart').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,12 @@ | ||
describe('homepage', () => { | ||
it('should display homepage', () => { | ||
cy.visit('/') | ||
|
||
cy.get('.stats-panel').should('be.visible') | ||
cy.get('.dashboard-state-channels-panel table').should('be.visible') | ||
cy.get('.dashboard-auctions-panel table').should('be.visible') | ||
cy.get('.dashboard-names-panel table').should('be.visible') | ||
cy.get('.dashboard-keyblock-panel table').should('be.visible') | ||
cy.get('.search-bar').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,8 @@ | ||
describe('keyblock details', () => { | ||
it('should display keyblock detail', () => { | ||
cy.visit(`/keyblocks/${Cypress.env('keyblockId')}`) | ||
|
||
cy.get('.keyblock-details-panel__controls').should('be.visible') | ||
cy.get('.keyblock-microblock-panel').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,8 @@ | ||
describe('microblock details', () => { | ||
it('should display microblock detail', () => { | ||
cy.visit(`/microblocks/${Cypress.env('microblockAddress')}`) | ||
|
||
cy.get('.microblock-details-panel table').should('be.visible') | ||
cy.get('.microblock-transactions-panel table').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,9 @@ | ||
describe('name detail', () => { | ||
it('should display name detail', () => { | ||
cy.visit(`/names/${Cypress.env('name')}`) | ||
|
||
cy.get('.name-details-panel').should('be.visible') | ||
cy.get('.name-pointers-special-panel table').should('be.visible') | ||
cy.get('.name-history-panel table').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,14 @@ | ||
describe('names', () => { | ||
it('should display names', () => { | ||
cy.visit('/names') | ||
|
||
cy.get('.line-chart').should('be.visible') | ||
cy.get('.names-active-table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'In Auction').click() | ||
cy.get('.names-in-auction-table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Expired').click() | ||
cy.get('.names-expired-table').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('nft detail', () => { | ||
it('should display nft detail', () => { | ||
cy.visit(`/nfts/${Cypress.env('nftAddress')}`) | ||
|
||
cy.get('.nfts-details-panel table').should('be.visible') | ||
cy.get('.nfts-transfers-table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Inventory').click() | ||
cy.get('.nfts-owners-panel__table').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,7 @@ | ||
describe('nfts', () => { | ||
it('should display nfts', () => { | ||
cy.visit('/nfts') | ||
|
||
cy.get('.nfts-table').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,8 @@ | ||
describe('oracle detail', () => { | ||
it('should display oracle detail', () => { | ||
cy.visit(`/oracles/${Cypress.env('oracleAddress')}`) | ||
|
||
cy.get('.oracle-details-panel table').should('be.visible') | ||
cy.get('.oracle-events-panel table').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,7 @@ | ||
describe('oracles', () => { | ||
it('should display oracles', () => { | ||
cy.visit('/oracles') | ||
|
||
cy.get('.oracles-table').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,19 @@ | ||
describe('search', () => { | ||
it('should display search', () => { | ||
cy.visit('/') | ||
|
||
// loading waiting workaround | ||
cy.get('.stats-panel').should('be.visible') | ||
|
||
cy.get('.search-bar__input').type('c') | ||
cy.get('.search-bar__submit').click() | ||
|
||
cy.get('.search-names-table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Tokens').click() | ||
cy.get('.search-tokens-table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'NFTs').click() | ||
cy.get('.search-nfts-table').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,8 @@ | ||
describe('state channel detail', () => { | ||
it('should display state channel detail', () => { | ||
cy.visit(`/state-channels/${Cypress.env('stateChannelAddress')}`) | ||
|
||
cy.get('.state-channel-details-panel table').should('be.visible') | ||
cy.get('.state-channel-transactions-panel table').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,7 @@ | ||
describe('state channels', () => { | ||
it('should display oracles', () => { | ||
cy.visit('/state-channels') | ||
|
||
cy.get('.state-channels-table').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('token detail', () => { | ||
it('should display token detail', () => { | ||
cy.visit(`/tokens/${Cypress.env('tokenAddress')}`) | ||
|
||
cy.get('.token-details-panel table').should('be.visible') | ||
cy.get('.token-holders-panel table').should('be.visible') | ||
|
||
cy.contains('.tabs__item', 'Events').click() | ||
cy.get('.token-events-panel table').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,7 @@ | ||
describe('tokens', () => { | ||
it('should display tokens', () => { | ||
cy.visit('/tokens') | ||
|
||
cy.get('.tokens-panel').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,8 @@ | ||
describe('transaction detail', () => { | ||
it('transaction detail', () => { | ||
cy.visit(`/transactions/${Cypress.env('transactionAddress')}`) | ||
|
||
cy.get('.transaction-general-panel table').should('be.visible') | ||
cy.get('.transaction-type-panel table').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,9 @@ | ||
describe('transactions', () => { | ||
it('should display transactions', () => { | ||
cy.visit('/transactions') | ||
|
||
cy.get('.transactions-table').should('be.visible') | ||
cy.get('.line-chart').should('be.visible') | ||
cy.get('.transaction-statistics__panel').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,5 @@ | ||
{ | ||
"name": "Using fixtures to represent data", | ||
"email": "hello@cypress.io", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} |
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,37 @@ | ||
/// <reference types="cypress" /> | ||
// *********************************************** | ||
// This example commands.ts shows you how to | ||
// create various custom commands and overwrite | ||
// existing commands. | ||
// | ||
// For more comprehensive examples of custom | ||
// commands please read more here: | ||
// https://on.cypress.io/custom-commands | ||
// *********************************************** | ||
// | ||
// | ||
// -- This is a parent command -- | ||
// Cypress.Commands.add('login', (email, password) => { ... }) | ||
// | ||
// | ||
// -- This is a child command -- | ||
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This is a dual command -- | ||
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This will overwrite an existing command -- | ||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) | ||
// | ||
// declare global { | ||
// namespace Cypress { | ||
// interface Chainable { | ||
// login(email: string, password: string): Chainable<void> | ||
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element> | ||
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element> | ||
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element> | ||
// } | ||
// } | ||
// } |
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,20 @@ | ||
// *********************************************************** | ||
// This example support/e2e.ts is processed and | ||
// loaded automatically before your test files. | ||
// | ||
// This is a great place to put global configuration and | ||
// behavior that modifies Cypress. | ||
// | ||
// You can change the location of this file or turn off | ||
// automatically serving support files with the | ||
// 'supportFile' configuration option. | ||
// | ||
// You can read more here: | ||
// https://on.cypress.io/configuration | ||
// *********************************************************** | ||
|
||
// Import commands.js using ES2015 syntax: | ||
import './commands' | ||
|
||
// Alternatively you can use CommonJS syntax: | ||
// require('./commands') |
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
Oops, something went wrong.