cypress-ag-grid 3.3.2 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/app/ag-grid.css +1253 -194
- package/app/ag-theme-alpine.css +175 -23
- package/app/animation-wait/ag-owned.html +28 -0
- package/app/animation-wait/animation-grid.js +123 -0
- package/app/animation-wait/third-party-subtree.html +41 -0
- package/app/data.json +21 -21
- package/app/grid-basic.js +62 -4
- package/app/grid-grouped.js +8 -2
- package/app/index.html +45 -2
- package/app/v33/index.html +62 -0
- package/app/v34/index.html +62 -0
- package/cypress/e2e/ag-grid-animation-wait.v35.cy.js +46 -0
- package/cypress/e2e/ag-grid-data.v33.cy.js +6 -0
- package/cypress/e2e/ag-grid-data.v34.cy.js +6 -0
- package/cypress/e2e/ag-grid-data.v35.cy.js +6 -0
- package/cypress/e2e/ag-grid-elements.v33.cy.js +6 -0
- package/cypress/e2e/ag-grid-elements.v34.cy.js +6 -0
- package/cypress/e2e/ag-grid-elements.v35.cy.js +6 -0
- package/cypress/e2e/shared/run-ag-grid-data-suite.js +842 -0
- package/cypress/e2e/shared/run-ag-grid-elements-suite.js +56 -0
- package/cypress/fixtures/cardata.json +20 -20
- package/package.json +6 -3
- package/src/agGrid/agGridInteractions.js +184 -36
- package/src/index.d.ts +8 -4
- package/cypress/e2e/ag-grid-data.cy.js +0 -641
- package/cypress/e2e/ag-grid-elements.cy.js +0 -59
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { filterOperator } from "../../src/agGrid/filterOperator.enum";
|
|
2
|
-
|
|
3
|
-
const agGridSelector = "#myGrid2";
|
|
4
|
-
|
|
5
|
-
describe("ag-grid get elements scenario", () => {
|
|
6
|
-
beforeEach(() => {
|
|
7
|
-
cy.visit("../app/index.html");
|
|
8
|
-
cy.get(".ag-cell", { timeout: 10000 }).should("be.visible");
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
it("able to update grid cell value", () => {
|
|
12
|
-
// filter to only show the porsche
|
|
13
|
-
cy.get(agGridSelector).agGridColumnFilterTextFloating({
|
|
14
|
-
searchCriteria: {
|
|
15
|
-
columnName: "Make",
|
|
16
|
-
filterValue: "Porsche",
|
|
17
|
-
operator: filterOperator.equals,
|
|
18
|
-
},
|
|
19
|
-
hasApplyButton: true,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
// expected values before changing the price
|
|
23
|
-
const expectedTableBeforeEditing = [
|
|
24
|
-
{ Year: "2020", Make: "Porsche", Model: "Boxter", Price: "72000" },
|
|
25
|
-
{ Year: "2020", Make: "Porsche", Model: "Boxter", Price: "99000" },
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
// verify values before editing
|
|
29
|
-
cy.get(agGridSelector)
|
|
30
|
-
.getAgGridData()
|
|
31
|
-
.then((tableData) => {
|
|
32
|
-
cy.agGridValidateRowsSubset(tableData, expectedTableBeforeEditing);
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
// edit the porsche boxter from 72000 to 66000
|
|
36
|
-
cy.get(agGridSelector)
|
|
37
|
-
.getAgGridElements()
|
|
38
|
-
.then((tableElements) => {
|
|
39
|
-
const porscheRow = tableElements.find(
|
|
40
|
-
(row) => row.Price.innerText === "72000"
|
|
41
|
-
);
|
|
42
|
-
const priceCell = porscheRow.Price;
|
|
43
|
-
cy.wrap(priceCell).dblclick().type("66000{enter}");
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
// expected values after changing the price
|
|
47
|
-
const expectedTableAfterEditing = [
|
|
48
|
-
{ Year: "2020", Make: "Porsche", Model: "Boxter", Price: "66000" },
|
|
49
|
-
{ Year: "2020", Make: "Porsche", Model: "Boxter", Price: "99000" },
|
|
50
|
-
];
|
|
51
|
-
|
|
52
|
-
// verify values before editing
|
|
53
|
-
cy.get(agGridSelector)
|
|
54
|
-
.getAgGridData()
|
|
55
|
-
.then((tableData) => {
|
|
56
|
-
cy.agGridValidateRowsSubset(tableData, expectedTableAfterEditing);
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
});
|