Skip to content

Commit 978052d

Browse files
authored
Fix E2E tests that failed due to Big Sky button labels changing (#99143)
1 parent c03a992 commit 978052d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/calypso-e2e/src/lib/flows/start-site-flow.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ const selectors = {
3232
selectedGoalButton: ( goal: string ) =>
3333
`.select-card-checkbox__container:has(:checked):has-text("${ goal }")`,
3434

35-
// Design choices
36-
designChoiceButton: ( choice: string ) => `button.design-choice:has-text("${ choice }")`,
37-
3835
// Step containers
3936
contentAgnosticContainer: '.step-container',
4037
themePickerContainer: '.design-picker',
@@ -110,9 +107,9 @@ export class StartSiteFlow {
110107
*/
111108
async clickDesignChoice( choice: 'theme' | 'ai' ): Promise< void > {
112109
// 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)';
114111

115-
await this.page.click( selectors.designChoiceButton( choiceLabel ) );
112+
await this.page.getByRole( 'button', { name: choiceLabel } ).click();
116113
}
117114

118115
/**

0 commit comments

Comments
 (0)