mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
Add chrome option --remote-allow-origins=* (to fix change/bug introduced in chrome 111?)
This commit is contained in:
@ -35,6 +35,7 @@ public class QBaseSeleniumTest
|
||||
chromeOptions = new ChromeOptions();
|
||||
chromeOptions.setAcceptInsecureCerts(true);
|
||||
chromeOptions.addArguments("--ignore-certificate-errors");
|
||||
chromeOptions.addArguments("--remote-allow-origins=*");
|
||||
|
||||
String headless = System.getenv("QQQ_SELENIUM_HEADLESS");
|
||||
if("true".equals(headless))
|
||||
@ -83,8 +84,15 @@ public class QBaseSeleniumTest
|
||||
*******************************************************************************/
|
||||
@AfterEach
|
||||
void afterEach(TestInfo testInfo)
|
||||
{
|
||||
if(qSeleniumLib == null)
|
||||
{
|
||||
System.err.println("Cannot take after-test screenshot, as qSeleniumLib is null.");
|
||||
}
|
||||
else
|
||||
{
|
||||
qSeleniumLib.takeScreenshotToFile(getClass().getSimpleName() + "/" + testInfo.getDisplayName());
|
||||
}
|
||||
|
||||
if(driver != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user