-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Expand file tree
/
Copy pathBug14987_spec.js
More file actions
69 lines (62 loc) · 2.21 KB
/
Bug14987_spec.js
File metadata and controls
69 lines (62 loc) · 2.21 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import {
dataSources,
agHelper,
entityItems,
} from "../../../../support/Objects/ObjectsCore";
import { PluginActionForm } from "../../../../support/Pages/PluginActionForm";
describe(
"Verify setting tab form controls not to have tooltip and tooltip (underline) styles",
{
tags: [
"@tag.Datasource",
"@tag.Settings",
"@tag.Git",
"@tag.AccessControl",
],
},
function () {
let guid, datasourceName;
let pluginActionForm = new PluginActionForm();
before("Creates a new Mongo datasource", () => {
dataSources.CreateDataSource("Mongo");
cy.get("@dsName").then(($dsName) => {
datasourceName = $dsName;
});
});
it("1. We make sure the label in the settings tab does not have any underline styles", function () {
dataSources.CreateQueryForDS(datasourceName);
pluginActionForm.toolbar.toggleSettings();
cy.get(".label-icon-wrapper")
.contains("Run the query on page load")
.parent()
.then(($el) => {
cy.window().then((win) => {
cy.log($el, win);
const after = win.getComputedStyle($el[0], "::after");
cy.log($el, win, after);
const afterBorderBottom = after.getPropertyValue("borderBottom");
// we expect the border bottom of the element to be an empty string as opposed to "1px dashed"
expect(afterBorderBottom).to.equal("");
});
});
cy.get(".label-icon-wrapper")
.contains("Request confirmation before running this query")
.parent()
.then(($el) => {
cy.window().then((win) => {
cy.log($el, win);
const after = win.getComputedStyle($el[0], "::after");
cy.log($el, win, after);
const afterBorderBottom = after.getPropertyValue("borderBottom");
// we expect the border bottom of the element to be an empty string as opposed to "1px dashed"
expect(afterBorderBottom).to.equal("");
});
});
agHelper.ActionContextMenuWithInPane({
action: "Delete",
entityType: entityItems.Query,
});
dataSources.DeleteDatasourceFromWithinDS(datasourceName, 200);
});
},
);