Skip to content

Commit

Permalink
test: udpated locator for GenetateCrud test (appsmithorg#37000)
Browse files Browse the repository at this point in the history
Airgap test was failing because it was not able to click a particular
dropdown.
EE: appsmithorg/appsmith-ee#5412

/ok-to-test tags="@tag.Sanity"

<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/11457437998>
> Commit: 8ca5c36
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11457437998&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`
> Spec:
> <hr>Tue, 22 Oct 2024 10:45:27 UTC
<!-- end of auto-generated comment: Cypress test results  -->

---------

Co-authored-by: “NandanAnantharamu” <“nandan@thinkify.io”>
  • Loading branch information
NandanAnantharamu and “NandanAnantharamu” authored Oct 22, 2024
1 parent 05add4a commit 1635d49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cypress/support/Pages/DataSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,7 @@ export class DataSources {
datasourceName,
);
this.agHelper.GetNClick(this._selectTableDropdown, 0, true);
cy.get(
`div[role="listbox"] p[kind="span"]:contains("${tableName}")`,
).click();
cy.get(`div[role="listbox"] p:contains("${tableName}")`).click();
this.agHelper.GetNClick(this._generatePageBtn);
this.assertHelper.AssertNetworkStatus("@replaceLayoutWithCRUDPage", 201);
this.agHelper.ClickButton("Got it");
Expand Down

0 comments on commit 1635d49

Please sign in to comment.