@@ -148,77 +148,4 @@ test.describe("Admin > Extensions > Catalog", () => {
148148 await expect ( page . getByRole ( "button" , { name : "View" } ) ) . toBeVisible ( ) ;
149149 await uiHelper . verifyHeading ( "Application Topology for Kubernetes" ) ;
150150 } ) ;
151-
152- // Enable this when the plugin is installation is enabled in the production environment
153- test . skip ( "Verify plugin configuration is editable and can be enabled when disabled" , async ( {
154- page,
155- } ) => {
156- await uiHelper . searchInputPlaceholder ( "Topology" ) ;
157- await page . getByRole ( "heading" , { name : "Topology" } ) . first ( ) . click ( ) ;
158- await uiHelper . verifyHeading ( "Application Topology for Kubernetes" ) ;
159- await uiHelper . clickButton ( "Actions" ) ;
160- await uiHelper . clickByDataTestId ( "edit-configuration" ) ;
161- await uiHelper . verifyHeading (
162- "Edit Application Topology for Kubernetes configurations" ,
163- ) ;
164- await uiHelper . verifyText (
165- "- package: ./dynamic-plugins/dist/backstage-community-plugin-topology" ,
166- ) ;
167- await uiHelper . verifyText ( "disabled: false" ) ;
168- await uiHelper . verifyText ( "Apply" ) ;
169- await uiHelper . verifyHeading ( "Default configuration" ) ;
170- await uiHelper . clickButton ( "Apply" ) ;
171- await uiHelper . verifyText ( "pluginConfig:" ) ;
172- await uiHelper . verifyText ( "dynamicPlugins:" ) ;
173- await uiHelper . clickTab ( "About the plugin" ) ;
174- await uiHelper . verifyHeading ( "Configuring The Plugin" ) ;
175- await uiHelper . clickTab ( "Examples" ) ;
176- await uiHelper . clickByDataTestId ( "ContentCopyRoundedIcon" ) ;
177- await expect ( page . getByRole ( "button" , { name : "✔" } ) ) . toBeVisible ( ) ;
178- await uiHelper . clickButton ( "Reset" ) ;
179- await expect ( page . getByText ( "pluginConfig:" ) ) . not . toBeVisible ( ) ;
180- const modifier = isMac ? "Meta" : "Control" ;
181- await page . keyboard . press ( `${ modifier } +KeyA` ) ;
182- await page . keyboard . press ( `${ modifier } +KeyV` ) ;
183- await uiHelper . verifyText ( "pluginConfig:" ) ;
184- await page . locator ( "button[class^='copy-button']" ) . click ( ) ;
185- await expect ( page . getByRole ( "button" , { name : "✔" } ) . nth ( 1 ) ) . toBeVisible ( ) ;
186- const clipboardContent = await page . evaluate ( ( ) =>
187- navigator . clipboard . readText ( ) ,
188- ) ;
189- expect ( clipboardContent ) . not . toContain ( "pluginConfig:" ) ;
190- expect ( clipboardContent ) . toContain ( "backstage-community.plugin-topology:" ) ;
191- await uiHelper . clickButton ( "Save" ) ;
192- await uiHelper . verifyHeading ( "Extensions" ) ;
193- let alert = page . getByRole ( "alert" ) . first ( ) ;
194- expect ( alert ) . toContainText ( "Backend restart required" ) ;
195- expect ( alert ) . toContainText (
196- "The Application Topology for Kubernetes plugin requires a restart of the backend system to finish installing, updating, enabling or disabling." ,
197- ) ;
198- await uiHelper . searchInputPlaceholder ( "Argo CD Software Template Actions" ) ;
199- await page
200- . getByRole ( "heading" , { name : "Argo CD Software Template Actions" } )
201- . first ( )
202- . click ( ) ;
203-
204- await uiHelper . clickButton ( "Actions" ) ;
205- await uiHelper . clickByDataTestId ( "enable-plugin" ) ;
206- await uiHelper . verifyHeading ( "Extensions" ) ;
207- alert = page . getByRole ( "alert" ) . first ( ) ;
208- expect ( alert ) . toContainText ( "Backend restart required" ) ;
209- expect ( alert ) . toContainText (
210- "You have 2 plugins that require a restart of your backend system to either finish installing, updating, enabling or disabling." ,
211- ) ;
212- page . getByText ( "View plugins" , { exact : true } ) . click ( ) ;
213- const rowLocator = page . locator ( `tbody>tr` ) . nth ( 1 ) ;
214- await rowLocator . waitFor ( { state : "visible" } ) ;
215- const nameCell = rowLocator . locator ( "th" ) ;
216- const actionCell = rowLocator . locator ( "td" ) ;
217- await expect ( nameCell ) . toHaveText ( "Argo CD Software Template Actions" ) ;
218- await expect ( actionCell ) . toContainText ( "Plugin enabled" ) ;
219- await uiHelper . verifyText (
220- "To finish the plugin modifications, restart your backend system." ,
221- ) ;
222- await uiHelper . clickButton ( "Close" ) ;
223- } ) ;
224151} ) ;
0 commit comments