protractor-styleguide icon indicating copy to clipboard operation
protractor-styleguide copied to clipboard

conditional cases

Open fabianclain opened this issue 7 years ago • 2 comments

I believe that we can have a look over this. It seems like a generally rule of thumb. http://howtoprogram.eu/question/angularjs-protractor-protractor-jasmine-conditional-test-cases,4391

fabianclain avatar Mar 14 '17 10:03 fabianclain

Link to original source with more info: http://stackoverflow.com/questions/37748394/protractor-jasmine-conditional-test-cases

I am kind of torn as to whether this belongs in the Protractor Style Guide or somewhere else - an idea for a new project? It seems more like a BDD best practise (i.e properly separating tests into arrange, act, assert), and could equally be applied to Jasmine tests for Angular code. What does anyone else think?

robinj avatar Mar 14 '17 11:03 robinj

I think we can still add this as a rule, implying that one should properly separate tests using the BDD best practices.."arrange, act, assert".

alecxe avatar Mar 14 '17 16:03 alecxe