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

Error: Call to undefined method Symfony\Component\Panther\Client::assertSelectorIsNotVisible() #618

Open
truckee opened this issue Dec 15, 2023 · 0 comments

Comments

@truckee
Copy link

truckee commented Dec 15, 2023

The error message occurred in the test:

namespace tests\Panther;

use Symfony\Component\Panther\PantherTestCase;

class MealTest extends PantherTestCase {

    public function testFoodAddAndRemove() {
        $client = static::createPantherClient();
        $client->followRedirects();
        $client->request('GET', '/meal/1095/edit');
; Symfon
        $this->assertPageTitleContains('Edit Meal');
        
        $client->assertSelectorIsNotVisible('#ready_foods tr[data-foodid=7]');
...

In the Firefox console, $("#ready_foods tr[data-foodid=7]").is(":visible"); returns false.

Panther is version 2.1.1; Symfony is 6.3.10

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

No branches or pull requests

1 participant