Skip to content

Commit

Permalink
Merge pull request #6031 from gooddata/QA-24268
Browse files Browse the repository at this point in the history
test: add more tag to run on releng
  • Loading branch information
Tubt authored Mar 11, 2025
2 parents f178232 + 1346e77 commit 01da1b3
Show file tree
Hide file tree
Showing 20 changed files with 797 additions and 684 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checklist-integrated-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ jobs:
if: ${{ !cancelled() && needs.setup-stage.outputs.send_message_to_slack_channel == 'true' }}
with:
channel-id: panther-checklist-testing
slack-message: "${{ steps.alls-green.outcome == 'success' && ':unicorn_face:' || ':robot_panic:' }} `checklist-SDK-${{ inputs.test-branch }}-branch: ` *${{ steps.alls-green.outcome == 'success' && 'success' || 'failed' }}*; please check *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|the logs>*."
slack-message: "${{ steps.alls-green.outcome == 'success' && ':unicorn_face:' || ':robot_panic:' }} `checklist-SDK-${GITHUB_REF#refs/heads/}-branch: ` *${{ steps.alls-green.outcome == 'success' && 'success' || 'failed' }}*; please check *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|the logs>*."
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (C) 2022-2024 GoodData Corporation
// (C) 2022-2025 GoodData Corporation
import * as Navigation from "../../tools/navigation";
import { AttributeFilterConfiguration } from "../../tools/attributeFilterConfig";
import { AttributeFilterButton } from "../../tools/attributeFilterButton";
Expand Down Expand Up @@ -83,7 +83,7 @@ describe("Attribute filter", () => {
describe("Config attribute filter", () => {
it(
"Should reset display form value dropdown after cancel attribute panel",
{ tags: ["checklist_integrated_tiger"] },
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
() => {
Navigation.visit("dashboard/stage-name");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,113 +21,121 @@ const featureFlags: ISettings = {
enableKDAttributeFilterDatesValidation: true,
};
describe("Available value filter", () => {
it("should add metric filter by", { tags: "checklist_integrated_tiger" }, () => {
Navigation.visit("dashboard/dashboard-tiger-hide-filters");
cy.intercept("GET", "**/attributes**").as("attributes");
topBar.enterEditMode().editButtonIsVisible(false);
new InsightsCatalog().waitForCatalogLoad();
new FilterBar().clickDateFilter().selectDateFilterOption(".s-all-time").clickApply();
cy.wait("@attributes").then(() => {
accountFilter.open().selectAttribute(["101 Financial"]).apply();
});

headline.waitLoaded().hasValue("7,200");

cityFilter
.open()
.elementsAreLoaded()
.configureLimitingParentFilterDependency("Account")
.hasFilterListSize(2);

cityFilter
.elementsAreLoaded()
.configureLimitingMetricDependency("# of Lost Opps.")
.hasFilterListSize(1)
.selectConfiguration()
.searchMetricDependency("Invalid")
.getNoDataMetricDependency()
.searchMetricDependency("Account")
.selectMetricDependency("Account")
.hasFilterListSize(2)
.showAllElementValues()
.selectAttribute(["Anaheim"])
.apply();

cityFilter
.open()
.elementsAreLoaded()
.clearIrrelevantElementValuesIsVisible(true)
.clearIrrelevantElementValues()
.selectAttribute(["Seattle"])
.apply();

headline.waitLoaded().hasEmpty();

cityFilter
.open()
.elementsAreLoaded()
.deleteFiltervaluesBy("Count of Account", "aggregated")
.elementsAreLoaded()
.hasFilterListSize(1);
});

it("should extend attribute filter by date filter", { tags: "checklist_integrated_tiger" }, () => {
Navigation.visit("dashboard/multiple-date-filters", featureFlags);
cy.intercept("GET", "**/attributes**").as("attributes");

cy.wait("@attributes").then(() => {
const dateFilter = new DateFilter();
const dateFilterActivity = new DateFilter("Activity");
const dateFilterAbsoluteForm = new DateFilterAbsoluteForm();
it(
"should add metric filter by",
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
() => {
Navigation.visit("dashboard/dashboard-tiger-hide-filters");
cy.intercept("GET", "**/attributes**").as("attributes");
topBar.enterEditMode().editButtonIsVisible(false);
new InsightsCatalog().waitForCatalogLoad();

dateFilter.openAndSelectOption(".s-absolute-form");
dateFilterAbsoluteForm
.typeIntoFromRangePickerInput("4/3/2010")
.typeIntoToRangePickerInput("4/3/2018");
dateFilter.pressButton("apply");

dateFilterActivity.openAndSelectOption(".s-absolute-form");
dateFilterAbsoluteForm
.typeIntoFromRangePickerInput("4/3/2010")
.typeIntoToRangePickerInput("4/3/2018");
dateFilterActivity.pressButton("apply");
});

widget
.waitChartLoaded()
.getChart()
.getDataLabelValues()
.should("deep.equal", ["$4,108,360.80", "$2,267,528.48", "$3,461,373.87"]);

salesRepFilter
.open()
.elementsAreLoaded()
.hasFilterListSize(22)
.selectConfiguration()
.configureLimitingDateFilterDependency("activity", "Date range")
.hasFilterListSize(20);

salesRepFilter
.elementsAreLoaded()
.selectConfiguration()
.isSpecificDateFilterVisible("activity", false)
.closeConfiguration()
.deleteFiltervaluesBy("Date range as Activity")
.selectConfiguration()
.configureLimitingDateFilterDependency("activity", "Date specific")
.hasFilterListSize(20)
.selectConfiguration()
.isCommonDateFilterVisible("activity", false)
.closeConfiguration()
.selectAttribute(["Cory Owens"])
.apply();

cy.wait(1000);

widget.waitChartLoaded().getChart().getDataLabelValues().should("deep.equal", ["$2,376,100.41"]);

salesRepFilter.open().elementsAreLoaded().deleteFiltervaluesBy("Activity").hasFilterListSize(22);
});
new FilterBar().clickDateFilter().selectDateFilterOption(".s-all-time").clickApply();
cy.wait("@attributes").then(() => {
accountFilter.open().selectAttribute(["101 Financial"]).apply();
});

headline.waitLoaded().hasValue("7,200");

cityFilter
.open()
.elementsAreLoaded()
.configureLimitingParentFilterDependency("Account")
.hasFilterListSize(2);

cityFilter
.elementsAreLoaded()
.configureLimitingMetricDependency("# of Lost Opps.")
.hasFilterListSize(1)
.selectConfiguration()
.searchMetricDependency("Invalid")
.getNoDataMetricDependency()
.searchMetricDependency("Account")
.selectMetricDependency("Account")
.hasFilterListSize(2)
.showAllElementValues()
.selectAttribute(["Anaheim"])
.apply();

cityFilter
.open()
.elementsAreLoaded()
.clearIrrelevantElementValuesIsVisible(true)
.clearIrrelevantElementValues()
.selectAttribute(["Seattle"])
.apply();

headline.waitLoaded().hasEmpty();

cityFilter
.open()
.elementsAreLoaded()
.deleteFiltervaluesBy("Count of Account", "aggregated")
.elementsAreLoaded()
.hasFilterListSize(1);
},
);

it(
"should extend attribute filter by date filter",
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
() => {
Navigation.visit("dashboard/multiple-date-filters", featureFlags);
cy.intercept("GET", "**/attributes**").as("attributes");

cy.wait("@attributes").then(() => {
const dateFilter = new DateFilter();
const dateFilterActivity = new DateFilter("Activity");
const dateFilterAbsoluteForm = new DateFilterAbsoluteForm();
topBar.enterEditMode().editButtonIsVisible(false);
new InsightsCatalog().waitForCatalogLoad();

dateFilter.openAndSelectOption(".s-absolute-form");
dateFilterAbsoluteForm
.typeIntoFromRangePickerInput("4/3/2010")
.typeIntoToRangePickerInput("4/3/2018");
dateFilter.pressButton("apply");

dateFilterActivity.openAndSelectOption(".s-absolute-form");
dateFilterAbsoluteForm
.typeIntoFromRangePickerInput("4/3/2010")
.typeIntoToRangePickerInput("4/3/2018");
dateFilterActivity.pressButton("apply");
});

widget
.waitChartLoaded()
.getChart()
.getDataLabelValues()
.should("deep.equal", ["$4,108,360.80", "$2,267,528.48", "$3,461,373.87"]);

salesRepFilter
.open()
.elementsAreLoaded()
.hasFilterListSize(22)
.selectConfiguration()
.configureLimitingDateFilterDependency("activity", "Date range")
.hasFilterListSize(20);

salesRepFilter
.elementsAreLoaded()
.selectConfiguration()
.isSpecificDateFilterVisible("activity", false)
.closeConfiguration()
.deleteFiltervaluesBy("Date range as Activity")
.selectConfiguration()
.configureLimitingDateFilterDependency("activity", "Date specific")
.hasFilterListSize(20)
.selectConfiguration()
.isCommonDateFilterVisible("activity", false)
.closeConfiguration()
.selectAttribute(["Cory Owens"])
.apply();

cy.wait(1000);

widget.waitChartLoaded().getChart().getDataLabelValues().should("deep.equal", ["$2,376,100.41"]);

salesRepFilter.open().elementsAreLoaded().deleteFiltervaluesBy("Activity").hasFilterListSize(22);
},
);
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (C) 2021-2024 GoodData Corporation
// (C) 2021-2025 GoodData Corporation

import * as Navigation from "../../tools/navigation";
import { Dashboard, FilterBar, TopBar } from "../../tools/dashboards";
Expand Down Expand Up @@ -113,21 +113,25 @@ describe.skip("Dashboard", { tags: ["pre-merge_isolated_bear"] }, () => {
describe("Dashboard actions", () => {
const editMode = new EditMode();
//Cover ticket: RAIL-4772
it("should able to delete dashboard after save as new", { tags: ["checklist_integrated_tiger"] }, () => {
Navigation.visitCopyOf("dashboard/kpis");

editMode.edit();
new DashboardHeader()
.menuButtonIsVisible(true)
.clickMenuButton()
.deleteDashboard(true)
.dashboardTitleHasValue("Untitled");
});
it(
"should able to delete dashboard after save as new",
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
() => {
Navigation.visitCopyOf("dashboard/kpis");

editMode.edit();
new DashboardHeader()
.menuButtonIsVisible(true)
.clickMenuButton()
.deleteDashboard(true)
.dashboardTitleHasValue("Untitled");
},
);

//Cover ticket: RAIL-4642
it(
"should able to scroll vertical/ horizontal on widget",
{ tags: ["checklist_integrated_tiger"] },
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
() => {
const table = new Table(".s-dash-item-0");

Expand All @@ -138,8 +142,12 @@ describe("Dashboard actions", () => {
);

//Cover ticket: RAIL-4750
it("should direct to view mode after save as new", { tags: ["checklist_integrated_tiger"] }, () => {
Navigation.visitCopyOf("dashboard/kpis");
dashboardHeader.editButtonIsVisible(true).shareButtonExists(true);
});
it(
"should direct to view mode after save as new",
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
() => {
Navigation.visitCopyOf("dashboard/kpis");
dashboardHeader.editButtonIsVisible(true).shareButtonExists(true);
},
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -44,35 +44,39 @@ describe("RichText - isolated", { tags: ["pre-merge_isolated_tiger"] }, () => {
});
});

describe("RichText - integrated", { tags: ["checklist_integrated_tiger"] }, () => {
beforeEach(() => {
Navigation.visit("dashboard/rich-text");
});
describe(
"RichText - integrated",
{ tags: ["checklist_integrated_tiger", "checklist_integrated_tiger_releng"] },
() => {
beforeEach(() => {
Navigation.visit("dashboard/rich-text");
});

it("should remove rich text widget and save it", () => {
editMode.edit();
widget.getRichText().remove();
dashboardMenu.toggle();
header.saveAsNew("RichText With Removed Widget");
widget.getRichText().notExist();
});
it("should remove rich text widget and save it", () => {
editMode.edit();
widget.getRichText().remove();
dashboardMenu.toggle();
header.saveAsNew("RichText With Removed Widget");
widget.getRichText().notExist();
});

it("should add rich text widget and save it", () => {
editMode.edit();
it("should add rich text widget and save it", () => {
editMode.edit();

layoutRow.addRichTextWidget();
const addedRichText = addedWidget.getRichText();
addedRichText.exist();
addedRichText.updateContent("# Title 2\n\n![Image2](/image2.png)").confirmChanges();
layoutRow.addRichTextWidget();
const addedRichText = addedWidget.getRichText();
addedRichText.exist();
addedRichText.updateContent("# Title 2\n\n![Image2](/image2.png)").confirmChanges();

dashboardMenu.toggle();
header.saveAsNew("RichText With Added Widget");
dashboardMenu.toggle();
header.saveAsNew("RichText With Added Widget");

addedRichText
.getContentElement()
.find("img")
.should("exist")
.should("have.attr", "src", "/image2.png");
addedRichText.getContentElement().find("h1").should("exist").should("have.text", "Title 2");
});
});
addedRichText
.getContentElement()
.find("img")
.should("exist")
.should("have.attr", "src", "/image2.png");
addedRichText.getContentElement().find("h1").should("exist").should("have.text", "Title 2");
});
},
);
Loading

0 comments on commit 01da1b3

Please sign in to comment.