-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #488 from glific/flow-change
Flows now fetching and publishing through uuid
- Loading branch information
Showing
12 changed files
with
94 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.Button { | ||
position: fixed !important; | ||
bottom: 20px; | ||
right: 15px; | ||
z-index: 1000; | ||
} | ||
|
||
.Link { | ||
text-decoration: none; | ||
} | ||
|
||
.HelpIcon { | ||
position: fixed !important; | ||
bottom: 25px; | ||
right: 110px; | ||
z-index: 1000; | ||
width: 28px !important; | ||
height: 28px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
import React from 'react'; | ||
import { mount } from 'enzyme'; | ||
import { FlowEditor } from './FlowEditor'; | ||
import { MemoryRouter } from 'react-router-dom'; | ||
import { MockedProvider } from '@apollo/client/testing'; | ||
|
||
const wrapper = mount(<FlowEditor uuid="d3223dvfdfddffdknf" />); | ||
const wrapper = mount( | ||
<MockedProvider addTypename={false}> | ||
<MemoryRouter> | ||
<FlowEditor match={{ params: { uuid: 'd3223dvfdfddffdknf' } }} /> | ||
</MemoryRouter> | ||
</MockedProvider> | ||
); | ||
|
||
test('it should display the flowEditor', () => { | ||
expect(wrapper.find('#flow').exists()).toBe(true); | ||
}); | ||
|
||
test('it should have a done button that redirects to automation page', () => { | ||
expect(wrapper.find('[data-testid="button"]').exists()).toBe(true); | ||
}); | ||
|
||
test('it should have a help button that redirects to help page', () => { | ||
expect(wrapper.find('[data-testid="helpButton"]').exists()).toBe(true); | ||
wrapper.unmount(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/components/floweditor/FlowEditorContainer/FlowEditorContainer.module.css
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
src/components/floweditor/FlowEditorContainer/FlowEditorContainer.test.tsx
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
src/components/floweditor/FlowEditorContainer/FlowEditorContainer.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters