@@ -11,8 +11,8 @@ import path from 'path';
1111import { BaseExtend } from './utils' ;
1212
1313const dotenvPath = process . env . CI
14- ? path . resolve ( __dirname , '.env.ci' )
15- : undefined ;
14+ ? path . resolve ( __dirname , '.env.ci' )
15+ : undefined ;
1616dotenv . config ( { path : dotenvPath } ) ;
1717
1818const viewportSize : ViewportSize = { width : 1280 , height : 850 } ;
@@ -63,12 +63,12 @@ export default defineConfig< BaseExtend >( {
6363 * For envs with Basic Auth. Omit when both are empty (e.g. wp-env).
6464 */
6565 ...( process . env . WP_BASIC_AUTH_USER &&
66- process . env . WP_BASIC_AUTH_PASS && {
67- httpCredentials : {
68- username : process . env . WP_BASIC_AUTH_USER ,
69- password : process . env . WP_BASIC_AUTH_PASS ,
70- } ,
71- } ) ,
66+ process . env . WP_BASIC_AUTH_PASS && {
67+ httpCredentials : {
68+ username : process . env . WP_BASIC_AUTH_USER ,
69+ password : process . env . WP_BASIC_AUTH_PASS ,
70+ } ,
71+ } ) ,
7272
7373 ...devices [ 'Desktop Chrome' ] ,
7474
@@ -106,7 +106,7 @@ export default defineConfig< BaseExtend >( {
106106 host : process . env . SSH_HOST ,
107107 port : process . env . SSH_PORT ,
108108 path : process . env . SSH_PATH ,
109- }
109+ } ,
110110 } ,
111111 } ,
112112
@@ -121,6 +121,34 @@ export default defineConfig< BaseExtend >( {
121121 testMatch : / p c p \. s e t u p \. t s / ,
122122 fullyParallel : false ,
123123 } ,
124+ {
125+ name : 'setup-pcp-usa-for-transactions' ,
126+ dependencies : [ 'setup-woocommerce' ] ,
127+ testMatch : / p c p \. s e t u p \. t s / ,
128+ grep : / s e t u p : p c p : u s a : t r a n s a c t i o n s ; / ,
129+ fullyParallel : false ,
130+ } ,
131+ {
132+ name : 'setup-pcp-usa-for-refund' ,
133+ dependencies : [ 'setup-woocommerce' ] ,
134+ testMatch : / p c p \. s e t u p \. t s / ,
135+ grep : / s e t u p : p c p : u s a : r e f u n d ; / ,
136+ fullyParallel : false ,
137+ } ,
138+ {
139+ name : 'setup-pcp-vaulting' ,
140+ dependencies : [ 'setup-woocommerce' ] ,
141+ testMatch : / p c p \. s e t u p \. t s / ,
142+ grep : / s e t u p : p c p : u s a : v a u l t i n g ; / ,
143+ fullyParallel : false ,
144+ } ,
145+ {
146+ name : 'setup-pcp-subscription' ,
147+ dependencies : [ 'setup-woocommerce' ] ,
148+ testMatch : / p c p \. s e t u p \. t s / ,
149+ grep : / s e t u p : p c p : u s a : s u b s c r i p t i o n ; / ,
150+ fullyParallel : false ,
151+ } ,
124152 {
125153 name : 'plugin-foundation' ,
126154 dependencies : [ 'setup-woocommerce' ] ,
@@ -129,10 +157,7 @@ export default defineConfig< BaseExtend >( {
129157 {
130158 name : 'all' ,
131159 dependencies : [ 'setup-woocommerce' ] ,
132- testIgnore : [
133- / s t r e s s \. s p e c \. t s / ,
134- / p l u g i n - f o u n d a t i o n \. s p e c \. t s / ,
135- ] ,
160+ testIgnore : [ / s t r e s s \. s p e c \. t s / , / p l u g i n - f o u n d a t i o n \. s p e c \. t s / ] ,
136161 } ,
137162 {
138163 name : 'stress' ,
@@ -153,22 +178,22 @@ export default defineConfig< BaseExtend >( {
153178 } ,
154179 {
155180 name : 'shard:transactions' ,
156- dependencies : [ 'setup-woocommerce ' ] ,
181+ dependencies : [ 'setup-pcp-usa-for-transactions ' ] ,
157182 testMatch : / 0 5 - t r a n s a c t i o n s \/ .* \. s p e c \. t s / ,
158183 } ,
159184 {
160185 name : 'shard:refund' ,
161- dependencies : [ 'setup-woocommerce ' ] ,
186+ dependencies : [ 'setup-pcp-usa-for-refund ' ] ,
162187 testMatch : / 0 6 - r e f u n d \/ .* \. s p e c \. t s / ,
163188 } ,
164189 {
165190 name : 'shard:vaulting' ,
166- dependencies : [ 'setup-woocommerce ' ] ,
191+ dependencies : [ 'setup-pcp-vaulting ' ] ,
167192 testMatch : / 0 7 - v a u l t i n g \/ .* \. s p e c \. t s / ,
168193 } ,
169194 {
170195 name : 'shard:subscription' ,
171- dependencies : [ 'setup-woocommerce ' ] ,
196+ dependencies : [ 'setup-pcp-subscription ' ] ,
172197 testMatch : / 0 8 - s u b s c r i p t i o n \/ .* \. s p e c \. t s / ,
173198 } ,
174199 ] ,
0 commit comments