diff options
Diffstat (limited to 'spec/frontend/clusters_list')
-rw-r--r-- | spec/frontend/clusters_list/components/agent_table_spec.js | 8 | ||||
-rw-r--r-- | spec/frontend/clusters_list/components/clusters_spec.js | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/spec/frontend/clusters_list/components/agent_table_spec.js b/spec/frontend/clusters_list/components/agent_table_spec.js index 2a43b45a2f5..b78f0a3686c 100644 --- a/spec/frontend/clusters_list/components/agent_table_spec.js +++ b/spec/frontend/clusters_list/components/agent_table_spec.js @@ -70,10 +70,10 @@ describe('AgentTable', () => { }); it.each` - status | iconName | lineNumber - ${'Never connected'} | ${'status-neutral'} | ${0} - ${'Connected'} | ${'status-success'} | ${1} - ${'Not connected'} | ${'severity-critical'} | ${2} + status | iconName | lineNumber + ${'Never connected'} | ${'status-neutral'} | ${0} + ${'Connected'} | ${'status-success'} | ${1} + ${'Not connected'} | ${'status-alert'} | ${2} `( 'displays agent connection status as "$status" at line $lineNumber', ({ status, iconName, lineNumber }) => { diff --git a/spec/frontend/clusters_list/components/clusters_spec.js b/spec/frontend/clusters_list/components/clusters_spec.js index c150a7f05d0..5c7635c1617 100644 --- a/spec/frontend/clusters_list/components/clusters_spec.js +++ b/spec/frontend/clusters_list/components/clusters_spec.js @@ -103,11 +103,9 @@ describe('Clusters', () => { }); describe('when is loaded as a child component', () => { - beforeEach(() => { + it("shouldn't render pagination buttons", () => { createWrapper({ limit: 6 }); - }); - it("shouldn't render pagination buttons", () => { expect(findPaginatedButtons().exists()).toBe(false); }); }); |