diff --git a/app/client/cypress/e2e/GSheet/AllAccess_Spec.ts b/app/client/cypress/e2e/GSheet/AllAccess_Spec.ts index aca3a5ab40df..0f4ac2f2d2a1 100644 --- a/app/client/cypress/e2e/GSheet/AllAccess_Spec.ts +++ b/app/client/cypress/e2e/GSheet/AllAccess_Spec.ts @@ -15,7 +15,7 @@ const workspaceName = "gsheet apps"; const dataSourceName = "gsheet-all"; let appName = "gsheet-app"; let spreadSheetName = "test-sheet"; -describe.skip( +describe( "GSheet-Functional Tests With All Access", { tags: ["@tag.Datasource", "@tag.GSheet"] }, function () { diff --git a/app/client/cypress/e2e/GSheet/GsheetMisc_Spec.ts b/app/client/cypress/e2e/GSheet/GsheetMisc_Spec.ts index b54a27b257c2..479c3b65b52e 100644 --- a/app/client/cypress/e2e/GSheet/GsheetMisc_Spec.ts +++ b/app/client/cypress/e2e/GSheet/GsheetMisc_Spec.ts @@ -21,7 +21,7 @@ const workspaceName = "gsheet apps"; const dataSourceName = "gsheet-all"; let appName = "gsheet-app"; let spreadSheetName = "test-sheet"; -describe.skip( +describe( "GSheet Miscellaneous Tests", { tags: ["@tag.Datasource", "@tag.GSheet"] }, function () { diff --git a/app/client/cypress/e2e/GSheet/ReadNWrite_Access_Spec.ts b/app/client/cypress/e2e/GSheet/ReadNWrite_Access_Spec.ts index 8d5a72c78b33..38bfcc82f85e 100644 --- a/app/client/cypress/e2e/GSheet/ReadNWrite_Access_Spec.ts +++ b/app/client/cypress/e2e/GSheet/ReadNWrite_Access_Spec.ts @@ -11,7 +11,7 @@ import { appSettings, } from "../../support/Objects/ObjectsCore"; -describe.skip( +describe( "GSheet-Functional Tests With Read/Write Access", { tags: ["@tag.Datasource", "@tag.GSheet"] }, function () { diff --git a/app/client/cypress/e2e/GSheet/ReadOnly_Access_Spec.ts b/app/client/cypress/e2e/GSheet/ReadOnly_Access_Spec.ts index e90840f7d3ca..95ad0629d440 100644 --- a/app/client/cypress/e2e/GSheet/ReadOnly_Access_Spec.ts +++ b/app/client/cypress/e2e/GSheet/ReadOnly_Access_Spec.ts @@ -11,7 +11,7 @@ import { appSettings, } from "../../support/Objects/ObjectsCore"; -describe.skip( +describe( "GSheet-Functional Tests With Read Access", { tags: ["@tag.Datasource", "@tag.GSheet"] }, function () { diff --git a/app/client/cypress/e2e/GSheet/WidgetBinding_AllAccess_Spec.ts b/app/client/cypress/e2e/GSheet/WidgetBinding_AllAccess_Spec.ts index a3afbd77610c..1bf593992248 100644 --- a/app/client/cypress/e2e/GSheet/WidgetBinding_AllAccess_Spec.ts +++ b/app/client/cypress/e2e/GSheet/WidgetBinding_AllAccess_Spec.ts @@ -21,7 +21,7 @@ const workspaceName = "gsheet apps"; const dataSourceName = "gsheet-all"; let appName = "gsheet-app"; let spreadSheetName = "test-sheet"; -describe.skip( +describe( "GSheet-widget binding", { tags: ["@tag.Datasource", "@tag.GSheet"] }, function () { diff --git a/app/client/cypress/e2e/Regression/ServerSide/QueryPane/GoogleSheets_spec.ts b/app/client/cypress/e2e/Regression/ServerSide/QueryPane/GoogleSheets_spec.ts index 792f633cd865..345f3982e4cf 100644 --- a/app/client/cypress/e2e/Regression/ServerSide/QueryPane/GoogleSheets_spec.ts +++ b/app/client/cypress/e2e/Regression/ServerSide/QueryPane/GoogleSheets_spec.ts @@ -20,10 +20,9 @@ describe( dataSources.CreatePlugIn("Google Sheets"); VerifyFunctionDropdown([ "Read / Write / Delete | Selected google sheets", - // Hiding below methods as they are not authorized at this state - // "Read / Write / Delete | All google sheets", - // "Read / Write | All google sheets", - // "Read | All google sheets", + "Read / Write / Delete | All google sheets", + "Read / Write | All google sheets", + "Read | All google sheets", ]); dataSources.SaveDSFromDialog(false); }); @@ -32,6 +31,8 @@ describe( agHelper.GetNClick(dataSources._gsScopeDropdown); cy.get(dataSources._gsScopeOptions).then(function ($ele) { expect($ele.eq(0).text()).to.be.oneOf(scopeOptions); + expect($ele.eq(1).text()).to.be.oneOf(scopeOptions); + expect($ele.eq(2).text()).to.be.oneOf(scopeOptions); }); agHelper.GetNClick(dataSources._gsScopeDropdown); } diff --git a/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/form.json b/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/form.json index d5f7709c310d..4030443c1c1e 100644 --- a/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/form.json +++ b/app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/form.json @@ -38,6 +38,18 @@ { "label": "Read / Write / Delete | Selected google sheets", "value": "https://www.googleapis.com/auth/drive.file" + }, + { + "label": "Read / Write / Delete | All google sheets", + "value": "https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/drive" + }, + { + "label": "Read / Write | All google sheets", + "value": "https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/drive.readonly" + }, + { + "label": "Read | All google sheets", + "value": "https://www.googleapis.com/auth/spreadsheets.readonly,https://www.googleapis.com/auth/drive.readonly" } ], "initialValue": "https://www.googleapis.com/auth/drive.file",