Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Test Window Size #719

Closed
kerimkuscu opened this issue Jan 17, 2020 · 6 comments
Closed

Failed Test Window Size #719

kerimkuscu opened this issue Jan 17, 2020 · 6 comments

Comments

@kerimkuscu
Copy link

  • Dusk Version: "~5.0",
  • Laravel Version: "^6.4",
  • PHP Version: "^7.4",
  • Database Driver & Version:

Description:

After running my browser tests repeatedly, the screen size of the running test automatically decreases after any test fails. In my screenshot, my DuskTestCase.php file is 'window-size = 1920, 1080', although my screen size is defined, it crushes it and reduces the screen size.

DuskTestCase.php file

/**
     * Create the RemoteWebDriver instance.
     *
     * @return RemoteWebDriver
     */
    protected function driver()
    {
        $options = (new ChromeOptions)->addArguments([
            '--disable-gpu',
//            '--headless',
            '--window-size=1920,1080',
        ]);

ScreenShot
Screenshot from 2020-01-17 13-51-56 (1)

Steps To Reproduce:

@driesvints
Copy link
Member

Heya, this seems to be a duplicate of #715 which was fixed in #717 and will be in next week's release. Can you try 5.x-dev to see if that fixes your problem?

@driesvints
Copy link
Member

Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue and we'll re-open this issue.

@kerimkuscu
Copy link
Author

I'm still having this problem. Nothing is resolved. I tried to explain with the screenshot. How can I give more information? @driesvints

@driesvints
Copy link
Member

@kerimkuscu I asked you to test 5.x-dev above but you didn't reply which is why I closed the issue. Can you please try the latest release?

@browner12
Copy link
Contributor

does it happen to be decreasing by a consistent amount each time? possibly 16px?

@kerimkuscu
Copy link
Author

@browner12 yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants