Skip to content

Commit

Permalink
Merge pull request #299 from NucleoidAI/fix-query-page-cypress
Browse files Browse the repository at this point in the history
Fix query page Cypress issue
  • Loading branch information
canmingir authored Jun 20, 2024
2 parents 39f127c + 5bb54f5 commit e200283
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cypress/e2e/query.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe("Query", () => {
.find('[data-cy="object"]')
.should("have.text", "{id:1}");
});
it("display object with value when result is a value", () => {
it("displays object with value when result is a value", () => {
cy.intercept("POST", "http://localhost:3000", {
fixture: "Query/query.json",
}).as("valueQuery");
Expand All @@ -143,7 +143,7 @@ describe("Query", () => {
.find('[data-cy="value"]')
.should("have.text", "{value:1}");
});
it("display success icon only when result is empty", function () {
it("displays success icon only when result is empty", function () {
cy.intercept("POST", "http://localhost:3000", {
fixture: "Query/query.empty.json",
}).as("emptyQuery");
Expand All @@ -152,12 +152,14 @@ describe("Query", () => {
cy.typeEditor(value);
cy.getBySel("query-button").click();

cy.waitEvent("SWAGGER_DIALOG");

cy.getBySel("query-result-widget").find("[data-cy=time]").should("exist");
cy.getBySel("query-result-widget")
.find("[data-cy=done-icon]")
.should("exist");
});
it("display array tree and data grid when result is an array", () => {
it("displays array tree and data grid when result is an array", () => {
cy.intercept("POST", "http://localhost:3000", {
fixture: "Query/query.array.json",
}).as("arrayQuery");
Expand Down

0 comments on commit e200283

Please sign in to comment.