Setting up Nightwatch for Guard

First, set up 3 ox test users.  Expect the following

 TestUser 1:  Has capabilities guard and guard-mail.
 TestUser 2:  Has capabilities guard and guard-mail.
 TestUser 3:  Has capabilities guard only.  guard-mail is false.
 TestUser 4:  Has no guard capabilities.  To be considered Guest account

 All accounts can be deleted during testing.  All keys may be destroyed

 The local.conf.json file needs to be updated with your user information.  This should have already been set up for use
 with grunt.

 The local.conf.json file needs the following added and configured for your environment

 .....
     },
        "nightwatch": {
        "test_settings": {
                      "local": {
                            "launch_url": "http://localhost:8337/appsuite",
                            "globals": {
                                     "users": [
                                     {
                                        "username": "testuser1",
                                        "password": "secret",
                                        "mail": "testuser1@testserver"
                                    },
                                    {
                                        "username": "testuser2",
                                        "password": "secret",
                                        "mail": "testuser2@testserver"
                                    },
                                    {
                                        "username": "testuser3",
                                        "password": "secret",
                                        "mail": "testuser3@testserver"
                                    }
                                    ]
                            }
                    }
        }
    },
    "debug": true,
....


To execute, you would then do

grunt nightwatch:local

If you want only certain tests run,  you can specify the directory.  Example

grunt nightwatch:local --group mail

