@@ -138,14 +138,12 @@ describe("When an element is clicked in visual builder mode", () => {
138138 expect ( overlay ) . not . toBeNull ( ) ;
139139 } ) ;
140140
141- test ( "should have a field path dropdown" , async ( ) => {
142- // waitFor needed for async component rendering
143- await waitFor ( ( ) => {
144- const toolbar = screen . getByTestId (
145- "mock-field-label-wrapper"
146- ) ;
147- expect ( toolbar ) . toBeInTheDocument ( ) ;
148- } ) ;
141+ test ( "should have a field path dropdown" , ( ) => {
142+ // Component is already rendered from beforeAll setup
143+ const toolbar = screen . getByTestId (
144+ "mock-field-label-wrapper"
145+ ) ;
146+ expect ( toolbar ) . toBeInTheDocument ( ) ;
149147 } ) ;
150148
151149 test ( "should contain a data-cslp-field-type attribute" , async ( ) => {
@@ -243,14 +241,12 @@ describe("When an element is clicked in visual builder mode", () => {
243241 expect ( overlay ) . not . toBeNull ( ) ;
244242 } ) ;
245243
246- test ( "should have a field path dropdown" , async ( ) => {
247- // waitFor needed for async component rendering
248- await waitFor ( ( ) => {
249- const toolbar = screen . getByTestId (
250- "mock-field-label-wrapper"
251- ) ;
252- expect ( toolbar ) . toBeInTheDocument ( ) ;
253- } ) ;
244+ test ( "should have a field path dropdown" , ( ) => {
245+ // Component is already rendered from beforeAll setup
246+ const toolbar = screen . getByTestId (
247+ "mock-field-label-wrapper"
248+ ) ;
249+ expect ( toolbar ) . toBeInTheDocument ( ) ;
254250 } ) ;
255251
256252 test ( "should contain a data-cslp-field-type attribute" , async ( ) => {
0 commit comments