Skip to content

Commit

Permalink
fix: setting tab selector fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albinAppsmith committed Nov 4, 2024
1 parent 870de4b commit 9bb8064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/client/cypress/support/Pages/JSEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class JSEditor {

//#region Element locators
_runButton = "[data-testid='t--run-js-action']";
_settingsTab = "//span[text()='Settings']/parent::button";
_settingsTab = "[data-testid='t--js-editor-SETTINGS']";
_codeTab = "//span[text()='Code']/parent::button";
private _jsObjectParseErrorCallout =
"div.t--js-response-parse-error-call-out";
Expand Down Expand Up @@ -277,7 +277,7 @@ export class JSEditor {
// Set onPageLoad
this.agHelper.CheckUncheck(this._onPageLoadSwitch(funName), onLoad);
// Return to code tab
this.agHelper.GetNClick(this._codeTab);
this.agHelper.GetNClick(this._settingsTab);
}

/**
Expand Down

0 comments on commit 9bb8064

Please sign in to comment.