add snapshot tests for 'import-from-source' part
This commit is contained in:
@@ -23,6 +23,10 @@ describe ('predefined answer selected', () => {
|
||||
textField = wrapper.find ('TextField').first ();
|
||||
});
|
||||
|
||||
it ('snapshot', () =>{
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it ('renders text box for normal answer', () => {
|
||||
expect (textField.props ().label).toEqual ('Answer');
|
||||
});
|
||||
@@ -47,6 +51,10 @@ describe ('WordPress titles selected', () => {
|
||||
textField = wrapper.find ('TextField').first ();
|
||||
});
|
||||
|
||||
it ('snapshot', () =>{
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it ('renders text box for external source input', () => {
|
||||
expect (textField.props ().label).toEqual ('Answer source');
|
||||
});
|
||||
@@ -71,6 +79,10 @@ describe ('WordPress latest news selected', () => {
|
||||
textField = wrapper.find ('TextField').first ();
|
||||
});
|
||||
|
||||
it ('snapshot', () =>{
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it ('renders text box for external source input', () => {
|
||||
expect (textField.props ().label).toEqual ('Answer source');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user