Skip to content

Commit 1a55faf

Browse files
guskovaueclaude
andcommitted
[Response Ops] Unskip preconfigured-connector edit test in Scout
Add 'my-email-connector' (.email) to the default Scout stateful classic preconfigured connectors, alongside the 'my-server-log' added previously. This unblocks the 'should not be able to edit a preconfigured connector' test in connector_general.spec.ts: verifies that opening a preconfigured connector shows the preconfigured badge and hides the save button. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e457397 commit 1a55faf

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

  • src/platform/packages/shared/kbn-scout/src/servers/configs/config_sets/default/stateful
  • x-pack/platform/plugins/shared/triggers_actions_ui/test/scout/ui/tests

src/platform/packages/shared/kbn-scout/src/servers/configs/config_sets/default/stateful/base.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ export const defaultConfig: ScoutServerConfig = {
180180
'--xpack.discoverEnhanced.actions.exploreDataInContextMenu.enabled=true',
181181
`--xpack.actions.preconfigured=${JSON.stringify({
182182
'my-server-log': { actionTypeId: '.server-log', name: 'Serverlog' },
183+
'my-email-connector': {
184+
actionTypeId: '.email',
185+
name: 'Email#test-preconfigured-email',
186+
config: { from: 'me@example.com', host: 'localhost', port: '1025' },
187+
},
183188
})}`,
184189
'--savedObjects.maxImportPayloadBytes=10485760', // for OSS test management/_import_objects,
185190
'--savedObjects.allowHttpApiAccess=false', // override default to not allow hiddenFromHttpApis saved objects access to the http APIs see https://github.com/elastic/dev/issues/2200

x-pack/platform/plugins/shared/triggers_actions_ui/test/scout/ui/tests/connector_general.spec.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,25 @@ test.describe('General connector functionality', { tag: tags.stateful.classic },
421421
).toBeDisabled();
422422
});
423423

424-
// Skipped: requires preconfigured 'test-preconfigured-email' connector not available in Scout.
425-
test.skip('should not be able to edit a preconfigured connector', async () => {});
424+
test('should not be able to edit a preconfigured connector', async ({
425+
browserAuth,
426+
page,
427+
kbnUrl,
428+
}) => {
429+
await browserAuth.loginAsAdmin();
430+
await navigateAndWait(page, kbnUrl);
431+
await searchConnector(page, 'test-preconfigured-email');
432+
433+
await expect(page.testSubj.locator('connectors-row')).toHaveCount(1);
434+
await expect(page.testSubj.locator('preConfiguredTitleMessage')).toBeVisible();
435+
436+
await page.locator('[data-test-subj="connectorsTableCell-name"] button').click();
437+
438+
await expect(page.testSubj.locator('preconfiguredBadge')).toBeVisible();
439+
await expect(page.testSubj.locator('edit-connector-flyout-save-btn')).toBeHidden();
440+
441+
await page.testSubj.click('euiFlyoutCloseButton');
442+
});
426443

427444
// Skipped: requires test.always-firing rule type via createRuleWithActionsAndParams.
428445
test.skip('Execution log - renders the event log list and can filter/sort', async () => {});

0 commit comments

Comments
 (0)