Skip to content

Commit 0ac24e0

Browse files
committed
feat: Enhance Send flow Automation Integration Test Flow
This change: - Updates test wallet address in CommonTestConstants. - Modifies startAppFlow to accept a dynamic key. - Improves waitForSendPage and checkIfSendPageIsVisible methods for better page visibility handling. - Adds validateWalletBalance method to ensure sufficient funds before sending. - Enhances transaction success flow handling in SendPageRobot.
1 parent 8960c16 commit 0ac24e0

File tree

4 files changed

+282
-63
lines changed

4 files changed

+282
-63
lines changed

integration_test/components/common_test_constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ class CommonTestConstants {
1010
static final CryptoCurrency sendTestReceiveCurrency = CryptoCurrency.sol;
1111
static final CryptoCurrency exchangeTestReceiveCurrency = CryptoCurrency.usdtSol;
1212
static final CryptoCurrency exchangeTestDepositCurrency = CryptoCurrency.sol;
13-
static final String testWalletAddress = '5v9gTW1yWPffhnbNKuvtL2frevAf4HpBMw8oYnfqUjhm';
13+
static final String testWalletAddress = '7TSTXnQZxQDA4JoNqs4DqVqE7oNWk2kmHkMT6DD6vw2S';
1414
}

integration_test/components/common_test_flows.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ class CommonTestFlows {
6060

6161
//* ========== Handles flow to start the app afresh and accept disclaimer =============
6262
Future<void> startAppFlow(Key key) async {
63-
await app.main(topLevelKey: ValueKey('send_flow_test_app_key'));
63+
await app.main(topLevelKey: key);
6464

65-
await _tester.pumpAndSettle();
65+
await _tester.pump(Duration(seconds: 2));
6666

6767
// // --------- Disclaimer Page ------------
6868
// // Tap checkbox to accept disclaimer

0 commit comments

Comments
 (0)