fix: add test which has been removed for metrics to unblock CI (#20009)

This commit is contained in:
Valeriia Ruban 2024-01-02 11:21:05 -08:00 committed by GitHub
parent a1c0115a74
commit 44dfbe7dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -27,7 +27,7 @@
"components.hashicorp-consul.side-nav.partitions.footer" "components.hashicorp-consul.side-nav.partitions.footer"
}} }}
@disabled={{not canChoose}} @disabled={{not canChoose}}
data-test-datacenter-disclosure-menu data-test-datacenter-menu
as |Selector| as |Selector|
> >
<Selector.Data> <Selector.Data>

View File

@ -48,3 +48,25 @@ Feature: dc / services / show / topology / metrics
service: web service: web
--- ---
And I see the "[data-test-sparkline]" element 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