Replies: 1 comment 1 reply
-
|
@FoksVHox not sure if you figured this out or not, but this is what I'm doing in my browser tests when I want to do this: test('smoke tests', function (string $page, string $device, string $colour) {
...
visit($page)
->on()
->{$device}()
->{$colour}()
->assertUrlIs($page)
->assertSee('something');
...
})
->with([
'index' => fn () => route('some.route'),
...
])
->with([
'desktop',
'mobile',
])
->with([
'inLightMode',
'inDarkMode',
]); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When running browser tests, I'd like to be able to run the tests in both dark and light mode, as well as on different devices - without duplicating the test cases. However, I don't see it's an option? Have I missed something?
Beta Was this translation helpful? Give feedback.
All reactions