File tree Expand file tree Collapse file tree
BTCPayServer.Plugins.Depix.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 runs-on : ubuntu-22.04
1010 env :
1111 CI : true
12+ PLAYWRIGHT_HEADLESS : true
1213
1314 steps :
1415 - name : Checkout repository
Original file line number Diff line number Diff line change 44using System . Threading ;
55using System . Threading . Tasks ;
66using BTCPayServer . Tests ;
7+ using Microsoft . Extensions . Configuration ;
78using Microsoft . Playwright ;
89
910namespace BTCPayServer . Plugins . Depix . Tests ;
@@ -36,11 +37,16 @@ public class DepixPlaywrightTester : PlaywrightTester
3637 TestLogs . LogInformation ( "BTCPay host is reachable; continuing after sync wait timeout caused by DePix chain registration." ) ;
3738 }
3839
40+ var builder = new ConfigurationBuilder ( ) ;
41+ builder . AddUserSecrets ( "AB0AC1DD-9D26-485B-9416-56A33F268117" ) ;
42+ var conf = builder . Build ( ) ;
3943 var playwright = await Playwright . CreateAsync ( ) ;
4044 var browser = await playwright . Chromium . LaunchAsync ( new BrowserTypeLaunchOptions
4145 {
42- Headless = Server . PayTester . InContainer ,
43- SlowMo = 0
46+ Headless = Server . PayTester . InContainer || conf [ "PLAYWRIGHT_HEADLESS" ] == "true" ,
47+ ExecutablePath = conf [ "PLAYWRIGHT_EXECUTABLE" ] ,
48+ SlowMo = 0 ,
49+ Args = [ "--disable-frame-rate-limit" ]
4450 } ) ;
4551 BrowserBackingField . SetValue ( this , browser ) ;
4652
You can’t perform that action at this time.
0 commit comments