aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e
diff options
context:
space:
mode:
authorChristopher Cooper <christopher.c.cooper@gmail.com>2019-08-02 20:36:31 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-08-02 20:36:31 +0800
commitb7eae4ba80e06f1d2069575d9b96dae66ea4496f (patch)
tree5de1326a5e7c5a1e8c2be5ffc803677dd5a3a03e /test/e2e
parent3eff4787757ac22d0a469c91599cdcfd97a2a98c (diff)
downloadtangerine-wallet-browser-b7eae4ba80e06f1d2069575d9b96dae66ea4496f.tar.gz
tangerine-wallet-browser-b7eae4ba80e06f1d2069575d9b96dae66ea4496f.tar.zst
tangerine-wallet-browser-b7eae4ba80e06f1d2069575d9b96dae66ea4496f.zip
split AccountDetails into a separate component (#6943)
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/from-import-ui.spec.js14
-rw-r--r--test/e2e/metamask-ui.spec.js4
2 files changed, 9 insertions, 9 deletions
diff --git a/test/e2e/from-import-ui.spec.js b/test/e2e/from-import-ui.spec.js
index 82e811c86..e420f03ed 100644
--- a/test/e2e/from-import-ui.spec.js
+++ b/test/e2e/from-import-ui.spec.js
@@ -159,7 +159,7 @@ describe('Using MetaMask with an existing account', function () {
describe('Show account information', () => {
it('shows the correct account address', async () => {
- await driver.findElement(By.css('.wallet-view__details-button')).click()
+ await driver.findElement(By.css('.account-details__details-button')).click()
await driver.findElement(By.css('.qr-wrapper')).isDisplayed()
await delay(regularDelayMs)
@@ -171,7 +171,7 @@ describe('Using MetaMask with an existing account', function () {
})
it('shows a QR code for the account', async () => {
- await driver.findElement(By.css('.wallet-view__details-button')).click()
+ await driver.findElement(By.css('.account-details__details-button')).click()
await driver.findElement(By.css('.qr-wrapper')).isDisplayed()
const detailModal = await driver.findElement(By.css('span .modal'))
await delay(regularDelayMs)
@@ -232,7 +232,7 @@ describe('Using MetaMask with an existing account', function () {
})
it('should show the correct account name', async () => {
- const [accountName] = await findElements(driver, By.css('.account-name'))
+ const [accountName] = await findElements(driver, By.css('.account-details__account-name'))
assert.equal(await accountName.getText(), '2nd account')
await delay(regularDelayMs)
})
@@ -318,13 +318,13 @@ describe('Using MetaMask with an existing account', function () {
})
it('should show the correct account name', async () => {
- const [accountName] = await findElements(driver, By.css('.account-name'))
+ const [accountName] = await findElements(driver, By.css('.account-details__account-name'))
assert.equal(await accountName.getText(), 'Account 4')
await delay(regularDelayMs)
})
it('should show the imported label', async () => {
- const [importedLabel] = await findElements(driver, By.css('.wallet-view__keyring-label'))
+ const [importedLabel] = await findElements(driver, By.css('.account-details__keyring-label'))
assert.equal(await importedLabel.getText(), 'IMPORTED')
await delay(regularDelayMs)
})
@@ -350,7 +350,7 @@ describe('Using MetaMask with an existing account', function () {
})
it('should open the remove account modal', async () => {
- const [accountName] = await findElements(driver, By.css('.account-name'))
+ const [accountName] = await findElements(driver, By.css('.account-details__account-name'))
assert.equal(await accountName.getText(), 'Account 5')
await delay(regularDelayMs)
@@ -373,7 +373,7 @@ describe('Using MetaMask with an existing account', function () {
await delay(regularDelayMs)
- const [accountName] = await findElements(driver, By.css('.account-name'))
+ const [accountName] = await findElements(driver, By.css('.account-details__account-name'))
assert.equal(await accountName.getText(), 'Account 1')
await delay(regularDelayMs)
diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js
index 5c3e807fd..ef1ec6d47 100644
--- a/test/e2e/metamask-ui.spec.js
+++ b/test/e2e/metamask-ui.spec.js
@@ -221,7 +221,7 @@ describe('MetaMask', function () {
describe('Show account information', () => {
it('shows the QR code for the account', async () => {
- await driver.findElement(By.css('.wallet-view__details-button')).click()
+ await driver.findElement(By.css('.account-details__details-button')).click()
await driver.findElement(By.css('.qr-wrapper')).isDisplayed()
await delay(regularDelayMs)
@@ -273,7 +273,7 @@ describe('MetaMask', function () {
})
it('should display correct account name', async () => {
- const accountName = await findElement(driver, By.css('.account-name'))
+ const accountName = await findElement(driver, By.css('.account-details__account-name'))
assert.equal(await accountName.getText(), '2nd account')
await delay(regularDelayMs)
})