{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/dusk/issues/361","repository_url":"https://api.github.com/repos/laravel/dusk","labels_url":"https://api.github.com/repos/laravel/dusk/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/laravel/dusk/issues/361/comments","events_url":"https://api.github.com/repos/laravel/dusk/issues/361/events","html_url":"https://github.com/laravel/dusk/issues/361","id":256574472,"node_id":"MDU6SXNzdWUyNTY1NzQ0NzI=","number":361,"title":"Could not assert second element with the same class","user":{"login":"RobinOng","id":22089936,"node_id":"MDQ6VXNlcjIyMDg5OTM2","avatar_url":"https://avatars0.githubusercontent.com/u/22089936?v=4","gravatar_id":"","url":"https://api.github.com/users/RobinOng","html_url":"https://github.com/RobinOng","followers_url":"https://api.github.com/users/RobinOng/followers","following_url":"https://api.github.com/users/RobinOng/following{/other_user}","gists_url":"https://api.github.com/users/RobinOng/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinOng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinOng/subscriptions","organizations_url":"https://api.github.com/users/RobinOng/orgs","repos_url":"https://api.github.com/users/RobinOng/repos","events_url":"https://api.github.com/users/RobinOng/events{/privacy}","received_events_url":"https://api.github.com/users/RobinOng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-11T03:48:31Z","updated_at":"2018-11-05T10:47:10Z","closed_at":"2018-11-05T10:47:10Z","author_association":"NONE","body":"I have:\r\n```\r\n<ul class=\"navbar__items\">\r\n    <li class=\"navbar__item\">\r\n        Login\r\n    </li>\r\n    <li class=\"navbar__item\">\r\n        Register\r\n    </li>\r\n</ul>\r\n```\r\n\r\nWhen I run dusk test:\r\n```\r\n    /** @test */\r\n    public function an_unauthorized_user_should_see_the_login_and_register_button()\r\n    {\r\n        $this->browse(function (Browser $browser) {\r\n            $browser->visit('/login')\r\n                    ->assertSeeIn('.navbar__item', 'Login')\r\n                    ->assertSeeIn('.navbar__item', 'Register');\r\n        });\r\n    }\r\n```\r\n\r\nThe first assertion will pass but the second one will fail. If I remove the Login `li`, the second assertion will pass. Is there any way I can assert see the second `li` element?\r\n\r\n\r\n"}}
{"actor":{"display_login":"driesvints"}}