From 2685489ff41e946394ab68ae5c20cc643e9b5fa7 Mon Sep 17 00:00:00 2001 From: Gina Contrino Date: Wed, 21 Feb 2018 12:41:25 +0100 Subject: [PATCH] Add e2e test for saved accounts --- test/e2e/savedAccounts.feature | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/test/e2e/savedAccounts.feature b/test/e2e/savedAccounts.feature index 7e56c1faf0..2fff56d520 100644 --- a/test/e2e/savedAccounts.feature +++ b/test/e2e/savedAccounts.feature @@ -1,6 +1,6 @@ Feature: Saved Accounts Scenario: should save account locally, after page reload it should require passphrase to do the first transaction, and remember the passphrase for next transactions - When I go to "main/add-account/" + When I go to "/" Given I'm logged in as "genesis" When I wait 1 seconds And I refresh the page @@ -45,3 +45,25 @@ Feature: Saved Accounts And I click "remove button" And I click "edit button" Then I should see 1 instances of "saved account card" + + Scenario: should save accounts only once + When I go to "/" + And I fill in passphrase of "empty account" to "passphrase" field + And I click "login button" + Then I should be logged in as "empty account" account + When I click "saved accounts" in main menu + And I click "add lisk id card" + And I fill in passphrase of "genesis" to "passphrase" field + And I click "login button" + And I click "saved accounts" in main menu + Then I should see 2 instances of "saved account card" + When I click "add lisk id card" + And I fill in passphrase of "empty account" to "passphrase" field + And I click "login button" + When I click "saved accounts" in main menu + Then I should see 2 instances of "saved account card" + And I click "add lisk id card" + And I fill in passphrase of "genesis" to "passphrase" field + And I click "login button" + And I click "saved accounts" in main menu + Then I should see 2 instances of "saved account card"