-
Notifications
You must be signed in to change notification settings - Fork 8k
/
inspect.cy.ts
50 lines (40 loc) · 1.38 KB
/
inspect.cy.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { INSPECT_HOSTS_BUTTONS_IN_SECURITY, INSPECT_MODAL } from '../../screens/inspect';
import { HOST_OVERVIEW } from '../../screens/hosts/main';
import { clickInspectButton, closesModal, openStatsAndTables } from '../../tasks/inspect';
import { login, visit, visitHostDetailsPage } from '../../tasks/login';
import { HOSTS_URL } from '../../urls/navigation';
// This will be fixed in a follow up PR, https://github.com/elastic/kibana/issues/152359
describe.skip('Inspect', () => {
before(() => {
login();
});
context('Hosts stats and tables', () => {
beforeEach(() => {
visit(HOSTS_URL);
});
afterEach(() => {
closesModal();
});
INSPECT_HOSTS_BUTTONS_IN_SECURITY.forEach((table) =>
it(`inspects the ${table.title}`, () => {
openStatsAndTables(table);
cy.get(INSPECT_MODAL).should('be.visible');
})
);
});
context('Hosts details', () => {
beforeEach(() => {
visitHostDetailsPage('test.local');
});
it(`inspects the host details`, () => {
clickInspectButton(HOST_OVERVIEW);
cy.get(INSPECT_MODAL).should('be.visible');
});
});
});