@@ -33,6 +33,7 @@ public async Task EnableMoneroPluginSuccessfully()
33
33
kraken . ExchangeRates . Add ( new PairRate ( CurrencyPair . Parse ( "XMR_BTC" ) , new BidAsk ( 0.1m ) ) ) ;
34
34
rateProviderFactory . Providers . Add ( "kraken" , kraken ) ;
35
35
}
36
+
36
37
await s . RegisterNewUser ( true ) ;
37
38
await s . CreateNewStore ( preferredExchange : "Kraken" ) ;
38
39
await s . Page . Locator ( "a.nav-link[href*='monerolike/XMR']" ) . ClickAsync ( ) ;
@@ -53,20 +54,20 @@ public async Task EnableMoneroPluginSuccessfully()
53
54
await s . Page . Locator ( "a.nav-link[href*='invoices']" ) . ClickAsync ( ) ;
54
55
await s . Page . Locator ( "#page-primary" ) . ClickAsync ( ) ;
55
56
await s . Page . FillAsync ( "#Amount" , "4.20" ) ;
56
- await s . Page . FillAsync ( "#BuyerEmail" , "monero@monero.com" ) ;
57
+ await s . Page . FillAsync ( "#BuyerEmail" , "monero@monero.com" ) ;
57
58
await s . Page . Locator ( "#page-primary" ) . ClickAsync ( ) ;
58
-
59
+
59
60
// View the invoice
60
61
await s . Page . Locator ( "a.invoice-checkout-link" ) . ClickAsync ( ) ;
61
62
await s . Page . ClickAsync ( "#DetailsToggle" ) ;
62
-
63
+
63
64
// Verify the total fiat amount is $4.20
64
65
var totalFiat = await s . Page . Locator ( "#PaymentDetails-TotalFiat dd.clipboard-button" ) . InnerTextAsync ( ) ;
65
66
Assert . Equal ( "$4.20" , totalFiat ) ;
66
-
67
+
67
68
await s . Page . GoBackAsync ( ) ;
68
69
await s . Page . Locator ( "a.nav-link[href*='monerolike/XMR']" ) . ClickAsync ( ) ;
69
-
70
+
70
71
// Create a new account label
71
72
await s . Page . FillAsync ( "#NewAccountLabel" , "tst-account" ) ;
72
73
await s . Page . ClickAsync ( "button[name='command'][value='add-account']" ) ;
@@ -75,7 +76,7 @@ public async Task EnableMoneroPluginSuccessfully()
75
76
await s . Page . Locator ( "a.nav-link[href*='monerolike/XMR']" ) . ClickAsync ( ) ;
76
77
await s . Page . SelectOptionAsync ( "#AccountIndex" , "1" ) ;
77
78
await s . Page . ClickAsync ( "#SaveButton" ) ;
78
-
79
+
79
80
// Verify selected account index
80
81
await s . Page . Locator ( "a.nav-link[href*='monerolike/XMR']" ) . ClickAsync ( ) ;
81
82
var selectedValue = await s . Page . Locator ( "#AccountIndex" ) . InputValueAsync ( ) ;
@@ -84,7 +85,5 @@ public async Task EnableMoneroPluginSuccessfully()
84
85
// Select confirmation time to 0
85
86
await s . Page . SelectOptionAsync ( "#SettlementConfirmationThresholdChoice" , "3" ) ;
86
87
await s . Page . ClickAsync ( "#SaveButton" ) ;
87
-
88
-
89
88
}
90
89
}
0 commit comments