add snapshot tests for 'import-from-source' part

This commit is contained in:
GotPPay
2018-04-04 01:09:29 +02:00
parent ecb06fd4e2
commit 4d2cf52e4c
10 changed files with 1260 additions and 37 deletions

View File

@@ -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');
});