b279f23372
1. Addition of external source icons for services marked as such. 2. New %with-tooltip css component (wip) 3. New 'no healthcheck' icon as external sources might not have healthchecks, also minus icon on node cards in the service detail view 4. If a service doesn't have healthchecks, we use the [Services] tabs as the default instead of the [Health Checks] tab in the Service detail page. 5. `css-var` helper. The idea here is that it will eventually be replaced with pure css custom properties instead of having to use JS. It would be nice to be able to build the css variables into the JS at build time (you'd probably still want to specify in config which variables you wanted available in JS), but that's possible future work. Lastly there is probably a tiny bit more testing edits here than usual, I noticed that there was an area where the dynamic mocking wasn't happening, it was just using the mocks from consul-api-double, the mocks I was 'dynamically' setting happened to be the same as the ones in consul-api-double. I've fixed this here also but it wasn't effecting anything until actually made certain values dynamic.
58 lines
1.7 KiB
Gherkin
58 lines
1.7 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / nodes / show: Show node
|
|
Scenario: Given 2 nodes all the tabs are visible and clickable
|
|
Given 1 datacenter model with the value "dc1"
|
|
And 2 node models from yaml
|
|
When I visit the node page for yaml
|
|
---
|
|
dc: dc1
|
|
node: node-0
|
|
---
|
|
And I see healthChecksIsSelected on the tabs
|
|
|
|
When I click services on the tabs
|
|
And I see servicesIsSelected on the tabs
|
|
|
|
When I click roundTripTime on the tabs
|
|
And I see roundTripTimeIsSelected on the tabs
|
|
|
|
When I click lockSessions on the tabs
|
|
And I see lockSessionsIsSelected on the tabs
|
|
Scenario: Given 1 node all the tabs are visible and clickable and the RTT one isn't there
|
|
Given 1 datacenter model with the value "dc1"
|
|
And 1 node models from yaml
|
|
---
|
|
ID: node-0
|
|
---
|
|
When I visit the node page for yaml
|
|
---
|
|
dc: dc1
|
|
node: node-0
|
|
---
|
|
And I see healthChecksIsSelected on the tabs
|
|
|
|
When I click services on the tabs
|
|
And I see servicesIsSelected on the tabs
|
|
|
|
And I don't see roundTripTime on the tabs
|
|
|
|
When I click lockSessions on the tabs
|
|
And I see lockSessionsIsSelected on the tabs
|
|
Scenario: Given 1 node with no checks all the tabs are visible but the Services tab is selected
|
|
Given 1 datacenter model with the value "dc1"
|
|
And 1 node models from yaml
|
|
---
|
|
ID: node-0
|
|
Checks: []
|
|
---
|
|
When I visit the node page for yaml
|
|
---
|
|
dc: dc1
|
|
node: node-0
|
|
---
|
|
And I see healthChecks on the tabs
|
|
And I see services on the tabs
|
|
And I see roundTripTime on the tabs
|
|
And I see lockSessions on the tabs
|
|
And I see servicesIsSelected on the tabs
|