Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Cypress | Replace static with Dynamic waits - Part II #29557

Merged
merged 26 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
93e9e9a
CommunityIssues_Spec.ts removed wait
Aishwarya-U-R Dec 12, 2023
6e8cc7c
run only
Aishwarya-U-R Dec 12, 2023
4a03257
EchoApiCMS_spec remove wait
Aishwarya-U-R Dec 12, 2023
8140e1f
ImportExportForkApplication_spec remove wait
Aishwarya-U-R Dec 12, 2023
22224ba
Apps/ImportExportForkApplication_spec.js fix
Aishwarya-U-R Dec 12, 2023
fa50741
run all
Aishwarya-U-R Dec 12, 2023
ccb6e3c
remove wait from others
Aishwarya-U-R Dec 12, 2023
98139f1
Promises_app spec fix
Aishwarya-U-R Dec 12, 2023
4820906
run all
Aishwarya-U-R Dec 12, 2023
f75aa8e
Listv2_BasicServerSideData_spec fix
Aishwarya-U-R Dec 12, 2023
3e2b18b
ListV2_PageNo_PageSize_spec fix
Aishwarya-U-R Dec 12, 2023
52257bb
/Datasources/MockDBs_Spec.ts fix
Aishwarya-U-R Dec 12, 2023
3ff46ab
Listv2_BasicServerSideData_spec fix
Aishwarya-U-R Dec 12, 2023
b27e6a9
ListV2_PageNo_PageSize_spec fix
Aishwarya-U-R Dec 12, 2023
7911808
Merge branch 'release' into test/dynamicwaitremove
Aishwarya-U-R Dec 13, 2023
a79e978
CommunityIssues_Spec clean up
Aishwarya-U-R Dec 13, 2023
752b6e4
ImportExportForkApplication_spec clean up
Aishwarya-U-R Dec 13, 2023
4484556
removing skips
Aishwarya-U-R Dec 13, 2023
ab477f7
cleanup
Aishwarya-U-R Dec 13, 2023
94cea34
cleanup
Aishwarya-U-R Dec 13, 2023
9b974bf
cleanup
Aishwarya-U-R Dec 13, 2023
1afa79a
cleanup
Aishwarya-U-R Dec 13, 2023
32025f7
fix
Aishwarya-U-R Dec 13, 2023
11a69b4
revert
Aishwarya-U-R Dec 13, 2023
bbe6299
revert
Aishwarya-U-R Dec 13, 2023
0a773a0
revert duplicate check
Aishwarya-U-R Dec 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ImportExportForkApplication_spec clean up
  • Loading branch information
Aishwarya-U-R committed Dec 13, 2023
commit 752b6e4f8492bb3641e9c63f77c147b3ac294980
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ describe(
repoName = repName;

cy.latestDeployPreview();
//cy.wait(2000);
cy.xpath("//span[text()='Curt50@gmail.com']")
.should("be.visible")
.click({ force: true });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ describe(

cy.get(homePageLocatores.importAppProgressWrapper).should("be.visible");
cy.wait("@importNewApplication").then((interception) => {
//cy.wait(100);
// should check reconnect modal openning
const { isPartialImport } = interception.response.body.data;
if (isPartialImport) {
// should reconnect button
dataSources.ReconnectSingleDSNAssert("mockdata", "PostgreSQL");
homePage.AssertNCloseImport();
//cy.wait(2000);
} else {
cy.get(homePageLocatores.toastMessage).should(
"contain",
Expand All @@ -48,18 +46,15 @@ describe(
cy.get(homePageLocatores.portalMenuItem)
.contains("Rename", { matchCase: false })
.click({ force: true });
//cy.wait(2000);
cy.get(homePageLocatores.applicationName + " input").type(appName, {
force: true,
});
agHelper.ClickOutside();
cy.wait("@updateApplication")
.its("response.body.responseMeta.status")
.should("eq", 200);
//cy.wait(2000);
cy.wrap(appName).as("appname");
});
//cy.wait(3000);
// validating data binding for the imported application
cy.xpath("//input[@value='Submit']").should("be.visible");
cy.xpath("//span[text()='schema_name']").should("be.visible");
Expand All @@ -73,12 +68,10 @@ describe(
// fork application
homePage.NavigateToHome();
cy.get(homePageLocatores.searchInput).type(`${appName}`);
//cy.wait(3000);
// cy.get(homePage.applicationCard).first().trigger("mouseover");
cy.get(homePageLocatores.appMoreIcon).first().click({ force: true });
cy.get(homePageLocatores.forkAppFromMenu).click({ force: true });
cy.get(homePageLocatores.forkAppWorkspaceButton).click({ force: true });
//cy.wait(4000);
// validating data binding for the forked application
cy.xpath("//input[@value='Submit']").should("be.visible");
cy.xpath("//span[text()='schema_name']").should("be.visible");
Expand All @@ -90,7 +83,6 @@ describe(
it("3. Export and import application and validate data binding for the widgets", function () {
homePage.NavigateToHome();
cy.get(homePageLocatores.searchInput).clear().type(`${appName}`);
//cy.wait(2000);
//cy.get(homePageLocatores.applicationCard).first().trigger("mouseover");
cy.get(homePageLocatores.appMoreIcon).first().click({ force: true });
// export application
Expand Down Expand Up @@ -123,11 +115,8 @@ describe(
"cypress/fixtures/exportedApp.json",
{ force: true },
);
if (!Cypress.env("AIRGAPPED")) {
if (!Cypress.env("AIRGAPPED"))
assertHelper.AssertNetworkStatus("@getReleaseItems");
} else {
//agHelper.Sleep(2000);
}

// import exported application in new workspace
// cy.get(homePageLocatores.workspaceImportAppButton).click({ force: true });
Expand All @@ -139,7 +128,6 @@ describe(
cy.get(reconnectDatasourceModal.SkipToAppBtn).click({
force: true,
});
//cy.wait(2000);
} else {
cy.get(homePageLocatores.toastMessage).should(
"contain",
Expand Down
2 changes: 2 additions & 0 deletions app/client/cypress/limited-tests.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# To run only limited tests - give the spec names in below format:
#cypress/e2e/Regression/ClientSide/Templates/Fork_Template_spec.js
cypress/e2e/Regression/Apps/CommunityIssues_Spec.ts
cypress/e2e/Regression/Apps/EchoApiCMS_spec.js
cypress/e2e/Regression/Apps/ImportExportForkApplication_spec.js

# For running all specs - uncomment below:
#cypress/e2e/**/**/*
Expand Down