mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 15:04:19 +01:00
Fix flaky tests
This commit is contained in:
@@ -566,21 +566,11 @@ namespace BTCPayServer.Tests
|
||||
}
|
||||
await Page.ClickAsync("#FakePayment");
|
||||
await Page.Locator("#CheatSuccessMessage").WaitForAsync();
|
||||
// TODO: Fix flakyness
|
||||
try
|
||||
{
|
||||
await Page.Locator("text=Payment Received").WaitForAsync();
|
||||
}
|
||||
catch
|
||||
{
|
||||
await TakeScreenshot("PayInvoice.png");
|
||||
throw;
|
||||
}
|
||||
|
||||
if (mine)
|
||||
{
|
||||
await MineBlockOnInvoiceCheckout();
|
||||
}
|
||||
await Page.Locator("xpath=//*[text()=\"Invoice Paid\" or text()=\"Payment Received\"]").WaitForAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user