mirror of
https://github.com/apache/superset.git
synced 2026-04-17 07:05:04 +00:00
chore: Select component refactoring - SaveModal - Iteration 5 (#16446)
* Refactor Select * Fix Cypress * Reconcile with master * Use onChange over onSelect * Reconcile with latest changes * Update Cypress * Update Cypress test * Fix lint
This commit is contained in:
@@ -142,12 +142,13 @@ describe('SaveModal', () => {
|
||||
|
||||
it('onChange', () => {
|
||||
const wrapper = getWrapper();
|
||||
const dashboardId = mockEvent.value;
|
||||
|
||||
wrapper.instance().onSliceNameChange(mockEvent);
|
||||
expect(wrapper.state().newSliceName).toBe(mockEvent.target.value);
|
||||
|
||||
wrapper.instance().onDashboardSelectChange(mockEvent);
|
||||
expect(wrapper.state().saveToDashboardId).toBe(mockEvent.value);
|
||||
wrapper.instance().onDashboardSelectChange(dashboardId);
|
||||
expect(wrapper.state().saveToDashboardId).toBe(dashboardId);
|
||||
});
|
||||
|
||||
describe('saveOrOverwrite', () => {
|
||||
|
||||
Reference in New Issue
Block a user