Jul 10, 2020
0
Level 1
Date fields always in US format within Dusk tests
When running dusk tests, date fields within the test are always in US format but I required them to be in British format. My chrome options look like this:
$options = (new ChromeOptions)->addArguments([
'--disable-gpu',
'--headless',
'--no-sandbox',
'--ignore-ssl-errors',
'--whitelisted-ips=""',
'--window-size=1920,1080',
'--lang=en_GB',
]);
In my dusk test case file I am also setting the locale using:
app()->setLocale('en');
Edit: I have also tried setting the language to 'en-GB'
Please or to participate in this conversation.