-
Notifications
You must be signed in to change notification settings - Fork 327
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
π©Ή [QAA-304] Adding check for operation history when adding an account #8168
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ 5 Skipped Deployments
|
@@ -9,14 +9,17 @@ export class PortfolioPage extends AppPage { | |||
private swapEntryButton = this.page.getByTestId("swap-entry-button"); | |||
private stakeEntryButton = this.page.getByTestId("stake-entry-button"); | |||
private chart = this.page.getByTestId("chart-container"); | |||
private operationList = this.page.locator("id=operation-list"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you replace by #operation-list
please?
8277391
to
842b8ca
Compare
@@ -50,6 +50,7 @@ for (const currency of currencies) { | |||
if (currency.currency.name !== Currency.TON.name) { | |||
await app.layout.expectBalanceVisibility(); | |||
} | |||
await app.portfolio.opperationHistory(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small typo 2 "p"
async scrollToOperations() { | ||
await this.page.waitForTimeout(500); | ||
const operationList = this.page.locator("id=operation-list"); | ||
await operationList.scrollIntoViewIfNeeded(); | ||
} | ||
|
||
@step("check operation history") | ||
async opperationHistory() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you rename method to something like checkOperationsHistory
please?
@@ -81,9 +84,24 @@ export class PortfolioPage extends AppPage { | |||
await assetRowLocator.click(); | |||
} | |||
|
|||
@step("Scroll to operations") | |||
async scrollToOperations() { | |||
await this.page.waitForTimeout(500); | |||
const operationList = this.page.locator("id=operation-list"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might make sense to use this locator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that's legacy code used for mocked test. I didn't touch it but I can do the update :)
β Checklist
npx changeset
was attached.π Description
Adding minor check on Add account
β Context
π§ Checklist for the PR Reviewers