-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix: gsheets all sheets option enabled behind a feature flag #37942
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
Changes from 12 commits
20d3dab
979c2fe
4f74e7a
e693483
6060416
082961a
1abbdce
2fb59a0
a890582
7b37983
89334e8
da5784d
1ad0b9a
1f524dc
79997a9
2c7e2ba
0a5a742
507c3f0
8fd1ab8
e177b64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| /// <reference types="Cypress" /> | ||
| import { GSHEET_DATA } from "../../fixtures/test-data-gsheet"; | ||
| import { featureFlagIntercept } from "../../support/Objects/FeatureFlags"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add feature flag setup in before hook The feature flag is imported but not used. Add it to the before hook to properly enable the feature flag. before("Setup app and spreadsheet", function () {
+ featureFlagIntercept({
+ release_gs_all_sheets_options_enabled: true,
+ });
//Add a new app and an add new spreadsheet query
|
||
| import { | ||
| homePage, | ||
| gsheetHelper, | ||
|
|
@@ -11,7 +12,7 @@ import { | |
| appSettings, | ||
| } from "../../support/Objects/ObjectsCore"; | ||
|
|
||
| describe.skip( | ||
| describe( | ||
| "GSheet-Functional Tests With Read Access", | ||
| { | ||
| tags: ["@tag.Datasource", "@tag.GSheet", "@tag.Git", "@tag.AccessControl"], | ||
|
|
@@ -26,6 +27,10 @@ describe.skip( | |
| let spreadSheetName = "test-sheet"; | ||
|
|
||
| before("Setup app and spreadsheet", function () { | ||
| // intercept features call gsheet all sheets enabled | ||
| featureFlagIntercept({ | ||
| release_gs_all_sheets_options_enabled: true, | ||
| }); | ||
| //Add a new app and an add new spreadsheet query | ||
| //Setting up the spreadsheet name | ||
| const uuid = Cypress._.random(0, 10000); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,12 +45,14 @@ function renderComponent(props: renderComponentProps) { | |
|
|
||
| const options = props.options || []; | ||
| const defaultValue = props.initialValue as string; | ||
| const currentValue = props.input?.value; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider removing defaultValue when using value prop While adding the Consider this change: return (
<StyledRadioGroup
data-testid={props.input?.name}
- defaultValue={defaultValue}
onChange={onChangeHandler}
value={currentValue}
>Also applies to: 55-55 |
||
|
|
||
| return ( | ||
| <StyledRadioGroup | ||
| data-testid={props.input?.name} | ||
| defaultValue={defaultValue} | ||
| onChange={onChangeHandler} | ||
| value={currentValue} | ||
| > | ||
| {options.map((option) => { | ||
| return ( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.