javascript - How to share a test across multiple specs in Protractor -


i'm using protractor test angular app. there generic share functionality runs across various different pages - @ moment have test in each individual spec each page, looking optimisation, quite make dry possible.

what best practice in getting in place, or indeed bad practice , should keeping test in each individual spec.

i using page objects each spec - falls same issue have 1:1 relationship page object -> spec.

any thoughts welcomed :)

seems pretty simple in end, create module export of common suites, require , use :)

see link - http://pavelbogomolenko.github.io/dry-principles-with-protractor.html


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -