Skip to content

Commit

Permalink
one more test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hetunandu committed May 22, 2024
1 parent 6777f1f commit 79f2029
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ describe("IDE URL rendering of Queries", () => {
});

describe("Google Sheets Routes", () => {
const gsheetsDS = datasourceFactory().build({
const gSheetsDS = datasourceFactory().build({
name: "Sheet",
id: "GoogleSheetsDatasourceID",
});
Expand All @@ -512,7 +512,7 @@ describe("IDE URL rendering of Queries", () => {
const state = getIDETestState({
actions: [anQuery],
pages: [page],
datasources: [gsheetsDS],
datasources: [gSheetsDS],
tabs: {
[EditorEntityTab.QUERIES]: ["saas_api_id"],
[EditorEntityTab.JS]: [],
Expand Down Expand Up @@ -561,7 +561,7 @@ describe("IDE URL rendering of Queries", () => {
const state = getIDETestState({
actions: [anQuery],
pages: [page],
datasources: [gsheetsDS],
datasources: [gSheetsDS],
tabs: {
[EditorEntityTab.QUERIES]: ["saas_api_id"],
[EditorEntityTab.JS]: [],
Expand Down Expand Up @@ -647,15 +647,15 @@ describe("IDE URL rendering of Queries", () => {
});
it("Renders Google Sheets add routes in Split Screen", async () => {
const page = PageFactory.build();
const anQuery = PostgresFactory.build({
const anQuery = GoogleSheetFactory.build({
name: "Sheets4",
id: "saas_api_id",
pageId: page.pageId,
});
const state = getIDETestState({
actions: [anQuery],
pages: [page],
datasources: [gsheetsDS],
datasources: [gSheetsDS],
tabs: {
[EditorEntityTab.QUERIES]: ["saas_api_id"],
[EditorEntityTab.JS]: [],
Expand All @@ -675,7 +675,7 @@ describe("IDE URL rendering of Queries", () => {
},
);

// There will be 1 Api4 text ( The tab )
// There will be 1 Sheets4 text (The tab)
expect(getAllByText("Sheets4").length).toEqual(1);
// Tabs active state
expect(
Expand All @@ -690,7 +690,7 @@ describe("IDE URL rendering of Queries", () => {
getByText(createMessage(EDITOR_PANE_TEXTS.queries_create_from_existing));
getByText("New datasource");
getByText("REST API");
// Check new tab presence
// Check the new tab presence
const newTab = getByTestId("t--ide-tab-new");
expect(newTab).not.toBeNull();
// Close button is rendered
Expand Down

0 comments on commit 79f2029

Please sign in to comment.