Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitakinger committed Nov 15, 2024
1 parent af7153e commit d9a64cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe(
dataSources._dropdownOption,
"worldCountryInfo",
);
agHelper.GetNClick(dataSources._generatePageBtn);

GenerateCRUDNValidateDeployPage("ABW", "Aruba", "North America", "Code");

Expand Down Expand Up @@ -93,6 +94,7 @@ describe(
assertHelper.AssertNetworkStatus("@getDatasourceStructure"); //Making sure table dropdown is populated
agHelper.GetNClick(dataSources._selectTableDropdown, 0, true);
agHelper.GetNClickByContains(dataSources._dropdownOption, "customers");
agHelper.GetNClick(dataSources._generatePageBtn);

GenerateCRUDNValidateDeployPage(
"103",
Expand All @@ -110,6 +112,7 @@ describe(
it("3. Generate CRUD page from datasource present in ACTIVE section", function () {
EditorNavigation.SelectEntityByName(dsName, EntityType.Datasource);
dataSources.SelectTableFromPreviewSchemaList("employees");
agHelper.GetNClick(dataSources._datasourceCardGeneratePageBtn);

GenerateCRUDNValidateDeployPage(
"1002",
Expand Down Expand Up @@ -311,9 +314,6 @@ describe(
col3Text: string,
jsonFromHeader: string,
) {
agHelper.GetNClick(
`${dataSources._generatePageBtn}, ${dataSources._datasourceCardGeneratePageBtn}`,
);
assertHelper.AssertNetworkStatus("@replaceLayoutWithCRUDPage", 201);
agHelper.AssertContains("Successfully generated a page");
//assertHelper.AssertNetworkStatus("@getActions", 200);//Since failing sometimes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,7 @@ describe(
col3Text: string,
jsonFromHeader: string,
) {
agHelper.GetNClick(
`${dataSources._generatePageBtn}, ${dataSources._datasourceCardGeneratePageBtn}`,
);
agHelper.GetNClick(dataSources._datasourceCardGeneratePageBtn);
assertHelper.AssertNetworkStatus("@replaceLayoutWithCRUDPage", 201);
agHelper.AssertContains("Successfully generated a page");
//assertHelper.AssertNetworkStatus("@getActions", 200);//Since failing sometimes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe(
assertHelper.AssertNetworkStatus("@getDatasourceStructure"); //Making sure table dropdown is populated
agHelper.GetNClick(dataSources._selectTableDropdown, 0, true);
agHelper.GetNClickByContains(dataSources._dropdownOption, "film");
agHelper.GetNClick(dataSources._generatePageBtn);

GenerateCRUDNValidateDeployPage(
"ACADEMY DINOSAUR",
Expand Down Expand Up @@ -86,6 +87,7 @@ describe(
assertHelper.AssertNetworkStatus("@getDatasourceStructure"); //Making sure table dropdown is populated
agHelper.GetNClick(dataSources._selectTableDropdown, 0, true);
agHelper.GetNClickByContains(dataSources._dropdownOption, "suppliers");
agHelper.GetNClick(dataSources._generatePageBtn);

GenerateCRUDNValidateDeployPage(
"Exotic Liquids",
Expand All @@ -104,6 +106,7 @@ describe(
it("3. Generate CRUD page from datasource present in ACTIVE section", function () {
EditorNavigation.SelectEntityByName(dsName, EntityType.Datasource);
dataSources.SelectTableFromPreviewSchemaList("public.orders");
agHelper.GetNClick(dataSources._datasourceCardGeneratePageBtn);

GenerateCRUDNValidateDeployPage(
"VINET",
Expand Down Expand Up @@ -135,9 +138,6 @@ describe(
col3Text: string,
jsonFromHeader: string,
) {
agHelper.GetNClick(
`${dataSources._generatePageBtn}, ${dataSources._datasourceCardGeneratePageBtn}`,
);
assertHelper.AssertNetworkStatus("@replaceLayoutWithCRUDPage", 201);
agHelper.AssertContains("Successfully generated a page");
//assertHelper.AssertNetworkStatus("@getActions", 200);//Since failing sometimes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe(
200,
);

agHelper.AssertContains("Generate from data");
agHelper.AssertContains("Generate page from data");
agHelper.GetNClick(generatePage.selectTableDropdown);
agHelper.GetNClickByContains(
generatePage.dropdownOption,
Expand Down

0 comments on commit d9a64cc

Please sign in to comment.