elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.48k stars 8.04k forks source link

Failing test: Jest Tests.x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components - rules_list can filter by rule states #184784

Open kibanamachine opened 1 month ago

kibanamachine commented 1 month ago

A test failed on a tracked branch

Error: expect(jest.fn()).toHaveBeenLastCalledWith(...expected)

Expected: ObjectContaining {"ruleStatusesFilter": ["disabled", "enabled"]}
Received: {"actionTypesFilter": [], "filterConsumers": undefined, "hasReference": undefined, "http": {"addLoadingCountSource": [Function mockConstructor], "anonymousPaths": {"isAnonymous": [Function mockConstructor], "register": [Function mockConstructor]}, "basePath": {"assetsHrefBase": "", "basePath": "", "get": [Function anonymous], "prepend": [Function anonymous], "publicBaseUrl": undefined, "remove": [Function anonymous], "serverBasePath": ""}, "delete": [Function mockConstructor], "externalUrl": {"isInternalUrl": [Function mockConstructor], "validateUrl": [Function mockConstructor]}, "fetch": [Function mockConstructor], "get": [Function mockConstructor], "getLoadingCount$": [Function mockConstructor], "head": [Function mockConstructor], "intercept": [Function mockConstructor], "options": [Function mockConstructor], "patch": [Function mockConstructor], "post": [Function mockConstructor], "put": [Function mockConstructor], "staticAssets": {"getPluginAssetHref": [Function mockConstructor]}}, "kueryNode": undefined, "page": {"index": 0, "size": 10}, "ruleExecutionStatusesFilter": [], "ruleLastRunOutcomesFilter": [], "ruleParamsFilter": {}, "ruleStatusesFilter": ["disabled"], "searchText": "", "sort": {"direction": "asc", "field": "name"}, "tagsFilter": [], "typesFilter": ["test_rule_type"]}

Number of calls: 1
    at Object.toHaveBeenLastCalledWith (/var/lib/buildkite-agent/builds/kb-n2-4-spot-e35180b5035ff681/elastic/kibana-on-merge/kibana/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rules_list.test.tsx:400:38)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:540:9)
    at processTimers (node:internal/timers:514:7)

First failure: kibana-on-merge - main

elasticmachine commented 1 month ago

Pinging @elastic/response-ops (Team:ResponseOps)