This test assumes that an agency already exists, and that a legal agreement is loaded into the system.
Rob Hunter couldn't make this test run because the checkbox for publisher has
already agreed to the terms of service
was disabled.
TestCreatePublisher | ||
open | /tests/setup.php?scenario=one_of_each | |
open | / | |
type | username | agency |
type | password | agency |
clickAndWait | //input[@type='submit' and @value='Login'] | |
clickAndWait | link=Publishers & Zones | |
assertTextNotPresent | Fresh Publisher | |
clickAndWait | link=Add new publisher | |
type | name | Fresh Publisher |
type | mnemonic | fresh |
type | website | http://fresh.example.com/ |
type | contact | Fresh |
type | fresh@example.com | |
type | username | fresh |
type | password | secret |
type | comments | This publisher is created for automated functional testing. |
click | tax_id_present_f | |
type | terms_and_conditions | off |
clickAndWait | //input[@type='submit' and @value='Next >'] | |
clickAndWait | link=Logout | |
type | username | fresh |
type | password | secret |
clickAndWait | //input[@type='submit' and @value='Login'] | |
verifyTextPresent | This is an example legal agreement. | |
click | name=agree | |
clickAndWait | //input[@type='submit' and @value='Continue'] | |
verifyTitle | An Agency - Zone overview | |
verifyTextPresent | Zone overview | |
clickAndWait | link=Logout | |
type | username | fresh |
type | password | secret |
clickAndWait | //input[@type='submit' and @value='Login'] | |
verifyTitle | An Agency - Zone overview | |
verifyTextPresent | Zone overview | |
clickAndWait | link=Logout | |
type | username | agency |
type | password | agency |
clickAndWait | //input[@type='submit' and @value='Login'] | |
clickAndWait | link=Publishers & Zones | |
clickAndWait | link=Delete Delete | |
verifyConfirmation | Do you really want to delete this publisher? | |
clickAndWait | link=Logout | |
open | /tests/teardown.php |