Skip to content

Commit

Permalink
Fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
OKendigelyan committed Sep 25, 2024
1 parent d91a8b5 commit d7f1d41
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions apps/desktop-e2e/src/features/multisig.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Feature: Multisig Account Creation

Scenario: User creates a multisig account
Given I have account
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | 12345678 |
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | Qwerty123123!23vcxz |
And I am on an Accounts page

When I am creating a multisig account
Expand All @@ -25,7 +25,7 @@ Feature: Multisig Account Creation
| Approvers | Alice,tz1gUNyn3hmnEWqkusWPzxRaon1cs7ndWh7h |
| Min No. of approvals | 1 |

When I sign transaction with password "12345678"
When I sign transaction with password "Qwerty123123!23vcxz"
Then I see "Operation Submitted" modal

And I close modal
Expand Down
16 changes: 8 additions & 8 deletions apps/desktop-e2e/src/features/onboarding.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Feature: User Onboarding
When I click "Continue" button
Then I am on "Umami Master Password" onboarding page

When I fill "Password" with "12345678"
And I fill "Confirm Password" with "12345678"
When I fill "Password" with "Qwerty123123!23vcxz"
And I fill "Confirm Password" with "Qwerty123123!23vcxz"
And I click "Submit" button
Then I am on an Accounts page
And I see a toast "Account successfully created!"
Expand Down Expand Up @@ -76,8 +76,8 @@ Feature: User Onboarding
When I click "Continue" button
Then I am on "Umami Master Password" onboarding page

When I fill "Password" with "12345678"
And I fill "Confirm Password" with "12345678"
When I fill "Password" with "Qwerty123123!23vcxz"
And I fill "Confirm Password" with "Qwerty123123!23vcxz"
And I click "Submit" button
Then I am on an Accounts page
And I see a toast "Account successfully created!"
Expand Down Expand Up @@ -119,8 +119,8 @@ Feature: User Onboarding
When I click "Continue" button
Then I am on "Umami Master Password" onboarding page

When I fill "Password" with "12345678"
And I fill "Confirm Password" with "12345678"
When I fill "Password" with "Qwerty123123!23vcxz"
And I fill "Confirm Password" with "Qwerty123123!23vcxz"
And I click "Submit" button
Then I am on an Accounts page
And I see a toast "Account successfully created!"
Expand Down Expand Up @@ -158,8 +158,8 @@ Feature: User Onboarding
When I click "Continue" button
Then I am on "Umami Master Password" onboarding page

When I fill "Password" with "12345678"
And I fill "Confirm Password" with "12345678"
When I fill "Password" with "Qwerty123123!23vcxz"
And I fill "Confirm Password" with "Qwerty123123!23vcxz"
And I click "Submit" button
Then I am on an Accounts page
And I see a toast "Account successfully created!"
Expand Down
12 changes: 6 additions & 6 deletions apps/desktop-e2e/src/features/staking.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Feature: Staking
# stake - unstake - finalize unstake
Scenario: I delegate to a baker
Given I have account
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | 12345678 |
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | Qwerty123123!23vcxz |
And I am on an Accounts page
When I open account drawer for "Alice"
And I delegate to "baker1"
Expand All @@ -23,8 +23,8 @@ Feature: Staking

Scenario: I undelegate
Given I have account
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | 12345678 |
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | Qwerty123123!23vcxz |
And I am on an Accounts page
When I open account drawer for "Alice"
And I delegate to "baker1"
Expand All @@ -44,8 +44,8 @@ Feature: Staking

Scenario: I stake to a baker
Given I have account
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | 12345678 |
| type | label | secretKey | password |
| secret_key | Alice | edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq | Qwerty123123!23vcxz |
And I am on an Accounts page
Given baker "baker1" sets delegation parameters
| limit-of-staking-over-baking | 5 |
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop-e2e/src/features/updates.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Feature: Automatic updates

Scenario: My account has been topped-up
Given I have account
| type | label | password | secretKey |
| secret_key | Account 1 | 12345678 | spsk2jm29sHC99HDi64VBpSwEMZRQ7WfHdvQPVMZCkyWyR4spBrtRW |
| type | label | password | secretKey |
| secret_key | Account 1 | Qwerty123123!23vcxz | spsk2jm29sHC99HDi64VBpSwEMZRQ7WfHdvQPVMZCkyWyR4spBrtRW |
And I am on an Accounts page
When "Account 1" is topped-up with "1.123"
And I wait until the next refetch
Expand Down
6 changes: 3 additions & 3 deletions apps/desktop-e2e/src/pages/AccountDrawerPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class AccountDrawerPage {

await this.page.getByRole("button", { name: "Preview" }).click();

await new SignPage(this.page, "12345678").sign();
await new SignPage(this.page, "Qwerty123123!23vcxz").sign();
}

getRoundButton(buttonName: string): Locator {
Expand All @@ -46,7 +46,7 @@ export class AccountDrawerPage {

await this.page.getByRole("button", { name: "Preview" }).click();

await new SignPage(this.page, "12345678").sign();
await new SignPage(this.page, "Qwerty123123!23vcxz").sign();
}

async stake(amount: number): Promise<void> {
Expand All @@ -59,7 +59,7 @@ export class AccountDrawerPage {

await this.page.getByLabel("Enter Amount").fill(String(amount));
await this.page.getByRole("button", { name: "Preview" }).click();
await new SignPage(this.page, "12345678").sign();
await new SignPage(this.page, "Qwerty123123!23vcxz").sign();
}

async stakedBalance(): Promise<number> {
Expand Down

0 comments on commit d7f1d41

Please sign in to comment.