-
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: Cypress - added @tag.excludeForAirgap, @tag.Templates tags (#29790
) ## Description > Added excludeForAirgap tgs #### Type of change - Chore (housekeeping or task changes that don't impact user perception) ## Testing > running tbp > /ok-to-test tags="@tag.excludeForAirgap" #### How Has This Been Tested? - [ ] Manual - [ ] Cypress > > ## Checklist: #### Dev activity - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Test Enhancements** - Improved test descriptions and added relevant tags for better categorization and filtering across various test suites. - Consolidated test logic and descriptions for clarity and coherence in test suites. - **Bug Fixes** - Updated test cases to reflect accurate scenarios for bugs and feature testing. - Adjusted test sequences and assertions for enhanced reliability and coverage. - **Refactor** - Restructured test suites for a more logical flow and clearer objectives. - Enhanced test setup steps and assertions for comprehensive validation. - **Chores** - Implemented a new tagging functionality for organizing test suites and cases. - Added new tags to the tagging system for improved test management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
1 parent
830ccaa
commit 0ce1780
Showing
53 changed files
with
1,494 additions
and
1,425 deletions.
There are no files selected for viewing
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
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
73 changes: 34 additions & 39 deletions
73
app/client/cypress/e2e/Regression/ClientSide/BugTests/Bug22281_WelcomeTour_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 |
---|---|---|
@@ -1,43 +1,38 @@ | ||
import * as _ from "../../../../support/Objects/ObjectsCore"; | ||
|
||
describe( | ||
"excludeForAirgap", | ||
"Welcome tour spec", | ||
{ tags: ["@tag.excludeForAirgap"] }, | ||
function () { | ||
it("1. Bug: 22275: Debugger should not render in preview mode", function () { | ||
//Open debugger | ||
_.agHelper.GetNClick(_.debuggerHelper.locators._debuggerIcon); | ||
//Enter preview mode | ||
_.agHelper.GetNClick(_.locators._enterPreviewMode); | ||
//verify debugger is not present | ||
_.agHelper.AssertElementAbsence(_.locators._errorTab); | ||
//Exit preview mode | ||
_.agHelper.GetNClick(_.locators._exitPreviewMode); | ||
//verify debugger is present | ||
_.agHelper.GetNAssertContains(_.locators._errorTab, "Errors"); | ||
}); | ||
it("2. Bug: 22281: Debugger should not open by default in welcome tour", function () { | ||
//Get back to application page | ||
_.homePage.NavigateToHome(); | ||
_.agHelper.WaitUntilEleAppear(_.homePage._homePageAppCreateBtn); | ||
|
||
// Temporary workaround until https://github.com/appsmithorg/appsmith/issues/24665 is fixed | ||
_.agHelper.GenerateUUID(); | ||
cy.get("@guid").then((uid) => { | ||
_.homePage.CreateNewWorkspace("GuidedtourWorkspace" + uid); | ||
_.homePage.CreateAppInWorkspace( | ||
"GuidedtourWorkspace" + uid, | ||
`GuidedtourApp${uid}`, | ||
); | ||
_.homePage.NavigateToHome(); | ||
}); | ||
describe("Welcome tour spec", { tags: ["@tag.excludeForAirgap"] }, function () { | ||
it("1. Bug: 22275: Debugger should not render in preview mode", function () { | ||
//Open debugger | ||
_.agHelper.GetNClick(_.debuggerHelper.locators._debuggerIcon); | ||
//Enter preview mode | ||
_.agHelper.GetNClick(_.locators._enterPreviewMode); | ||
//verify debugger is not present | ||
_.agHelper.AssertElementAbsence(_.locators._errorTab); | ||
//Exit preview mode | ||
_.agHelper.GetNClick(_.locators._exitPreviewMode); | ||
//verify debugger is present | ||
_.agHelper.GetNAssertContains(_.locators._errorTab, "Errors"); | ||
}); | ||
it("2. Bug: 22281: Debugger should not open by default in welcome tour", function () { | ||
//Get back to application page | ||
_.homePage.NavigateToHome(); | ||
_.agHelper.WaitUntilEleAppear(_.homePage._homePageAppCreateBtn); | ||
|
||
//Start welcome tour | ||
_.agHelper.GetNClick(_.homePage._welcomeTour); | ||
_.agHelper.WaitUntilEleAppear(_.homePage._welcomeTourBuildingButton); | ||
//Verify debugger is not present | ||
_.agHelper.AssertElementAbsence(_.locators._errorTab); | ||
// Temporary workaround until https://github.com/appsmithorg/appsmith/issues/24665 is fixed | ||
_.agHelper.GenerateUUID(); | ||
cy.get("@guid").then((uid) => { | ||
_.homePage.CreateNewWorkspace("GuidedtourWorkspace" + uid); | ||
_.homePage.CreateAppInWorkspace( | ||
"GuidedtourWorkspace" + uid, | ||
`GuidedtourApp${uid}`, | ||
); | ||
_.homePage.NavigateToHome(); | ||
}); | ||
}, | ||
); | ||
|
||
//Start welcome tour | ||
_.agHelper.GetNClick(_.homePage._welcomeTour); | ||
_.agHelper.WaitUntilEleAppear(_.homePage._welcomeTourBuildingButton); | ||
//Verify debugger is not present | ||
_.agHelper.AssertElementAbsence(_.locators._errorTab); | ||
}); | ||
}); |
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
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
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
Oops, something went wrong.