@@ -11,14 +11,16 @@ test.describe("Simulate Transaction Page", () => {
11
11
12
12
test . describe ( "Instruction Leeway Input" , ( ) => {
13
13
test ( "error when inputting a non whole number" , async ( { page } ) => {
14
- const instructionLeewayOn = page . getByTestId ( "simulate-tx-instr-leeway ") ;
14
+ const instructionLeewayOn = page . getByLabel ( "Instruction Leeway ") ;
15
15
await instructionLeewayOn . fill ( "aaa" ) ;
16
16
await expect ( page . getByText ( "Expected a whole number." ) ) . toBeVisible ( ) ;
17
17
} ) ;
18
18
19
19
test ( "previous response should be removed when inputting a non whole number" , async ( {
20
20
page,
21
21
} ) => {
22
+ const instructionLeewayOn = page . getByLabel ( "Instruction Leeway" ) ;
23
+
22
24
// Getting a success response
23
25
const xdrInput = page . getByLabel (
24
26
"Input a base-64 encoded TransactionEnvelope" ,
@@ -60,7 +62,6 @@ test.describe("Simulate Transaction Page", () => {
60
62
await expect ( txResponseCard ) . toBeVisible ( ) ;
61
63
62
64
// Typing in the wrong instruction leeway should remove the previous response
63
- const instructionLeewayOn = page . getByTestId ( "simulate-tx-instr-leeway" ) ;
64
65
await instructionLeewayOn . fill ( "aaa" ) ;
65
66
await expect ( page . getByText ( "Expected a whole number." ) ) . toBeVisible ( ) ;
66
67
@@ -79,7 +80,7 @@ test.describe("Simulate Transaction Page", () => {
79
80
80
81
await expect ( simulateTxBtn ) . toBeDisabled ( ) ;
81
82
82
- const instructionLeewayOn = page . getByTestId ( "simulate-tx-instr-leeway ") ;
83
+ const instructionLeewayOn = page . getByLabel ( "Instruction Leeway ") ;
83
84
await instructionLeewayOn . fill ( "23423423" ) ;
84
85
85
86
// inputting the leeway alone isn't enough to enable the simulate tx button
@@ -233,9 +234,9 @@ test.describe("Simulate Transaction Page", () => {
233
234
} ) ;
234
235
} ) ;
235
236
236
- // // =============================================================================
237
- // // Mock data
238
- // // =============================================================================
237
+ // =============================================================================
238
+ // Mock data
239
+ // =============================================================================
239
240
const MOCK_SC_VAL_XDR =
240
241
"AAAAEQAAAAEAAAAGAAAADwAAAAZhbW91bnQAAAAAAAoAAAAAAAAAAAAACRhOcqAAAAAADwAAAAxib290c3RyYXBwZXIAAAASAAAAARssFqxD/prgmYc9vGkaqslWrGlPINzMYTLc4yqRfO3AAAAADwAAAAxjbG9zZV9sZWRnZXIAAAADAz6ilAAAAA8AAAAIcGFpcl9taW4AAAAKAAAAAAAAAAAAAAARdlkuAAAAAA8AAAAEcG9vbAAAABIAAAABX/a7xfliM8nFgGel6pbCM6fT/kqrHAITNtWZQXgDlIIAAAAPAAAAC3Rva2VuX2luZGV4AAAAAAMAAAAA" ;
241
242
0 commit comments