Skip to content

Commit 2bca9aa

Browse files
Fix alert details context test for empty no-params result
Update the "no params" case to expect an empty context, matching the hasEntityFilters gate added in #290244. Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
1 parent a548f23 commit 2bca9aa

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

x-pack/solutions/observability/plugins/observability/test/scout/api/tests/alert_details_context_logs_without_service_name.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,10 @@ apiTest.describe(
7171
await logsSynthtraceEsClient.clean();
7272
});
7373

74-
apiTest('returns a single log category when no params are specified', async ({ apiClient }) => {
74+
apiTest('returns nothing when no params are specified', async ({ apiClient }) => {
7575
const alertContext = await fetchContext(apiClient, {});
7676

77-
expect(alertContext).toHaveLength(1);
78-
const logCategories = getLogCategories(alertContext);
79-
expect(logCategories.map(({ errorCategory }) => errorCategory)).toStrictEqual([
80-
'Error message from container my-container-a',
81-
]);
77+
expect(alertContext).toStrictEqual([]);
8278
});
8379

8480
apiTest(

0 commit comments

Comments
 (0)