Hi,
I am working on an application which uses different partials for mobile and desktop version. Both are served in every request. I need to test turbo code that replaces all of these partials. Mobile version even has different workflow compared to desktop app in some parts.
In short I want to have separate system tests for mobile and desktop version.
I thought I could achieve that by having different driven by in before block.
driven_by(:cuprite, screen_size: [1400, 1400], options: CUPRITE_OPTIONS)
driven_by(:cuprite, screen_size: [400, 800], options: CUPRITE_OPTIONS)
Unfortunately these settings are not respected. It seems that first system spec that sets driven_by is what rspec uses for entire test suite.
Is it possible to achieve separate system specs for mobile and desktop version and how?
Thank you,
Marko