Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e search tokens #138

Merged
merged 9 commits into from
Sep 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 46 additions & 6 deletions test/e2e/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,50 @@ module.exports = {
addToken: {
title: By.className('page-subtitle'),
titleText: 'Add Token',
fields: {
contractAddress: By.id('token-address'),
tokenSymbol: By.id('token_symbol'),
decimals: By.id('token_decimals'),
tab: {
custom: By.className('inactiveForm pointer'),
search: By.className('inactiveForm pointer'),
},
search: {
fieldSearch: By.id('search-tokens'),
results: By.className('token-list__token-data'),
token: {
unselected: By.className('token-list__token'),
selected: By.className('token-list__token token-list__token--selected'),
name: By.className('token-list__token-name'),
icon: By.className('token-list__token-icon'),
},
button: {
next: By.css('#app-content > div > div.app-primary.from-right > div > div:nth-child(3) > div.page-container__footer > div > button:nth-child(2)'),
cancel: By.className('btn-violet'),
},
confirm: {
label: By.className('confirm-label'),
labelText: By.className('Would you like to add these tokens?'),
button: {
add: By.className('btn-primary'),
cancel: By.className('btn-default btn-violet'),
},
token: {
item: By.className('confirm-add-token__token-list-item'),
balance: By.className('confirm-add-token__balance'),
name: By.className('confirm-add-token__name'),
icon: By.className('confirm-add-token__token-icon identicon'),
},
},
},
buttonAdd: By.css('.flex-space-around > button:nth-child(7)'),
custom:
{
fields: {
contractAddress: By.id('token-address'),
tokenSymbol: By.id('token_symbol'),
decimals: By.id('token_decimals'),
},
buttons: {
add: By.css('#app-content > div > div.app-primary.from-right > div > div.flex-column.flex-justify-center.flex-grow.select-none > div > div:nth-child(7) > button:nth-child(2)'),
cancel: By.className('btn-violet'),
},
},

},
deleteCustomRPC: {
Expand Down Expand Up @@ -130,6 +168,7 @@ module.exports = {
},
},
main: {
identicon: By.className('identicon-wrapper select-none'),
accountName: By.className('sizing-input'),
edit: By.className('edit-text'),
iconCopy: By.className('clipboard cursor-pointer white'),
Expand All @@ -150,13 +189,14 @@ module.exports = {
tokens: {
remove: By.className('trash'),
menu: By.className('inactiveForm pointer'),
token: By.css('#app-content > div > div.app-primary.from-left > div > section > div.full-flex-height > ol > li'),
token: By.className('token-cell'),
balance: By.css('#app-content > div > div.app-primary.from-left > div > section > div.full-flex-height > ol > li:nth-child(2) > h3'),
amount: By.css('#app-content > div > div.app-primary.from-left > div > section > div.full-flex-height > div > span'),
textNoTokens: 'No tokens found',
textYouOwn1token: 'You own 1 token',
buttonAdd: By.css('div.full-flex-height:nth-child(2) > div:nth-child(1) > button:nth-child(2)'),
buttonAddText: 'Add Token',
counter: By.css('#app-content > div > div.app-primary.from-left > div > section > div.full-flex-height > div > span'),
},
},
info: {
Expand Down
Loading