Skip to content
Snippets Groups Projects
Unverified Commit 405a92e9 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:white_check_mark: (e2e) improve stability of budget e2e tests (#845)

Sometimes the test failed because..


`parseFloat("1,234.55") === 1)`
parent 69140d62
No related branches found
No related tags found
No related merge requests found
...@@ -35,11 +35,13 @@ export class BudgetPage { ...@@ -35,11 +35,13 @@ export class BudgetPage {
async getBalanceForRow(idx) { async getBalanceForRow(idx) {
return Math.round( return Math.round(
parseFloat( parseFloat(
await this.budgetTable (
.getByTestId('row') await this.budgetTable
.nth(idx) .getByTestId('row')
.getByTestId('balance') .nth(idx)
.textContent(), .getByTestId('balance')
.textContent()
).replace(/,/g, ''),
) * 100, ) * 100,
); );
} }
......
---
category: Maintenance
authors: [MatissJanis]
---
Improve stability of budget e2e test file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment