From 44dfbe7dcb7f27e3a87207c56d44f1a7daa29ae0 Mon Sep 17 00:00:00 2001 From: Valeriia Ruban Date: Tue, 2 Jan 2024 11:21:05 -0800 Subject: [PATCH] fix: add test which has been removed for metrics to unblock CI (#20009) --- .../consul/partition/selector/index.hbs | 2 +- .../dc/services/show/topology/metrics.feature | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/ui/packages/consul-partitions/app/components/consul/partition/selector/index.hbs b/ui/packages/consul-partitions/app/components/consul/partition/selector/index.hbs index 322402ec74..0c59e93cc0 100644 --- a/ui/packages/consul-partitions/app/components/consul/partition/selector/index.hbs +++ b/ui/packages/consul-partitions/app/components/consul/partition/selector/index.hbs @@ -27,7 +27,7 @@ "components.hashicorp-consul.side-nav.partitions.footer" }} @disabled={{not canChoose}} - data-test-datacenter-disclosure-menu + data-test-datacenter-menu as |Selector| > diff --git a/ui/packages/consul-ui/tests/acceptance/dc/services/show/topology/metrics.feature b/ui/packages/consul-ui/tests/acceptance/dc/services/show/topology/metrics.feature index 77fda8cdf5..ad6c30210a 100644 --- a/ui/packages/consul-ui/tests/acceptance/dc/services/show/topology/metrics.feature +++ b/ui/packages/consul-ui/tests/acceptance/dc/services/show/topology/metrics.feature @@ -48,3 +48,25 @@ Feature: dc / services / show / topology / metrics service: web --- And I see the "[data-test-sparkline]" element + Scenario: Metrics enabled but service source is Consul API Gateway + Given 1 datacenter model with the value "datacenter" + And the local datacenter is "datacenter" + And 1 service model from yaml + --- + - Service: + Name: web + Kind: ~ + Meta: + external-source: consul-api-gateway + --- + And ui_config from yaml + --- + metrics_proxy_enabled: true + metrics_provider: 'prometheus' + --- + When I visit the service page for yaml + --- + dc: datacenter + service: web + --- + And I don't see the "[data-test-sparkline]" element \ No newline at end of file