1@setupApplicationTest
2Feature: dc / nodes / show: Show node
3  Background:
4    Given 1 datacenter model with the value "dc1"
5  Scenario: Given 2 nodes all the tabs are visible and clickable
6    Given 2 node models from yaml
7    When I visit the node page for yaml
8    ---
9      dc: dc1
10      node: node-0
11    ---
12    And I see healthChecksIsSelected on the tabs
13
14    When I click serviceInstances on the tabs
15    And I see serviceInstancesIsSelected on the tabs
16
17    When I click roundTripTime on the tabs
18    And I see roundTripTimeIsSelected on the tabs
19
20    When I click lockSessions on the tabs
21    And I see lockSessionsIsSelected on the tabs
22
23    When I click metadata on the tabs
24    And I see metadataIsSelected on the tabs
25  Scenario: Given 1 node all the tabs are visible and clickable and the RTT one isn't there
26    Given 1 node models from yaml
27    ---
28    ID: node-0
29    ---
30    When I visit the node page for yaml
31    ---
32      dc: dc1
33      node: node-0
34    ---
35    And I see healthChecksIsSelected on the tabs
36
37    When I click serviceInstances on the tabs
38    And I see serviceInstancesIsSelected on the tabs
39
40    And I don't see roundTripTime on the tabs
41
42    When I click lockSessions on the tabs
43    And I see lockSessionsIsSelected on the tabs
44  Scenario: Given 1 node with no checks all the tabs are visible but the serviceInstances tab is selected
45    Given 1 node models from yaml
46    ---
47    ID: node-0
48    Checks: []
49    ---
50    When I visit the node page for yaml
51    ---
52      dc: dc1
53      node: node-0
54    ---
55    And I see healthChecks on the tabs
56    And I see serviceInstances on the tabs
57    And I don't see roundTripTime on the tabs
58    And I see lockSessions on the tabs
59    And I see serviceInstancesIsSelected on the tabs
60  Scenario: A node warns when deregistered whilst blocking
61    Given 1 node model from yaml
62    ---
63    ID: node-0
64    ---
65    And settings from yaml
66    ---
67    consul:client:
68      blocking: 1
69      throttle: 200
70    ---
71    And a network latency of 100
72    When I visit the node page for yaml
73    ---
74      dc: dc1
75      node: node-0
76    ---
77    Then the url should be /dc1/nodes/node-0/health-checks
78    And the title should be "node-0 - Consul"
79    And the url "/v1/internal/ui/node/node-0" responds with a 404 status
80    And pause until I see the text "no longer exists" in "[data-notification]"
81  @ignore
82    Scenario: The RTT for the node is displayed properly
83    Then ok
84  @ignore
85    Scenario: The RTT for the node displays properly whilst blocking
86    Then ok
87
88