@@ -25,28 +25,28 @@ test("Hide Token Null Value", async ({ page }) => {
2525 await accountsPage . navigateToAccountByName ( Account . ETH_2 . accountName ) ;
2626 await accountPage . scrollToOperations ( ) ;
2727
28- const mainAccountOperationRowNoValue = page . getByTestId (
28+ const mainAccountOperationRowNoValue = await accountPage . operationRowByTestId (
2929 "operation-row-mock_op_0_mock:1:ethereum:true_ethereum_1:" ,
3030 ) ;
3131 await expect ( mainAccountOperationRowNoValue ) . toBeVisible ( ) ;
3232 expect ( await mainAccountOperationRowNoValue . textContent ( ) ) . not . toContain ( "ETH" ) ;
3333
34- const mainAccountOperationWithValue = page . getByTestId (
34+ const mainAccountOperationWithValue = await accountPage . operationRowByTestId (
3535 "operation-row-mock_op_1_mock:1:ethereum:true_ethereum_1:" ,
3636 ) ;
3737 await expect ( mainAccountOperationWithValue ) . toBeVisible ( ) ;
3838 expect ( await mainAccountOperationWithValue . textContent ( ) ) . toContain ( "ETH" ) ;
3939
40- await page . getByTestId ( "token-row-USDC" ) . click ( ) ;
40+ await accountPage . navigateToToken ( "token-row-USDC" ) ;
4141 await accountPage . scrollToOperations ( ) ;
4242
43- const tokenAccountOperationRowNoValue = page . getByTestId (
43+ const tokenAccountOperationRowNoValue = await accountPage . operationRowByTestId (
4444 "operation-row-mock_op_0_mock:1:ethereum:true_ethereum_1:|1" ,
4545 ) ;
4646 await expect ( tokenAccountOperationRowNoValue ) . toBeVisible ( ) ;
4747 expect ( await tokenAccountOperationRowNoValue . textContent ( ) ) . not . toContain ( "USDC" ) ;
4848
49- const tokenAccountOperationRowWithValue = page . getByTestId (
49+ const tokenAccountOperationRowWithValue = await accountPage . operationRowByTestId (
5050 "operation-row-mock_op_1_mock:1:ethereum:true_ethereum_1:|1" ,
5151 ) ;
5252 await expect ( tokenAccountOperationRowWithValue ) . toBeVisible ( ) ;
@@ -62,26 +62,26 @@ test("Hide Token Null Value", async ({ page }) => {
6262 await accountsPage . navigateToAccountByName ( Account . ETH_2 . accountName ) ;
6363 await accountPage . scrollToOperations ( ) ;
6464
65- const mainAccountOperationRowNoValue = page . getByTestId (
65+ const mainAccountOperationRowNoValue = await accountPage . operationRowByTestId (
6666 "operation-row-mock_op_0_mock:1:ethereum:true_ethereum_1:" ,
6767 ) ;
6868 await expect ( mainAccountOperationRowNoValue ) . toBeVisible ( ) ;
6969 expect ( await mainAccountOperationRowNoValue . textContent ( ) ) . not . toContain ( "ETH" ) ;
7070
71- const mainAccountOperationWithValue = page . getByTestId (
71+ const mainAccountOperationWithValue = await accountPage . operationRowByTestId (
7272 "operation-row-mock_op_1_mock:1:ethereum:true_ethereum_1:" ,
7373 ) ;
7474 await expect ( mainAccountOperationWithValue ) . toBeVisible ( ) ;
7575 expect ( await mainAccountOperationWithValue . textContent ( ) ) . toContain ( "ETH" ) ;
7676
77- await page . getByTestId ( "token-row-USDC" ) . click ( ) ;
77+ await accountPage . navigateToToken ( "token-row-USDC" ) ;
7878 await accountPage . scrollToOperations ( ) ;
7979
8080 await expect (
8181 page . getByTestId ( "operation-row-mock_op_0_mock:1:ethereum:true_ethereum_1:|1" ) ,
8282 ) . toHaveCount ( 0 ) ;
8383
84- const tokenAccountOperationRowWithValue = page . getByTestId (
84+ const tokenAccountOperationRowWithValue = await accountPage . operationRowByTestId (
8585 "operation-row-mock_op_1_mock:1:ethereum:true_ethereum_1:|1" ,
8686 ) ;
8787 await expect ( tokenAccountOperationRowWithValue ) . toBeVisible ( ) ;
0 commit comments