From 3b3c08f5490b56e17e20248d12f61c8eabce4b52 Mon Sep 17 00:00:00 2001 From: Jernej Pregelj Date: Thu, 20 Jun 2019 11:15:56 +0200 Subject: [PATCH] remove faucet + target nile node --- cypress/integration/faucet.spec.js | 31 ----------------------------- cypress/integration/publish.spec.js | 2 +- cypress/integration/search.spec.js | 2 +- 3 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 cypress/integration/faucet.spec.js diff --git a/cypress/integration/faucet.spec.js b/cypress/integration/faucet.spec.js deleted file mode 100644 index 5695320..0000000 --- a/cypress/integration/faucet.spec.js +++ /dev/null @@ -1,31 +0,0 @@ -/// -import Web3 from 'web3' -import HDWalletProvider from 'truffle-hdwallet-provider' - -context('Faucet', () => { - before(() => { - cy.on('window:before:load', win => { - const provider = new HDWalletProvider( - 'taxi music thumb unique chat sand crew more leg another off lamp', - 'http://localhost:8545' - ) - win.web3 = new Web3(provider) - win.ethereum = win.web3 - }) - - cy.visit('http://localhost:3000/faucet') - // Wait for end of loading - cy.get('button', { timeout: 20000 }).should('have.length', 1) - }) - - it('Execute faucet call', () => { - // Execute call - cy.get('button') - .contains('Request Ether') - .click() - // Verify that we got response from server - cy.contains(/(Successfully added|Already requested)/, { - timeout: 60000 - }).should('be.visible') - }) -}) diff --git a/cypress/integration/publish.spec.js b/cypress/integration/publish.spec.js index d4e1287..486ba4f 100644 --- a/cypress/integration/publish.spec.js +++ b/cypress/integration/publish.spec.js @@ -7,7 +7,7 @@ context('Publish', () => { cy.on('window:before:load', win => { const provider = new HDWalletProvider( 'taxi music thumb unique chat sand crew more leg another off lamp', - 'http://localhost:8545' + 'https://nile.dev-ocean.com' ) win.web3 = new Web3(provider) win.ethereum = win.web3 diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 92397fd..d2dbcb3 100644 --- a/cypress/integration/search.spec.js +++ b/cypress/integration/search.spec.js @@ -7,7 +7,7 @@ context('Search', () => { cy.on('window:before:load', win => { const provider = new HDWalletProvider( 'taxi music thumb unique chat sand crew more leg another off lamp', - 'http://localhost:8545' + 'https://nile.dev-ocean.com' ) win.web3 = new Web3(provider) win.ethereum = win.web3