Better timeouts in playwright test

This commit is contained in:
benthecarman
2024-07-01 15:25:24 -05:00
committed by benthecarman
parent 9c73e431b4
commit c1445dcdc2

View File

@@ -7,6 +7,8 @@ test.beforeEach(async ({ page }) => {
}); });
test("rountrip receive and send", async ({ page }) => { test("rountrip receive and send", async ({ page }) => {
test.slow(); // tell playwright that this test is slow
await loadHome(page); await loadHome(page);
await page.locator("#fab").click(); await page.locator("#fab").click();
@@ -133,6 +135,9 @@ test("rountrip receive and send", async ({ page }) => {
await page.click("text=Confirm"); await page.click("text=Confirm");
// wait for the channel to close
await page.waitForTimeout(5000);
await page await page
.getByText( .getByText(
"It looks like you don't have any channels yet. To get started, receive some sats over lightning, or swap some on-chain funds into a channel. Get your hands dirty!" "It looks like you don't have any channels yet. To get started, receive some sats over lightning, or swap some on-chain funds into a channel. Get your hands dirty!"