-
Notifications
You must be signed in to change notification settings - Fork 36
/
OnboardingRestoreWallet.feature
executable file
·210 lines (192 loc) · 10.4 KB
/
OnboardingRestoreWallet.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
@OnboardingRestoreWallet @Onboarding @Testnet @Mainnet
Feature: Onboarding - Restore wallet
@LW-2457
Scenario: Restore Wallet - Mnemonic writedown page - next button
Given I click "Restore" button on wallet setup page
Then "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
And "Next" button is disabled during onboarding process
@LW-2459
Scenario: Restore Wallet - happy path to "Name your wallet" page
Given I click "Restore" button on wallet setup page
And I go to "Wallet setup" page from "Restore" wallet flow
And "Wallet setup" page is displayed
@LW-2460
Scenario: Restore Wallet - Mnemonic verification - fill all fields - wrong mnemonic
Given I click "Restore" button on wallet setup page
And I go to "Mnemonic verification" page from "Restore" wallet flow
When I add characters "asd" in word 7
Then "Next" button is disabled during onboarding process
@LW-2461
Scenario: Restore Wallet - Name your wallet - back button
Given I click "Restore" button on wallet setup page
And I go to "Wallet setup" page from "Restore" wallet flow
And "Wallet setup" page is displayed
When I click "Back" button during wallet setup
Then "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
@LW-2462 @Smoke
Scenario: Restore Wallet - Name your wallet - happy path to "Enter wallet step"
Given I click "Restore" button on wallet setup page
And I enter 24 correct mnemonic words on "Mnemonic verification" page
And I click "Next" button during wallet setup
And I enter wallet name: "ValidName", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A"
Then "Enter wallet" button is enabled
@LW-2977
Scenario Outline: Restore Wallet - Set password - Recommendation for password: <passw_err>, password: <password>, password confirmation: <password_conf>
Given I click "Restore" button on wallet setup page
And I go to "Wallet setup" page from "Restore" wallet flow and "not fill" values
When I enter wallet name: "wallet", password: "<password>" and password confirmation: "<password_conf>"
Then Password recommendation: "<passw_err>", complexity bar level: "<complex_bar_lvl>" and password confirmation error: "<passw_conf_err>" are displayed
Examples:
| password | password_conf | passw_err | complex_bar_lvl | passw_conf_err |
| a | | core.walletNameAndPasswordSetupStep.firstLevelPasswordStrengthFeedback | 1 | empty |
| P@ss | | core.walletNameAndPasswordSetupStep.firstLevelPasswordStrengthFeedback | 1 | empty |
| N_8J@bne | | core.walletNameAndPasswordSetupStep.secondLevelPasswordStrengthFeedback | 2 | empty |
| N_8J@bne87 | | empty | 3 | empty |
| N_8J@bne87A | N_8J@bne87 | empty | 4 | core.walletSetupRegisterStep.noMatchPassword |
@LW-2464
Scenario: Restore Wallet - All done page - happy path
Given I click "Restore" button on wallet setup page
And I go to "Wallet setup" page from "Restore" wallet flow
When I click "Enter wallet" button
Then I see LW homepage
@LW-3063
Scenario: Extended view - Settings - Analytics enabled/disabled when restoring a wallet
Given I click "Restore" button on wallet setup page
And I go to "Wallet setup" page from "Restore" wallet flow
When I click "Enter wallet" button
Then I see LW homepage
And I open settings from header menu
Then Analytics toggle is enabled: true
When I open settings from header menu
And I click on Remove wallet button
And I click "Remove wallet" button on "Remove wallet" modal
And I reject analytics banner on "Get started" page
Given I click "Restore" button on wallet setup page
And I go to "Wallet setup" page from "Restore" wallet flow
When I click "Enter wallet" button
Then I see LW homepage
And I open settings from header menu
Then Analytics toggle is enabled: false
@LW-2628
Scenario: Restore Wallet - autofill words
Given I click "Restore" button on wallet setup page
Then "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
When I fill mnemonic input with "s"
Then I see following autocomplete options:
| sad |
| saddle |
| sadness |
And I click header to lose focus
Then I do not see autocomplete options list
And I click on mnemonic input
Then I see following autocomplete options:
| sad |
| saddle |
| sadness |
When I fill mnemonic input with "se"
Then I see following autocomplete options:
| sea |
| search |
| season |
When I fill mnemonic input with "sef"
Then I do not see autocomplete options list
When I fill mnemonic input with "SE"
Then I see following autocomplete options:
| sea |
| search |
| season |
When I fill mnemonic input with "ą"
Then I do not see autocomplete options list
@LW-4612
Scenario: Restore Wallet - Mnemonic verification - mnemonic length limited to 10 characters - paste word exceeding the limit
Given I click "Restore" button on wallet setup page
And "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
When I fill mnemonic input with "abcdefghijklmnopqrstuvwxyz"
Then the mnemonic input contains the word "abcdefghij"
And the word in mnemonic input has only 10 characters
@LW-4613
Scenario: Restore Wallet - Mnemonic verification - mnemonic length limited to 10 characters - add letter to mnemonic to exceed the limit
Given I click "Restore" button on wallet setup page
And "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
When I fill mnemonic input with "abcdefghij"
And I add characters "x" in word 0
Then the mnemonic input contains the word "abcdefghij"
And the word in mnemonic input has only 10 characters
@LW-4546 @LW-4549
Scenario Outline: Restore wallet - Limit the wallet name input - Realtime error when inputs name with size of <value> character
Given I click "Restore" button on wallet setup page
And I go to "Wallet setup" page from "Restore" wallet flow
When I enter wallet name with size of: <value> characters
Then wallet name error "core.walletSetupRegisterStep.nameMaxLength" <is_displayed> displayed
And "Next" button is <is_disabled> during onboarding process
Examples:
| value | is_displayed | is_disabled |
| 20 | is not | enabled |
| 21 | is | disabled |
@LW-4743
Scenario: Restore wallet - Enter button support
Given I click "Restore" button on wallet setup page
And I go to "Mnemonic verification" page from "Restore" wallet flow
When I press keyboard Enter button
And "Wallet setup" page is displayed
And I enter wallet name: "ValidName", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A"
When I press keyboard Enter button
Then I see LW homepage
@LW-5835
Scenario: Restore Wallet - "Recovery phrase page" displayed
Given I click "Restore" button on wallet setup page
And I go to "Mnemonic verification" page from "Restore" wallet flow and "not fill" values
Then "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
@LW-5842
Scenario: Restore Wallet - "Recovery phrase length page" back button
Given I click "Restore" button on wallet setup page
And I go to "Mnemonic verification" page from "Restore" wallet flow and "not fill" values
Then "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
When I click "Back" button during wallet setup
Then "Get started" page is displayed
@LW-6080 @LW-5839 @LW-5838
Scenario Outline: Restore Wallet - "Recovery phrase length page" restore <mnemonicLength> words happy path
Given I click "Restore" button on wallet setup page
And I select <mnemonicLength> word passphrase length
Then "Mnemonic verification" page is displayed from "Restore wallet" flow with <mnemonicLength> words
When I enter <mnemonicLength> correct mnemonic words on "Mnemonic verification" page
And I click "Next" button during wallet setup
When I enter wallet name: "ValidName", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A"
Then "Enter wallet" button is enabled
When I click "Enter wallet" button
Then I see LW homepage
Examples:
| mnemonicLength |
| 15 |
| 12 |
@LW-6081
Scenario Outline: Restore Wallet - error message is displayed for <mnemonicLength> passphrase length
Given I click "Restore" button on wallet setup page
And "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
And I select <mnemonicLength> word passphrase length
When I enter <mnemonicLength> incorrect mnemonic words on "Mnemonic verification" page
Then I see incorrect passphrase error displayed
Examples:
| mnemonicLength |
| 12 |
| 15 |
| 24 |
@LW-4993
Scenario Outline: Restore Wallet - <mode> theme applied to onboarding pages
Given I set <mode> theme mode in Local Storage
When "Get started" page is displayed
Then I see current onboarding page in <mode> mode
And I click "Restore" button on wallet setup page
When "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words
Then I see current onboarding page in <mode> mode
And I enter 24 correct mnemonic words on "Mnemonic verification" page
And I click "Next" button during wallet setup
When "Wallet setup" page is displayed
Then I see current onboarding page in <mode> mode
When I enter wallet name: "someWallet", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A"
And "Enter wallet" button is enabled
Then I see current onboarding page in <mode> mode
Examples:
| mode |
| dark |
| light |