Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: unified response view component #37897

Merged
merged 62 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
cb597f4
chore: update tabs paddings
alex-golovanov Nov 11, 2024
d28b531
chore: update button text
alex-golovanov Nov 11, 2024
52654af
feat: add response type selector icons
alex-golovanov Nov 12, 2024
94d376d
feat: change selector to menu & update spacing/layout
alex-golovanov Nov 12, 2024
ccacb12
feat: adjust sizing & spacing
alex-golovanov Nov 12, 2024
ee36111
Merge branch 'release' into feat/35290-update-response-tab-ui
alex-golovanov Nov 12, 2024
cf838f4
chore: remove test condition
alex-golovanov Nov 13, 2024
c755b34
chore: add common constants
alex-golovanov Nov 13, 2024
3c6a107
feat: update design
alex-golovanov Nov 13, 2024
57792a2
feat: update design & switch to minWtidth
alex-golovanov Nov 13, 2024
d78847f
chore: switch to common tab bar height & update type
alex-golovanov Nov 13, 2024
70c4e99
chore: correct size & fix potential bug
alex-golovanov Nov 13, 2024
2ecd266
fix: switch from hook&refs to direct event handlers
alex-golovanov Nov 13, 2024
c741a2f
fix: account for scrollbar width
alex-golovanov Nov 14, 2024
7df6776
chore: add status bar for error state
alex-golovanov Nov 14, 2024
87d79d5
Merge branch 'release' into feat/35290-update-response-tab-ui
alex-golovanov Nov 18, 2024
041e7b6
chore: fix response type selector tests
alex-golovanov Nov 18, 2024
693df86
Merge branch 'release' into feat/35290-update-response-tab-ui
alex-golovanov Nov 18, 2024
fa3ede6
chore: test fixes
alex-golovanov Nov 19, 2024
66f044b
test: add record count test
alex-golovanov Nov 19, 2024
9a4fbbe
fix: added default record count of 1 for cud operations
alex-golovanov Nov 20, 2024
a1f02f4
feat: add record checking & improve content type checking
alex-golovanov Nov 20, 2024
fe16e7d
chore: fix unit tests
alex-golovanov Nov 20, 2024
7ce1bd4
chore: remove detached tests
alex-golovanov Nov 20, 2024
97ada3d
chore: change record count params
alex-golovanov Nov 20, 2024
9d827b7
fix: make operator optional & add a default
alex-golovanov Nov 21, 2024
2f3e880
chore: update conditions
alex-golovanov Nov 21, 2024
3f1d3f2
chore: update message
alex-golovanov Nov 21, 2024
7bb20a6
chore: uncomment
alex-golovanov Nov 21, 2024
11f5301
Merge branch 'release' into feat/35290-update-response-tab-ui
alex-golovanov Nov 21, 2024
8ed3ec7
Merge branch 'release' into feat/35290-update-response-tab-ui
alex-golovanov Nov 21, 2024
6424e5d
chore: move warning beneath error
alex-golovanov Nov 21, 2024
89a5f23
chore: move styles to a separate file
alex-golovanov Nov 25, 2024
640f2ed
Merge branch 'release' into feat/35290-update-response-tab-ui
alex-golovanov Nov 25, 2024
ffab690
feat: add helpers for response pane
alex-golovanov Dec 2, 2024
13f9998
feat: extract content type selector into a component
alex-golovanov Dec 2, 2024
2cc6d88
feat: extract response into a separate compoent
alex-golovanov Dec 2, 2024
fb58e7a
chore: replace separate response components with a common one
alex-golovanov Dec 2, 2024
ef819b6
Merge branch 'release' into feat/37759-unified-response-view
alex-golovanov Dec 2, 2024
30009b5
chore: remove api response component
alex-golovanov Dec 2, 2024
c39cb0a
chore: move unit tests
alex-golovanov Dec 2, 2024
de8595a
chore: remove old and unused response components
alex-golovanov Dec 2, 2024
201c0b6
chore: update response pane tests
alex-golovanov Dec 3, 2024
c9b436b
Merge branch 'release' into feat/37759-unified-response-view
alex-golovanov Dec 3, 2024
fdf7c85
chore: update locators
alex-golovanov Dec 3, 2024
4a01866
chore: update api status check
alex-golovanov Dec 3, 2024
9108168
chore: update response type selector
alex-golovanov Dec 3, 2024
d795689
chore: fix selectors & return query error display
alex-golovanov Dec 3, 2024
09c1478
test: add response type validator
alex-golovanov Dec 3, 2024
d21b052
chore: update test selectors
alex-golovanov Dec 3, 2024
52383e8
chore: rename bottom pane
alex-golovanov Dec 3, 2024
5479c4f
fix: add tooltip for errors
alex-golovanov Dec 4, 2024
cdc41fe
perf: extract error view into a component
alex-golovanov Dec 4, 2024
c9bcbc0
Merge branch 'release' into feat/37759-unified-response-view
alex-golovanov Dec 4, 2024
bd066b3
fix: add a guard & change status message format for api
alex-golovanov Dec 4, 2024
319a819
chore: add pluralize
alex-golovanov Dec 6, 2024
4690642
perf: improve record count display & improve its display check
alex-golovanov Dec 6, 2024
8e96f45
Merge branch 'release' into feat/37759-unified-response-view
alex-golovanov Dec 6, 2024
25d6dd9
chore: change hover behavior for status checks
alex-golovanov Dec 9, 2024
67e874b
Merge branch 'release' into feat/37759-unified-response-view
alex-golovanov Dec 9, 2024
17e9e73
Merge branch 'release' into feat/37759-unified-response-view
alex-golovanov Dec 9, 2024
5263092
chore: update locator
alex-golovanov Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions app/client/cypress/e2e/GSheet/AllAccess_Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe.skip(
dataSourceName,
spreadSheetName,
);
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].uniq_id);
dataSources.AssertQueryTableResponse(1, "ホーンビィ 2014 カタログ"); // Asserting other language
dataSources.AssertQueryTableResponse(2, "₹, $, €, ¥, £"); // Asserting different symbols
Expand All @@ -135,7 +135,7 @@ describe.skip(
// Update query to fetch only 1 column and verify
gsheetHelper.SelectMultiDropDownValue("Columns", "product_name");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].product_name);

//Remove column filter and add Sort By Ascending and verify
Expand All @@ -145,7 +145,7 @@ describe.skip(
directInput: false,
inputFieldName: "Sort By",
});
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
0,
"5afbaf65680c9f378af5b3a3ae22427e",
Expand All @@ -161,7 +161,7 @@ describe.skip(
dataSources.ClearSortByOption(); //clearing previous sort option
dataSources.EnterSortByValues("price", "Descending");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
1,
"ホーンビー ゲージ ウェスタン エクスプレス デジタル トレイン セット (eLink および TTS ロコ トレイン セット付き)",
Expand All @@ -181,7 +181,7 @@ describe.skip(
dataSources._nestedWhereClauseValue(0),
);
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(8);
dataSources.runQueryAndVerifyResponseViews({ count: 8 });
dataSources.AssertQueryTableResponse(
0,
"87bbb472ef9d90dcef140a551665c929",
Expand All @@ -199,7 +199,7 @@ describe.skip(
inputFieldName: "Cell range",
});
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(4);
dataSources.runQueryAndVerifyResponseViews({ count: 4 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down Expand Up @@ -246,7 +246,7 @@ describe.skip(
0,
true,
);
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down Expand Up @@ -281,7 +281,7 @@ describe.skip(
true,
); // Converting the field to dropdown
dataSources.ValidateNSelectDropdown("Sheet name", "", "Sheet1");
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down
4 changes: 2 additions & 2 deletions app/client/cypress/e2e/GSheet/GsheetMisc_Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe.skip(
dataSources.ValidateNSelectDropdown("Entity", "Sheet Row(s)");
dataSources.ValidateNSelectDropdown("Spreadsheet", "", spreadSheetName);
dataSources.ValidateNSelectDropdown("Sheet name", "", "Sheet1");
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryResponseHeaders(columnHeaders);
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].uniq_id);
dataSources.AssertQueryTableResponse(1, "ホーンビィ 2014 カタログ"); // Asserting other language
Expand All @@ -104,7 +104,7 @@ describe.skip(
dataSources.ValidateNSelectDropdown("Entity", "Sheet Row(s)");
dataSources.ValidateNSelectDropdown("Spreadsheet", "", spreadSheetName);
dataSources.ValidateNSelectDropdown("Sheet name", "", "Sheet1");
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryResponseHeaders(columnHeaders);
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].uniq_id);
dataSources.AssertQueryTableResponse(1, "ホーンビィ 2014 カタログ"); // Asserting other language
Expand Down
16 changes: 8 additions & 8 deletions app/client/cypress/e2e/GSheet/ReadNWrite_Access_Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ describe.skip(
dataSourceName.readNWrite,
spreadSheetName,
);
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].uniq_id);
dataSources.AssertQueryTableResponse(1, "ホーンビィ 2014 カタログ"); // Asserting other language
dataSources.AssertQueryTableResponse(2, "₹, $, €, ¥, £"); // Asserting different symbols
dataSources.AssertQueryTableResponse(3, "!@#$%^&*"); // Asserting special chars
// Update query to fetch only 1 column and verify
gsheetHelper.SelectMultiDropDownValue("Columns", "product_name");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].product_name);
//Remove column filter and add Sort By Ascending and verify
gsheetHelper.SelectMultiDropDownValue("Columns", "product_name"); //unselect the Columns dd value
Expand All @@ -145,7 +145,7 @@ describe.skip(
directInput: false,
inputFieldName: "Sort By",
});
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
0,
"5afbaf65680c9f378af5b3a3ae22427e",
Expand All @@ -160,7 +160,7 @@ describe.skip(
dataSources.ClearSortByOption(); //clearing previous sort option
dataSources.EnterSortByValues("price", "Descending");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
1,
"ホーンビー ゲージ ウェスタン エクスプレス デジタル トレイン セット (eLink および TTS ロコ トレイン セット付き)",
Expand All @@ -179,7 +179,7 @@ describe.skip(
dataSources._nestedWhereClauseValue(0),
);
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(8);
dataSources.runQueryAndVerifyResponseViews({ count: 8 });
dataSources.AssertQueryTableResponse(
0,
"87bbb472ef9d90dcef140a551665c929",
Expand All @@ -196,7 +196,7 @@ describe.skip(
inputFieldName: "Cell range",
});
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(4);
dataSources.runQueryAndVerifyResponseViews({ count: 4 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down Expand Up @@ -242,7 +242,7 @@ describe.skip(
0,
true,
);
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down Expand Up @@ -275,7 +275,7 @@ describe.skip(
true,
); // Converting the field to dropdown
dataSources.ValidateNSelectDropdown("Sheet name", "", "Sheet1");
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down
16 changes: 8 additions & 8 deletions app/client/cypress/e2e/GSheet/ReadOnly_Access_Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ describe.skip(
dataSourceName.readOnly,
spreadSheetName,
);
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].uniq_id);
dataSources.AssertQueryTableResponse(1, "ホーンビィ 2014 カタログ"); // Asserting other language
dataSources.AssertQueryTableResponse(2, "₹, $, €, ¥, £"); // Asserting different symbols
dataSources.AssertQueryTableResponse(3, "!@#$%^&*"); // Asserting special chars
// Update query to fetch only 1 column and verify
gsheetHelper.SelectMultiDropDownValue("Columns", "product_name");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].product_name);
//Remove column filter and add Sort By Ascending and verify
gsheetHelper.SelectMultiDropDownValue("Columns", "product_name"); //unselect the Columns dd value
Expand All @@ -153,7 +153,7 @@ describe.skip(
directInput: false,
inputFieldName: "Sort By",
});
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
0,
"5afbaf65680c9f378af5b3a3ae22427e",
Expand All @@ -168,7 +168,7 @@ describe.skip(
dataSources.ClearSortByOption(); //clearing previous sort option
dataSources.EnterSortByValues("price", "Descending");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
1,
"ホーンビー ゲージ ウェスタン エクスプレス デジタル トレイン セット (eLink および TTS ロコ トレイン セット付き)",
Expand All @@ -187,7 +187,7 @@ describe.skip(
dataSources._nestedWhereClauseValue(0),
);
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(8);
dataSources.runQueryAndVerifyResponseViews({ count: 8 });
dataSources.AssertQueryTableResponse(
0,
"87bbb472ef9d90dcef140a551665c929",
Expand All @@ -204,7 +204,7 @@ describe.skip(
inputFieldName: "Cell range",
});
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(4);
dataSources.runQueryAndVerifyResponseViews({ count: 4 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand All @@ -224,7 +224,7 @@ describe.skip(
0,
true,
);
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down Expand Up @@ -257,7 +257,7 @@ describe.skip(
true,
); // Converting the field to dropdown
dataSources.ValidateNSelectDropdown("Sheet name", "", "Sheet1");
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down
16 changes: 8 additions & 8 deletions app/client/cypress/e2e/GSheet/SelectedSheet_Access_Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe(
dataSourceName,
spreadSheetName,
);
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].uniq_id);
dataSources.AssertQueryTableResponse(1, "ホーンビィ 2014 カタログ"); // Asserting other language
dataSources.AssertQueryTableResponse(2, "₹, $, €, ¥, £"); // Asserting different symbols
Expand All @@ -123,7 +123,7 @@ describe(
// Update query to fetch only 1 column and verify
gsheetHelper.SelectMultiDropDownValue("Columns", "product_name");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(0, GSHEET_DATA[0].product_name);

//Remove column filter and add Sort By Ascending and verify
Expand All @@ -133,7 +133,7 @@ describe(
directInput: false,
inputFieldName: "Sort By",
});
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
0,
"5afbaf65680c9f378af5b3a3ae22427e",
Expand All @@ -149,7 +149,7 @@ describe(
dataSources.ClearSortByOption(); //clearing previous sort option
dataSources.EnterSortByValues("price", "Descending");
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(GSHEET_DATA.length);
dataSources.runQueryAndVerifyResponseViews({ count: GSHEET_DATA.length });
dataSources.AssertQueryTableResponse(
1,
"ホーンビー ゲージ ウェスタン エクスプレス デジタル トレイン セット (eLink および TTS ロコ トレイン セット付き)",
Expand All @@ -169,7 +169,7 @@ describe(
dataSources._nestedWhereClauseValue(0),
);
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(8);
dataSources.runQueryAndVerifyResponseViews({ count: 8 });
dataSources.AssertQueryTableResponse(
0,
"87bbb472ef9d90dcef140a551665c929",
Expand All @@ -187,7 +187,7 @@ describe(
inputFieldName: "Cell range",
});
dataSources.RunQuery();
dataSources.RunQueryNVerifyResponseViews(4);
dataSources.runQueryAndVerifyResponseViews({ count: 4 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down Expand Up @@ -237,7 +237,7 @@ describe(
0,
true,
);
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down Expand Up @@ -272,7 +272,7 @@ describe(
true,
); // Converting the field to dropdown
dataSources.ValidateNSelectDropdown("Sheet name", "", "Sheet1");
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });
dataSources.AssertQueryTableResponse(
0,
"eac7efa5dbd3d667f26eb3d3ab504464",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe.skip(
dataSourceName,
spreadSheetName,
);
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });

// Adding suggested widgets and verify
dataSources.AddSuggestedWidget(Widgets.Table);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe(
dataSourceName,
spreadSheetName,
);
dataSources.RunQueryNVerifyResponseViews(10);
dataSources.runQueryAndVerifyResponseViews({ count: 10 });

// Adding suggested widgets and verify
dataSources.AddSuggestedWidget(Widgets.Table);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import EditorNavigation, {
EntityType,
} from "../../../../support/Pages/EditorNavigation";

import BottomTabs from "../../../../support/Pages/IDE/BottomTabs";

describe(
"Test Create Api and Bind to List widget",
{ tags: ["@tag.Binding"] },
Expand All @@ -24,7 +26,7 @@ describe(
it("1. Test_Add users api and execute api", function () {
apiPage.CreateAndFillApi(this.dataSet.userApi + "/mock-api?records=10");
cy.RunAPI();
cy.get(apiLocators.jsonResponseTab).click();
BottomTabs.response.selectResponseResponseTypeFromMenu("JSON");
cy.get(apiLocators.responseBody)
.contains("name")
.siblings("span")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const apiwidget = require("../../../../locators/apiWidgetslocator.json");
const testdata = require("../../../../fixtures/testdata.json");
import apiLocators from "../../../../locators/ApiEditor";
import * as _ from "../../../../support/Objects/ObjectsCore";
import BottomTabs from "../../../../support/Pages/IDE/BottomTabs";

describe(
"Bind a button and Api usecase",
Expand All @@ -28,7 +29,7 @@ describe(
.click({ force: true })
.type("{{Button1.text", { parseSpecialCharSequences: true });
cy.RunAPI();
cy.get(apiLocators.jsonResponseTab).click();
BottomTabs.response.selectResponseResponseTypeFromMenu("JSON");
cy.get(apiLocators.responseBody)
.contains("name")
.siblings("span")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe(
_.dataManager.dsValues[_.dataManager.defaultEnviorment].mockApiUrl,
);
_.apiPage.RunAPI();
BottomTabs.response.switchResponseType("JSON");
BottomTabs.response.selectResponseResponseTypeFromMenu("JSON");
_.apiPage.ReadApiResponsebyKey("name");
cy.get("@apiResp").then((value) => {
valueToTest = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
agHelper,
deployMode,
} from "../../../../support/Objects/ObjectsCore";
import BottomTabs from "../../../../support/Pages/IDE/BottomTabs";

describe(
"Test Create Api and Bind to Table widget V2",
Expand All @@ -21,7 +22,7 @@ describe(
it("1. Test_Add users api and execute api", function () {
cy.createAndFillApi(this.dataSet.userApi, "/mock-api?records=100");
cy.RunAPI();
cy.get(apiPage.jsonResponseTab).click();
BottomTabs.response.selectResponseResponseTypeFromMenu("JSON");
cy.get(apiPage.responseBody)
.contains("name")
.siblings("span")
Expand Down
Loading
Loading