Skip to content

Conversation

@frankyso
Copy link

@frankyso frankyso commented Jul 4, 2021

The Problem

I always use this package when developing with the Laravel framework and bootstrap, it's just a little difficult when making browser testing because to define selectors for text I wrote a fairly long code for the dusk selector like the example below:

Form::text('username', 'Username')->attrs(['dusk' => 'username'])

to generate an input like this

<input dusk="username" name="username">

The Idea

I'm thinking of adding a Laravel Dusk selector to make it easier for us to choose elements that will be used for automated browser testing later.

This PR will add a new function to specify the dusk selector directly into the element. as an example :

Form::text('username', 'Username')->dusk('username');

thank you for this wonderful package 🥇

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 this pull request may close these issues.

1 participant