lisk-desktop icon indicating copy to clipboard operation
lisk-desktop copied to clipboard

Unstable transaction and events e2e test

Open ManuGowda opened this issue 6 months ago • 0 comments

Expected behavior

The below e2e tests should be stable and if required change the assertion based on transactions/details endpoint e.g http://localhost:8080/#/transactions/details?transactionID=e51492af54b5205d9fd07608fc526f16a7a49375a4836f9ee98d0e195f8d91af

Actual behavior

Following e2e tests are unstable

Then('the first transaction row should contain latest transaction details', async () => { // await expect(fixture.page.locator('.transactions-row').nth(0)).toContainText(/Token transfer/i); // await expect(fixture.page.locator('.transactions-row').nth(0)).toContainText(/Today at/i); });

Then('I should see event table details', async () => { // await expect( // fixture.page.locator('.transaction-events-header').filter({ hasText: 'Block height' }) // ).toBeVisible(); // await expect( // fixture.page.locator('.transaction-events-header').filter({ hasText: 'Transaction ID' }) // ).toBeVisible(); // await expect // .poll(() => fixture.page.locator('.transaction-event-row').count()) // .toBeGreaterThan(0); });

ManuGowda avatar Dec 11 '23 09:12 ManuGowda