fix: share app test cypress test (#27719)
## Description Share App test failing is fixed #### PR fixes following issue(s) Fixes # (issue number) > if no issue exists, please create an issue and ask the maintainers about this first > > #### Media > A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video > > #### Type of change > Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - Chore (housekeeping or task changes that don't impact user perception) - This change requires a documentation update > > > ## Testing > #### How Has This Been Tested? > Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration. > Delete anything that is not relevant - [ ] Manual - [ ] JUnit - [ ] Jest - [ ] Cypress > > #### Test Plan > Add Testsmith test cases links that relate to this PR > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## 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 commit is contained in:
parent
6c0dc2e89f
commit
f75dff3303
|
|
@ -1,6 +1,7 @@
|
|||
import { ObjectsRegistry } from "../Objects/Registry";
|
||||
import { REPO, CURRENT_REPO } from "../../fixtures/REPO";
|
||||
import HomePageLocators from "../../locators/HomePage";
|
||||
import SignupPageLocators from "../../locators/SignupPage";
|
||||
export class HomePage {
|
||||
private agHelper = ObjectsRegistry.AggregateHelper;
|
||||
private locator = ObjectsRegistry.CommonLocators;
|
||||
|
|
@ -364,9 +365,8 @@ export class HomePage {
|
|||
this.agHelper.GetNClick(this._submitBtn);
|
||||
this.agHelper.Sleep(1000);
|
||||
cy.get("body").then(($body) => {
|
||||
if ($body.find(this.roleDropdown).length > 0) {
|
||||
this.agHelper.GetNClick(this.roleDropdown);
|
||||
this.agHelper.GetNClick(this.dropdownOption);
|
||||
if ($body.find(SignupPageLocators.proficiencyGroupButton).length > 0) {
|
||||
this.agHelper.GetNClick(SignupPageLocators.proficiencyGroupButton);
|
||||
this.agHelper.GetNClick(this.useCaseDropdown);
|
||||
this.agHelper.GetNClick(this.dropdownOption);
|
||||
this.agHelper.GetNClick(this.roleUsecaseSubmit, undefined, true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user