@@ -13,6 +13,10 @@ walletConfigs.forEach((walletConfig) => {
13
13
walletConfig . extension . Name === "Typhon" ,
14
14
"https://github.com/input-output-hk/catalyst-voices/issues/753"
15
15
) ;
16
+ test . skip (
17
+ walletConfig . extension . Name === "Yoroi" ,
18
+ "https://github.com/input-output-hk/catalyst-voices/issues/753"
19
+ ) ;
16
20
test . skip (
17
21
walletConfig . extension . Name === "Lace" ,
18
22
"https://github.com/input-output-hk/catalyst-voices/issues/1190"
@@ -40,11 +44,7 @@ walletConfigs.forEach((walletConfig) => {
40
44
walletConfig . extension . Name
41
45
) ;
42
46
const homePage = new HomePage ( page ) ;
43
- const [ walletPopup ] = await Promise . all ( [
44
- browser . waitForEvent ( "page" ) ,
45
- homePage . signDataButton . click ( ) ,
46
- ] ) ;
47
- await signWalletPopup ( walletPopup , walletConfig ) ;
47
+ await signWalletPopup ( browser , walletConfig , homePage . signDataButton ) ;
48
48
await homePage . assertModal ( ModalName . SignData ) ;
49
49
} ) ;
50
50
@@ -56,11 +56,11 @@ walletConfigs.forEach((walletConfig) => {
56
56
walletConfig . extension . Name
57
57
) ;
58
58
const homePage = new HomePage ( page ) ;
59
- const [ walletPopup ] = await Promise . all ( [
60
- browser . waitForEvent ( "page" ) ,
61
- homePage . signAndSubmitTxButton . click ( ) ,
62
- ] ) ;
63
- await signWalletPopup ( walletPopup , walletConfig ) ;
59
+ await signWalletPopup (
60
+ browser ,
61
+ walletConfig ,
62
+ homePage . signAndSubmitTxButton
63
+ ) ;
64
64
await homePage . assertModal ( ModalName . SignAndSubmitTx ) ;
65
65
} ) ;
66
66
@@ -74,11 +74,11 @@ walletConfigs.forEach((walletConfig) => {
74
74
walletConfig . extension . Name
75
75
) ;
76
76
const homePage = new HomePage ( page ) ;
77
- const [ walletPopup ] = await Promise . all ( [
78
- browser . waitForEvent ( "page" ) ,
79
- homePage . signAndSubmitRBACTxButton . click ( ) ,
80
- ] ) ;
81
- await signWalletPopup ( walletPopup , walletConfig ) ;
77
+ await signWalletPopup (
78
+ browser ,
79
+ walletConfig ,
80
+ homePage . signAndSubmitRBACTxButton
81
+ ) ;
82
82
await homePage . assertModal ( ModalName . SignAndSubmitRBACTx ) ;
83
83
}
84
84
) ;
@@ -94,13 +94,14 @@ walletConfigs.forEach((walletConfig) => {
94
94
walletConfig . extension . Name
95
95
) ;
96
96
const homePage = new HomePage ( page ) ;
97
- const [ walletPopup ] = await Promise . all ( [
98
- browser . waitForEvent ( "page" ) ,
99
- homePage . signDataButton . click ( ) ,
100
- ] ) ;
101
97
const walletConfigClone = structuredClone ( walletConfig ) ;
102
98
walletConfigClone . password = "BadPassword" ;
103
- await signWalletPopup ( walletPopup , walletConfigClone , false ) ;
99
+ await signWalletPopup (
100
+ browser ,
101
+ walletConfigClone ,
102
+ homePage . signDataButton ,
103
+ false
104
+ ) ;
104
105
await homePage . assertModal ( ModalName . SignDataUserDeclined ) ;
105
106
}
106
107
) ;
@@ -116,13 +117,14 @@ walletConfigs.forEach((walletConfig) => {
116
117
walletConfig . extension . Name
117
118
) ;
118
119
const homePage = new HomePage ( page ) ;
119
- const [ walletPopup ] = await Promise . all ( [
120
- browser . waitForEvent ( "page" ) ,
121
- homePage . signAndSubmitTxButton . click ( ) ,
122
- ] ) ;
123
120
const walletConfigClone = structuredClone ( walletConfig ) ;
124
121
walletConfigClone . password = "BadPassword" ;
125
- await signWalletPopup ( walletPopup , walletConfigClone , false ) ;
122
+ await signWalletPopup (
123
+ browser ,
124
+ walletConfigClone ,
125
+ homePage . signAndSubmitTxButton ,
126
+ false
127
+ ) ;
126
128
await homePage . assertModal ( ModalName . SignTxUserDeclined ) ;
127
129
}
128
130
) ;
@@ -138,13 +140,14 @@ walletConfigs.forEach((walletConfig) => {
138
140
walletConfig . extension . Name
139
141
) ;
140
142
const homePage = new HomePage ( page ) ;
141
- const [ walletPopup ] = await Promise . all ( [
142
- browser . waitForEvent ( "page" ) ,
143
- homePage . signAndSubmitRBACTxButton . click ( ) ,
144
- ] ) ;
145
143
const walletConfigClone = structuredClone ( walletConfig ) ;
146
144
walletConfigClone . password = "BadPassword" ;
147
- await signWalletPopup ( walletPopup , walletConfigClone , false ) ;
145
+ await signWalletPopup (
146
+ browser ,
147
+ walletConfigClone ,
148
+ homePage . signAndSubmitRBACTxButton ,
149
+ false
150
+ ) ;
148
151
await homePage . assertModal ( ModalName . SignRBACTxUserDeclined ) ;
149
152
}
150
153
) ;
0 commit comments