File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ export const createTemplate = async (
266266
267267 // If the organization picker is present on the page, select the default
268268 // organization.
269- const orgPicker = page . getByLabel ( "Belongs to * ") ;
269+ const orgPicker = page . getByTestId ( "organization-autocomplete ") ;
270270 const organizationsEnabled = await orgPicker . isVisible ( ) ;
271271 if ( organizationsEnabled ) {
272272 if ( orgName !== defaultOrganizationName ) {
@@ -1233,7 +1233,7 @@ export async function createUser(
12331233
12341234 // If the organization picker is present on the page, select the default
12351235 // organization.
1236- const orgPicker = page . getByLabel ( "Organization * ") ;
1236+ const orgPicker = page . getByTestId ( "organization-autocomplete ") ;
12371237 const organizationsEnabled = await orgPicker . isVisible ( ) ;
12381238 if ( organizationsEnabled ) {
12391239 // The organization picker will be disabled if there is only one option.
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ export const WithOrganizations: Story = {
6363 } ,
6464 play : async ( { canvasElement } ) => {
6565 const canvas = within ( canvasElement ) ;
66- await userEvent . click ( canvas . getByLabelText ( "Organization *" ) ) ;
66+ const autocomplete = await canvas . findByTestId ( "organization-autocomplete" ) ;
67+ await userEvent . click ( autocomplete ) ;
6768 } ,
6869} ;
6970
You can’t perform that action at this time.
0 commit comments