This test checks the configuration interface.
- It logs in.
- Changes the user name.
- Tries to change the users email address to the email address of another existing user.
- Changes the email address
- Changes the password.
- Logs out.
- Logs in again with the new login data.
- Checks if configuration possibilities are available when they should not.
- Creates a new client.
- Changes the client name.
- Tries to add a non-existing user.
- Adds a user.
- Delete the user again.
- Tries the same with multiple users.
- Logs out.
- Logs in as assigned user.
- Checks if user is able to change the configuration.
- Creates a new client.
- Switch between the clients.
| Configuration | ||
| open | test/selenium/prepare.php?what=configStart | |
| open | index.php?state=logout | |
| type | mailLogin | test@ea-geier.at |
| type | passLogin | testpass |
| clickAndWait | buttonLogin | |
| clickAndWait | name=config | |
| type | txtUserName | Test User |
| clickAndWait | name=buttonUserConfig | |
| verifyElementPresent | id=usersaved | |
| type | mailUser | testdouble@ea-geier.at |
| clickAndWait | name=buttonUserConfig | |
| verifyElementPresent | css=div.error | |
| type | mailUser | testnew@ea-geier.at |
| type | passUser | newpass |
| clickAndWait | name=buttonUserConfig | |
| verifyElementPresent | id=usersaved | |
| clickAndWait | name=logout | |
| type | mailLogin | testnew@ea-geier.at |
| type | passLogin | newpass |
| clickAndWait | name=buttonLogin | |
| clickAndWait | name=config | |
| verifyValue | id=txtUserName | Test User |
| clickAndWait | name=clientconfiglink | |
| verifyElementNotPresent | id=numClient | |
| verifyElementNotPresent | id=clientconfig | |
| verifyElementNotPresent | id=delclientuser | |
| verifyElementNotPresent | id=newclientuser | |
| verifyElementPresent | id=newclient | |
| type | txtNewClientName | New Client |
| clickAndWait | name=buttonClientNew | |
| verifyElementPresent | id=newclientsaved | |
| verifyElementPresent | id=numClient | |
| verifyElementPresent | id=clientconfig | |
| verifyElementNotPresent | id=delclientuser | |
| verifyElementPresent | id=newclientuser | |
| type | txtClientName | |
| clickAndWait | name=buttonClientConfig | |
| verifyElementNotPresent | id=clientsaved | |
| verifyElementPresent | css=div.error | |
| type | txtClientName | New Client |
| clickAndWait | name=buttonClientConfig | |
| verifyElementPresent | id=clientsaved | |
| type | txtClientName | Client 1 |
| clickAndWait | name=buttonClientConfig | |
| verifyElementPresent | id=clientsaved | |
| verifyValue | id=txtClientName | Client 1 |
| type | mailNewUser | notexisting@ea-geier.at |
| clickAndWait | name=buttonClientNewUser | |
| verifyElementNotPresent | id=newclientusersaved | |
| verifyElementPresent | css=div.error | |
| type | mailNewUser | testdouble@ea-geier.at |
| clickAndWait | name=buttonClientNewUser | |
| verifyElementPresent | id=newclientusersaved | |
| verifyElementPresent | id=delclientuser | |
| select | numDelUser | label=testdouble@ea-geier.at |
| clickAndWait | buttonClientDelUser | |
| verifyElementNotPresent | id=delclientusersaved | |
| verifyElementNotPresent | id=delclientuser | |
| type | mailNewUser | testdouble@ea-geier.at |
| clickAndWait | name=buttonClientNewUser | |
| verifyElementPresent | id=newclientusersaved | |
| verifyElementPresent | id=delclientuser | |
| type | mailNewUser | testnew@ea-geier.at |
| clickAndWait | name=buttonClientNewUser | |
| verifyElementPresent | id=newclientusersaved | |
| select | numDelUser | label=testnew@ea-geier.at |
| clickAndWait | buttonClientDelUser | |
| verifyElementPresent | id=delclientusersaved | |
| verifyElementPresent | id=delclientuser | |
| clickAndWait | name=logout | |
| type | mailLogin | testdouble@ea-geier.at |
| type | passLogin | testpass |
| clickAndWait | buttonLogin | |
| clickAndWait | name=config | |
| clickAndWait | name=clientconfiglink | |
| verifyElementPresent | id=notowner | |
| type | txtNewClientName | Client 2 |
| clickAndWait | buttonClientNew | |
| verifyElementPresent | id=newclientsaved | |
| selectAndWait | numClient | label=Client 2 |
| verifyElementNotPresent | id=notowner | |
| verifyElementPresent | id=newclientuser | |
| selectAndWait | numClient | label=Client 1 |
| verifyElementPresent | id=notowner | |
| verifyElementNotPresent | id=newclientuser | |
| selectAndWait | numClient | label=Client 2 |
| verifyElementNotPresent | id=notowner | |
| verifyElementPresent | id=newclientuser | |
| open | test/selenium/prepare.php?what=configStop | |