|
|
@ -34,7 +34,6 @@ test.describe("Toolbar operations (GRID)", () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// hide column
|
|
|
|
// hide column
|
|
|
|
console.log("hide column"); |
|
|
|
|
|
|
|
await toolbar.fields.toggle({ title: "LastUpdate" }); |
|
|
|
await toolbar.fields.toggle({ title: "LastUpdate" }); |
|
|
|
await dashboard.grid.column.verify({ |
|
|
|
await dashboard.grid.column.verify({ |
|
|
|
title: "LastUpdate", |
|
|
|
title: "LastUpdate", |
|
|
@ -42,7 +41,6 @@ test.describe("Toolbar operations (GRID)", () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// un-hide column
|
|
|
|
// un-hide column
|
|
|
|
console.log("un-hide column"); |
|
|
|
|
|
|
|
await toolbar.fields.toggle({ title: "LastUpdate" }); |
|
|
|
await toolbar.fields.toggle({ title: "LastUpdate" }); |
|
|
|
await dashboard.grid.column.verify({ |
|
|
|
await dashboard.grid.column.verify({ |
|
|
|
title: "LastUpdate", |
|
|
|
title: "LastUpdate", |
|
|
@ -51,26 +49,23 @@ test.describe("Toolbar operations (GRID)", () => { |
|
|
|
|
|
|
|
|
|
|
|
await validateFirstRow("Afghanistan"); |
|
|
|
await validateFirstRow("Afghanistan"); |
|
|
|
// Sort column
|
|
|
|
// Sort column
|
|
|
|
console.log("sort column"); |
|
|
|
await toolbar.sort.addSort({ columnTitle: "Country", isAscending: false, isLocallySaved: true }); |
|
|
|
await toolbar.sort.addSort({ columnTitle: "Country", isAscending: false }); |
|
|
|
|
|
|
|
await validateFirstRow("Zambia"); |
|
|
|
await validateFirstRow("Zambia"); |
|
|
|
|
|
|
|
|
|
|
|
// reset sort
|
|
|
|
// reset sort
|
|
|
|
console.log("reset sort"); |
|
|
|
|
|
|
|
await toolbar.sort.resetSort(); |
|
|
|
await toolbar.sort.resetSort(); |
|
|
|
await validateFirstRow("Afghanistan"); |
|
|
|
await validateFirstRow("Afghanistan"); |
|
|
|
|
|
|
|
|
|
|
|
// Filter column
|
|
|
|
// Filter column
|
|
|
|
console.log("filter column"); |
|
|
|
|
|
|
|
await toolbar.filter.addNew({ |
|
|
|
await toolbar.filter.addNew({ |
|
|
|
columnTitle: "Country", |
|
|
|
columnTitle: "Country", |
|
|
|
value: "India", |
|
|
|
value: "India", |
|
|
|
opType: "is equal", |
|
|
|
opType: "is equal", |
|
|
|
|
|
|
|
isLocallySaved: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
await validateFirstRow("India"); |
|
|
|
await validateFirstRow("India"); |
|
|
|
|
|
|
|
|
|
|
|
// Reset filter
|
|
|
|
// Reset filter
|
|
|
|
console.log("reset filter"); |
|
|
|
|
|
|
|
await toolbar.filter.resetFilter(); |
|
|
|
await toolbar.filter.resetFilter(); |
|
|
|
await validateFirstRow("Afghanistan"); |
|
|
|
await validateFirstRow("Afghanistan"); |
|
|
|
|
|
|
|
|
|
|
|