@@ -70,44 +70,6 @@ describe("WSEditorClientConfigDialog - Integration", () => {
7070 expect ( screen . queryByText ( "Cancel" ) ) . not . toBeInTheDocument ( ) ;
7171 } ) ;
7272
73- it . skip ( "should cascade load planes → modules → providers → versions" , async ( ) => {
74- // @NOTE : skipping this workflow for now, there is servere delay in loading, will revisit once loading states are improved.
75- render ( < WSEditorClientConfigDialog workspaceUrl = { mockWorkspaceUrl } open = { true } onClose = { mockOnClose } /> ) ;
76-
77- // Switch to the resource property tab
78- const resourcePropertyTab = screen . getByRole ( "tab" , { name : / B y r e s o u r c e p r o p e r t y / i } ) ;
79- await userEvent . click ( resourcePropertyTab ) ;
80-
81- // --- MODULES ---
82- const moduleInput = screen . getByRole ( "combobox" , { name : / M o d u l e / i } ) ;
83- await userEvent . click ( moduleInput ) ;
84-
85- // Wait for the popper to render an option (it will display "storage", not "Microsoft.Storage")
86- const storageOption = await screen . findByRole ( "option" , { name : / s t o r a g e / i } ) ;
87- await userEvent . click ( storageOption ) ;
88-
89- // --- PROVIDERS ---
90- const providerInput = screen . getByRole ( "combobox" , { name : / R e s o u r c e P r o v i d e r / i } ) ;
91- await userEvent . click ( providerInput ) ;
92-
93- // Providers are stripped of common prefix, so if API returned ["Microsoft.Storage"],
94- // and `commonPrefix = "Microsoft."`, you’ll actually see "Storage" in the DOM
95- const rpOption = await screen . findByRole ( "option" , { name : / S t o r a g e / i } ) ;
96- await userEvent . click ( rpOption ) ;
97-
98- // --- VERSIONS ---
99- const versionInput = screen . getByRole ( "combobox" , { name : / A P I V e r s i o n / i } ) ;
100- await userEvent . click ( versionInput ) ;
101-
102- const versionOption = await screen . findByRole ( "option" , { name : / 2 0 2 1 - 0 4 - 0 1 / i } ) ;
103- await userEvent . click ( versionOption ) ;
104-
105- // Final assertions (all cascades complete)
106- expect ( moduleInput ) . toHaveValue ( "storage" ) ;
107- expect ( providerInput ) . toHaveValue ( "Storage" ) ;
108- expect ( versionInput ) . toHaveValue ( "2021-04-01" ) ;
109- } ) ;
110-
11173 it ( "should handle API errors gracefully during cascade loading" , async ( ) => {
11274 const user = userEvent . setup ( ) ;
11375 render (
0 commit comments