Skip to content

Commit

Permalink
udpated test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
“NandanAnantharamu” committed Nov 14, 2024
1 parent 8c9026c commit 5c0764d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
entityItems,
locators,
} from "../../../../support/Objects/ObjectsCore";
import { EntityType } from "../../../../support/Pages/EditorNavigation";
import PageList from "../../../../support/Pages/PageList";

const fixtureName = "ImportExport.json";
Expand Down Expand Up @@ -69,6 +70,12 @@ describe(
"Queries",
["Api1"],
);

agHelper.selectAndValidateWidgetNameAndProperty({
widgetName: "Table1",
propFieldName: "Table data",
valueToValidate: "{{Api1.data}}",
});
});

it("2. Should be able to import again in the same Page", () => {
Expand All @@ -78,9 +85,21 @@ describe(
"Widgets",
["Table1", "Button1"],
);

agHelper.AssertElementLength(`${locators._widgetInDeployed('tablewidgetv2')}`, 2);
agHelper.AssertElementLength(`${locators._widgetInDeployed('buttonwidget')}`, 2);

agHelper.selectAndValidateWidgetNameAndProperty({
widgetName: "Table1",
propFieldName: "Table data",
valueToValidate: "{{Api1.data}}",
});

agHelper.AssertElementLength(
`${locators._widgetInDeployed("tablewidgetv2")}`,
2,
);
agHelper.AssertElementLength(
`${locators._widgetInDeployed("buttonwidget")}`,
2,
);
});

it("3. Should import the Page into new application", () => {
Expand All @@ -102,6 +121,12 @@ describe(
"Queries",
["Api1"],
);

agHelper.selectAndValidateWidgetNameAndProperty({
widgetName: "Table1",
propFieldName: "Table data",
valueToValidate: "{{Api1.data}}",
});
});
},
);
2 changes: 1 addition & 1 deletion app/client/cypress/limited-tests.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# To run only limited tests - give the spec names in below format:
cypress/e2e/Regression/ClientSide/Templates/Fork_Template_spec.js
cypress/e2e/Regression/ClientSide/PartialImportExport/PartialImportExportWithinNewPageAndApp.ts
# For running all specs - uncomment below:
#cypress/e2e/**/**/*

Expand Down

0 comments on commit 5c0764d

Please sign in to comment.