test: exluding from airgap list of tests (#38596)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Tests** - Updated Cypress test suite for import functionality - Added tag to exclude test in specific environments <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: “NandanAnantharamu” <“nandan@thinkify.io”>
This commit is contained in:
parent
13d316db55
commit
d52a0f283a
|
|
@ -11,55 +11,59 @@ import EditorNavigation, {
|
|||
} 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);
|
||||
describe(
|
||||
"Tests Import option for normal apps at app level",
|
||||
{ tags: ["@tag.excludeForAirgap"] },
|
||||
() => {
|
||||
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);
|
||||
});
|
||||
});
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user