id, name, and email attributes.
Customizing User Fields
Sometimes you may need to adjust what is captured. For example:- Your app uses
first_nameandlast_nameinstead of a singlenamefield. - You run a multi-tenant app where the user IDs are not unique across tenants.
- You prefer not to store certain user details at all.
Nightwatch::user method, which you can call inside your AppServiceProvider.
Here’s an example of how you can combine first_name and last_name as the name field:
Customizing User IDs
In systems where user IDs may not be unique, such as multi-tenant apps with auto-incrementing IDs, you can customize the ID to include the tenant identifier so Nightwatch can tell them apart.Omitting User Fields
If you don’t want Nightwatch to capture certain fields, you can simply leave them out of the returned array. Note that theid will always be captured.