File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
tools/e2e-commons/pages/wpcom Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 11import WpPage from '../wp-page.js' ;
2- import logger from '../../logger.cjs' ;
32
43export default class PickAPlanPage extends WpPage {
54 constructor ( page ) {
65 super ( page , {
7- expectedSelectors : [ 'div[data-e2e- product-slug="jetpack_complete"] ' ] ,
6+ expectedSelectors : [ 'div.jetpack- product-store ' ] ,
87 explicitWaitMS : 40000 ,
98 } ) ;
109 }
1110
12- async waitForPage ( ) {
13- await super . waitForPage ( ) ;
14- await this . waitForElementToBeHidden ( '.display-price__price-placeholder' ) ;
15- }
16-
1711 async select ( product = 'free' ) {
1812 switch ( product ) {
1913 case 'complete' :
@@ -25,10 +19,7 @@ export default class PickAPlanPage extends WpPage {
2519 }
2620
2721 async selectFreePlan ( ) {
28- const freePlanButton = '[data-e2e-product-slug="free"] a' ;
29- const href = await this . page . getAttribute ( freePlanButton , 'href' ) ;
30- logger . debug ( `Free plan button href: ${ href } ` ) ;
31- await this . waitForTimeout ( 500 ) ;
22+ const freePlanButton = '.jetpack-product-store__jetpack-free a' ;
3223 return await this . click ( freePlanButton ) ;
3324 }
3425
You can’t perform that action at this time.
0 commit comments