-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: regression tests for import flow (#38457)
Added test for import app validation at app level /ok-to-test tags="@tag.All" <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/12653467361> > Commit: 1ac6a57 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12653467361&attempt=2" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Wed, 08 Jan 2025 04:28:32 UTC <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Tests** - Added a new test suite to verify import functionality for applications - Implemented test case to check import options and data source validation at the app level - **New Features** - Added new locators for import button and list item title to support testing <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: “NandanAnantharamu” <“[email protected]”>
- Loading branch information
1 parent
057c626
commit 2dadb16
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
app/client/cypress/e2e/Regression/ClientSide/PartialImportExport/VerifyImport_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { | ||
agHelper, | ||
homePage, | ||
gitSync, | ||
appSettings, | ||
locators, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
import EditorNavigation, { | ||
AppSidebar, | ||
AppSidebarButton, | ||
} from "../../../../support/Pages/EditorNavigation"; | ||
import ReconnectLocators from "../../../../locators/ReconnectLocators"; | ||
|
||
describe("Tests Import option for normal apps at app level", {}, () => { | ||
before(() => { | ||
gitSync.CreateNConnectToGit(); | ||
}); | ||
|
||
it("1. Verify Import Option at app level", () => { | ||
let Datasource = [ | ||
"AWSLambda", | ||
"Airtable", | ||
"GSheets_RWDSelected", | ||
"GSheets_RWDAll", | ||
"Hubspot", | ||
"gsheet", | ||
"Twilio", | ||
"Dynamo", | ||
"ElasticSearch", | ||
"Firestore", | ||
"Movies", | ||
"Mongo", | ||
"Oracle", | ||
"Redshift", | ||
"PostGreSQL", | ||
"SMTP", | ||
"Snowflake", | ||
"S3", | ||
"Oauth2.0", | ||
"Pixabay", | ||
"OpenAI", | ||
]; | ||
AppSidebar.navigate(AppSidebarButton.Settings); | ||
agHelper.GetNClick(appSettings.locators._importHeader); | ||
agHelper.AssertElementEnabledDisabled(appSettings.locators._importBtn); | ||
|
||
homePage.NavigateToHome(); | ||
homePage.CreateNewApplication(); | ||
AppSidebar.navigate(AppSidebarButton.Settings); | ||
agHelper.GetNClick(appSettings.locators._importHeader); | ||
agHelper.AssertElementEnabledDisabled( | ||
appSettings.locators._importBtn, | ||
0, | ||
false, | ||
); | ||
agHelper.GetNClick(appSettings.locators._importBtn); | ||
homePage.ImportApp("TryToCoverMore.json", "", true); | ||
agHelper.GetNClick(ReconnectLocators.SkipToAppBtn); | ||
|
||
AppSidebar.navigate(AppSidebarButton.Data); | ||
Datasource.forEach((ds) => { | ||
agHelper.GetNAssertContains(locators._listItemTitle, ds); | ||
}); | ||
}); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters