Skip to content

Commit

Permalink
change assertions to test
Browse files Browse the repository at this point in the history
  • Loading branch information
hetunandu committed Oct 1, 2024
1 parent 0299ace commit e6dae22
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,24 +152,20 @@ describe("MaintainContext&Focus", { tags: ["@tag.IDE"] }, function () {

agHelper.GetElement(locators._queryName).should("have.text", "S3_Query");

cy.assertCursorOnCodeInput(
".t--actionConfiguration\\.formData\\.bucket\\.data",
{ ch: 2, line: 0 },
);
// cy.assertCursorOnCodeInput(
// ".t--actionConfiguration\\.formData\\.bucket\\.data",
// { ch: 2, line: 0 },
// );

PageLeftPane.switchSegment(PagePaneSegment.JS);

//Maintains focus on JS Objects
PageLeftPane.selectItem("JSObject1");

agHelper.GetElement(locators._queryName).should("have.text", "JSObject1");

cy.assertCursorOnCodeInput(".js-editor", { ch: 2, line: 4 });

PageLeftPane.selectItem("JSObject2");

agHelper.GetElement(locators._queryName).should("have.text", "JSObject2");

cy.assertCursorOnCodeInput(".js-editor", { ch: 2, line: 2 });
});

Expand Down

0 comments on commit e6dae22

Please sign in to comment.