Skip to content

Commit

Permalink
Merge pull request #887 from jetstreamapp/feat/886
Browse files Browse the repository at this point in the history
Swap order of bulk record update options
  • Loading branch information
paustint authored May 10, 2024
2 parents f311266 + 2942948 commit d42e4f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ test.describe('LOAD WITHOUT FILE', () => {
await page.getByTestId('dropdown-Field to Update').getByPlaceholder('Select an Option').fill('fax');
await page.getByRole('option', { name: 'Account Fax Fax phone' }).click();

await page.getByTestId('dropdown-Record update to Apply').getByPlaceholder('Select an Option').click();
await page.getByRole('option', { name: 'Value from different field' }).click();

await page.getByTestId('dropdown-Field to use as value').getByPlaceholder('Select an Option').click();
await page.getByTestId('dropdown-Field to use as value').getByPlaceholder('Select an Option').fill('name');
await page.getByRole('option', { name: 'Account Name Name' }).click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const BulkUpdateFromQueryModal: FunctionComponent<BulkUpdateFromQueryModa
const [fields, setFields] = useState<ListItem[]>([]);
/** Fields that can be used as value */
const [transformationOptions, setTransformationOptions] = useState<TransformationOptions>({
option: 'anotherField',
option: 'staticValue',
alternateField: undefined,
staticValue: '',
criteria: 'all',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function reducer(state: State, action: Action): State {
batchIdToIndex: {},
},
transformationOptions: {
option: 'anotherField',
option: 'staticValue',
staticValue: '',
criteria: 'all',
alternateField: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function filterMassUpdateSobject(sobject: DescribeGlobalSObjectResult) {
}

export const transformationOptionListItems: ListItem[] = [
{ id: 'anotherField', value: 'anotherField', label: 'Value from different field' },
{ id: 'staticValue', value: 'staticValue', label: 'Provided value' },
{ id: 'anotherField', value: 'anotherField', label: 'Value from different field' },
{ id: 'null', value: 'null', label: 'Clear field value' },
];

Expand Down

0 comments on commit d42e4f3

Please sign in to comment.