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

Test fail - Failed asserting that a NULL is not empty. #282

Closed
andybroomfield opened this issue Sep 6, 2023 · 1 comment · Fixed by #283
Closed

Test fail - Failed asserting that a NULL is not empty. #282

andybroomfield opened this issue Sep 6, 2023 · 1 comment · Fixed by #283

Comments

@andybroomfield
Copy link
Contributor

In web/modules/contrib/localgov_alert_banner/tests/src/FunctionalJavascript/AlertBannerHideTest.php

Its this section

    // Find and click hide link.
    $page = $this->getSession()->getPage();
    $button = $page->findButton('Hide');
    $this->assertNotEmpty($button);
    $button->click();

The button is being returned as NULL.

@andybroomfield
Copy link
Contributor Author

This was due to the Profile being set as localgov and trying to test the home page, which is now the gin login page.

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

Successfully merging a pull request may close this issue.

1 participant