fix: align registerPluginSettings and E2E test with package.json name
Headlamp identifies plugins by reading package.json from the plugin
directory. Since package.json name is 'headlamp-polaris', both the
registerPluginSettings call and the E2E settings test must use
'headlamp-polaris', not 'polaris'.
- registerPluginSettings('polaris') → registerPluginSettings('headlamp-polaris')
- E2E test locator: text=polaris → text=headlamp-polaris
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -5,7 +5,7 @@ async function goToPolarisSettings(page: Page) {
|
|||||||
await page.goto('/c/main/settings/plugins');
|
await page.goto('/c/main/settings/plugins');
|
||||||
|
|
||||||
// Find and click the Polaris plugin entry to open its settings
|
// Find and click the Polaris plugin entry to open its settings
|
||||||
const pluginEntry = page.locator('text=polaris').first();
|
const pluginEntry = page.locator('text=headlamp-polaris').first();
|
||||||
await expect(pluginEntry).toBeVisible({ timeout: 15_000 });
|
await expect(pluginEntry).toBeVisible({ timeout: 15_000 });
|
||||||
await pluginEntry.click();
|
await pluginEntry.click();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ registerRoute({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Register plugin settings
|
// Register plugin settings
|
||||||
registerPluginSettings('polaris', PolarisSettings, true);
|
registerPluginSettings('headlamp-polaris', PolarisSettings, true);
|
||||||
|
|
||||||
// Register details view section for supported controller types
|
// Register details view section for supported controller types
|
||||||
registerDetailsViewSection(({ resource }) => {
|
registerDetailsViewSection(({ resource }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user