diff --git a/cypress/e2e/address/index.cy.ts b/cypress/e2e/address/index.cy.ts new file mode 100644 index 00000000..46152996 --- /dev/null +++ b/cypress/e2e/address/index.cy.ts @@ -0,0 +1,24 @@ +// import data from '../fixtures/address.json' + +describe('Address Page with Desktop', () => { + const HOST = 'http://localhost:3000/tx' + beforeEach(() => { + cy.viewport('macbook-13') + cy.visit(HOST) + }) + it('Render page with true data', () => {}) + it('Render page with false data, example null balance', () => {}) + it('Render page with false data, example ... (other fields)', () => {}) + + it('Link to block when click LastBalanceUpdated', () => {}) + + it('Render page with full transactions', () => {}) + it('Render page with empty transactions', () => {}) +}) +describe('Address Page with Mobile', () => { + const HOST = 'http://localhost:3000/tx' + beforeEach(() => { + cy.viewport('iphone-x') + cy.visit(HOST) + }) +}) diff --git a/cypress/e2e/address/tabs.cy.ts b/cypress/e2e/address/tabs.cy.ts new file mode 100644 index 00000000..acf05fcf --- /dev/null +++ b/cypress/e2e/address/tabs.cy.ts @@ -0,0 +1,14 @@ +describe('Render Address Detail Tab', () => { + const HOST = 'http://localhost:3000/tx' + beforeEach(() => { + cy.viewport('macbook-13') + cy.visit(HOST) + }) + + describe('render tab transactions', () => {}) + describe('render tab token transfers', () => {}) + describe('render tab tokens', () => {}) + describe('render tab internal tx', () => {}) + describe('render tab coin balance history', () => {}) + describe('render tab contract', () => {}) +}) diff --git a/cypress/e2e/block-detail.cy.ts b/cypress/e2e/block-detail.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/block.cy.ts b/cypress/e2e/block.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/holder-asa.cy.ts b/cypress/e2e/holder-asa.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/nft.cy.ts b/cypress/e2e/nft.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/search.cy.ts b/cypress/e2e/search.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/stats.cy.ts b/cypress/e2e/stats.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/token-all.cy.ts b/cypress/e2e/token-all.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/token.cy.ts b/cypress/e2e/token.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/tx-detail.cy.ts b/cypress/e2e/tx-detail.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/e2e/tx.cy.ts b/cypress/e2e/tx.cy.ts new file mode 100644 index 00000000..e69de29b diff --git a/cypress/fixtures/address.json b/cypress/fixtures/address.json new file mode 100644 index 00000000..7f142427 --- /dev/null +++ b/cypress/fixtures/address.json @@ -0,0 +1,8 @@ +{ + "success": { + "address": "" + }, + "errorX": { + "address": "" + } +} diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index 66da65f6..b2bdbd8e 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -4,7 +4,8 @@ "target": "es5", "lib": ["es5", "dom"], "types": ["cypress", "./support/index.d.ts"], - "isolatedModules": false + "isolatedModules": false, + "resolveJsonModule": true }, "include": ["**/*.ts"], "ts-node": {