Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.4.0' into 1210-update-dependencies-to-latest
- Loading branch information
Showing
43 changed files
with
647 additions
and
1,188 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
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 was deleted.
Oops, something went wrong.
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,8 @@ | ||
{ | ||
"plugins": [ | ||
"cypress" | ||
], | ||
"env": { | ||
"cypress/globals": true | ||
} | ||
} |
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 @@ | ||
{ | ||
"baseUrl": "http://localhost:8080/#/", | ||
"viewportWidth": 1500, | ||
"viewportHeight": 1000, | ||
"projectId": "1it63b", | ||
"video": true, | ||
"env": { | ||
"coreUrl": "http://localhost:4000" | ||
}, | ||
"integrationFolder": "./e2e", | ||
"fixturesFolder": "./fixtures", | ||
"pluginsFile": "./plugins/index.js", | ||
"screenshotsFolder": "./screenshots", | ||
"supportFile": "./support/index.js", | ||
"videosFolder": "./videos", | ||
"trashAssetsBeforeRuns": true | ||
} |
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,43 @@ | ||
import accounts from '../../../constants/accounts'; | ||
|
||
describe('Explorer page', () => { | ||
it('should show search results on custom node for an account and a transactions while being logged in', () => { | ||
cy.loginUI(accounts.genesis, 'dev'); | ||
cy.get('#autosuggest-input').click().type('15610359283786884938L{enter}'); | ||
cy.get('.empty-message').should('have.text', 'No activity yet'); | ||
cy.get('.autosuggest-btn-close').click(); | ||
cy.get('#autosuggest-input').click().type('16313739661670634666L{enter}'); | ||
cy.url().should('contains', '/explorer/accounts/16313739661670634666L'); | ||
cy.get('.transactions-row').should('have.length', 25); | ||
cy.get('.send-to-address').click(); | ||
cy.get('#autosuggest-input').click().type('16313739661670634666L'); | ||
cy.get('.home-link').click(); | ||
cy.get('.autosuggest-btn-close').click(); | ||
cy.get('#autosuggest-input').click().type('9938914350729699234{enter}'); | ||
cy.get('.empty-message').should('have.text', 'No results'); | ||
cy.get('.autosuggest-btn-close').click(); | ||
cy.get('#autosuggest-input').click().type('1465651642158264047'); | ||
cy.get('.transactions-result').click(); | ||
cy.get('.transaction-id .copy-title').should('have.text', '1465651642158264047'); | ||
}); | ||
|
||
it('should show added voters in "voted delegate" transaction type while being logged in', () => { | ||
cy.loginUI(accounts.genesis, 'dev'); | ||
cy.get('#autosuggest-input').click().type('18294919898268153226'); | ||
cy.get('.transactions-result').click(); | ||
cy.get('.voter-address').should('have.length', 33); | ||
cy.get('.home-link').click(); | ||
cy.get('.autosuggest-btn-close').click(); | ||
cy.get('#autosuggest-input').click().type('2581762640681118072L'); | ||
cy.get('.addresses-result').click(); | ||
cy.get('.delegate-statistics').click(); | ||
cy.get('.votersFilterQuery-row').should('have.length', 2); | ||
cy.get('.home-link').click(); | ||
cy.get('.autosuggest-btn-close').click(); | ||
cy.get('#autosuggest-input').click().type('4401082358022424760L'); | ||
cy.get('.addresses-result').click(); | ||
cy.wait(3000); | ||
cy.get('.delegate-statistics').click(); | ||
cy.get('.votesFilterQuery-row').should('have.length', 10); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
test/cypress/e2e/ex-protractor-cucumber/followedAccount.spec.js
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,25 @@ | ||
import accounts from '../../../constants/accounts'; | ||
|
||
describe('Followed accounts', () => { | ||
it('should add a followed account to list', () => { | ||
cy.loginUI(accounts.genesis, 'dev'); | ||
cy.get('.followed-account').should('have.length', 0); | ||
cy.get('.add-account-button').click(); | ||
cy.get('.address input').click().type('94495548317450502L'); | ||
cy.get('.next').click(); | ||
cy.get('.next').click(); | ||
cy.get('.followed-account').should('have.length', 1); | ||
cy.get('.account-title input').should('have.value', '94495548317450502L'); | ||
cy.get('.edit-accounts').click(); | ||
cy.get('.account-title input').clear().type('Bob'); | ||
cy.get('.edit-accounts').click(); | ||
cy.get('.account-title input').should('have.value', 'Bob'); | ||
cy.get('.followed-account').click(); | ||
cy.url().should('include', '/explorer/accounts/94495548317450502L'); | ||
cy.get('.account-title').should('have.text', 'Bob'); | ||
cy.visit('/dashboard'); | ||
cy.get('.edit-accounts').click(); | ||
cy.get('.remove-account').click(); | ||
cy.get('.followed-account').should('have.length', 0); | ||
}); | ||
}); |
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,44 @@ | ||
import accounts from '../../../constants/accounts'; | ||
|
||
describe('Login', () => { | ||
it('should allow to login to Testnet through network options launch protocol', () => { | ||
cy.visit('/'); | ||
cy.get('.network').should('have.length', 0); | ||
cy.visit('/setting'); | ||
cy.get('.showNetwork').click(); | ||
cy.visit('/'); | ||
cy.get('.network').click(); | ||
cy.get('ul li').eq(2).click(); | ||
cy.get('.passphrase input').click(); | ||
cy.get('.passphrase input').each(($el, index) => { | ||
const passphraseWordsArray = accounts.genesis.passphrase.split(' '); | ||
cy.wrap($el).type(passphraseWordsArray[index]); | ||
}); | ||
cy.get('.login-button').click(); | ||
cy.get('.account-information-address .copy-title').should('have.text', accounts.genesis.address); | ||
cy.get('.network-status').should('have.text', 'Connected to testnet'); | ||
cy.get('.main-tabs #transactions').click(); | ||
cy.get('.transactions-row').should('have.length', 25); | ||
}); | ||
|
||
it('should allow to login to Custom node through network options launch protocol', () => { | ||
cy.visit('/'); | ||
cy.get('.network').should('have.length', 0); | ||
cy.visit('/setting'); | ||
cy.get('.showNetwork').click(); | ||
cy.visit('/'); | ||
cy.get('.network').click(); | ||
cy.get('ul li').eq(3).click(); | ||
cy.get('.address input').type('https://testnet.lisk.io'); | ||
cy.get('.passphrase input').click(); | ||
cy.get('.passphrase input').each(($el, index) => { | ||
const passphraseWordsArray = accounts.genesis.passphrase.split(' '); | ||
cy.wrap($el).type(passphraseWordsArray[index]); | ||
}); | ||
cy.get('.login-button').click(); | ||
cy.get('.account-information-address .copy-title').should('have.text', accounts.genesis.address); | ||
cy.get('.network-status').should('have.text', 'Connected to testnet'); | ||
cy.get('.main-tabs #transactions').click(); | ||
cy.get('.transactions-row').should('have.length', 25); | ||
}); | ||
}); |
69 changes: 69 additions & 0 deletions
69
test/cypress/e2e/ex-protractor-cucumber/onboarding.spec.js
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,69 @@ | ||
import accounts from '../../../constants/accounts'; | ||
|
||
beforeEach(() => { | ||
cy.addLocalStorage('settings', 'onBoarding', true); | ||
}); | ||
|
||
describe('Onboarding', () => { | ||
it('should not start onboarding when not logged in', () => { | ||
cy.visit('/'); | ||
cy.wait(1000); | ||
cy.get('.joyride-tooltip__header').should('have.length', 0); | ||
}); | ||
|
||
it('should start onboarding automatically', () => { | ||
cy.loginUI(accounts.genesis, 'main'); | ||
cy.wait(2000); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Welcome to Lisk Hub'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Lisk ID'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Explore the network'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Keep the overview'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Send LSK'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Manage your application'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Access extra features'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'You’ve completed the tour!'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.length', 0); | ||
cy.visit('/setting'); | ||
cy.get('.advancedMode'); | ||
cy.visit('/help'); | ||
cy.get('.help-onboarding').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Welcome to Lisk Hub'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Lisk ID'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Explore the network'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Keep the overview'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Send LSK'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Manage your application'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Access extra features'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'You’ve completed the tour!'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.length', 0); | ||
cy.reload(); | ||
cy.loginUI(accounts.genesis, 'main'); | ||
cy.get('.joyride-tooltip__header').should('have.length', 0); | ||
cy.visit('/help'); | ||
cy.get('.help-onboarding').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Welcome to Lisk Hub'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Lisk ID'); | ||
cy.get('.joyride-tooltip__button--primary').click(); | ||
cy.get('.joyride-tooltip__button--skip').click(); | ||
cy.get('.joyride-tooltip__header').should('have.text', 'Onboarding whenever you need'); | ||
cy.get('.joyride-tooltip__button--skip').click(); | ||
cy.get('.joyride-tooltip__header').should('have.length', 0); | ||
}); | ||
}); |
Oops, something went wrong.