File tree 1 file changed +2
-5
lines changed
packages/calypso-e2e/src/lib/flows
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ const selectors = {
32
32
selectedGoalButton : ( goal : string ) =>
33
33
`.select-card-checkbox__container:has(:checked):has-text("${ goal } ")` ,
34
34
35
- // Design choices
36
- designChoiceButton : ( choice : string ) => `button.design-choice:has-text("${ choice } ")` ,
37
-
38
35
// Step containers
39
36
contentAgnosticContainer : '.step-container' ,
40
37
themePickerContainer : '.design-picker' ,
@@ -110,9 +107,9 @@ export class StartSiteFlow {
110
107
*/
111
108
async clickDesignChoice ( choice : 'theme' | 'ai' ) : Promise < void > {
112
109
// It's best to select the element using accessible text
113
- const choiceLabel = choice === 'theme' ? 'Choose a theme' : 'Design with AI' ;
110
+ const choiceLabel = choice === 'theme' ? 'Start with a theme' : 'Create with AI (BETA) ' ;
114
111
115
- await this . page . click ( selectors . designChoiceButton ( choiceLabel ) ) ;
112
+ await this . page . getByRole ( 'button' , { name : choiceLabel } ) . click ( ) ;
116
113
}
117
114
118
115
/**
You can’t perform that action at this time.
0 commit comments