TestLinkBannerToZone
open /tests/setup.php?scenario=just_installed
open /
type username admin
type password admin
clickAndWait login
clickAndWait link=Settings
clickAndWait link=Agency Management
clickAndWait link=Add new agency
type name Example Agency
type contact Eddie Agencycontact
type email eddie@agency.example.com
type username agency
type password agency
click agencypermissions[]
clickAndWait submit
clickAndWait link=Logout
open /
type username agency
type password agency
clickAndWait login
clickAndWait link=Inventory
clickAndWait link=Publishers & Zones
clickAndWait link=Add new publisher
type name Example Publisher
type mnemonic publisher
type website http://www.publisher.example.com/
type contact Fred Example
type email fred@example.com
type username publisher
type password publisher
click affiliatepermissions_16
click affiliatepermissions_4
click affiliatepermissions_8
click document.affiliateform.elements['affiliatepermissions[]'][4]
click document.affiliateform.elements['affiliatepermissions[]'][5]
click document.affiliateform.elements['affiliatepermissions[]'][6]
clickAndWait submit
assertTitle * - Zone properties
type zonename Example Zone
select size label=IAB Full Banner (468 x 60)
clickAndWait submit
clickAndWait link=Inventory
clickAndWait link=Advertisers & Campaigns
clickAndWait link=Add new advertiser
type clientname Example Advertiser
type comments This advertiser was made as part of an automated functionality test.

It should never show up in a real system.
type contact Mr Example
type email advertiser@example.com
type clientusername advertiser
type clientpassword advertiser
click document.clientform.elements['clientpermissions[]'][1]
click document.clientform.elements['clientpermissions[]'][3]
clickAndWait submit
assertTitle * - Add new campaign
type campaignname Example Campaign
clickAndWait submit
clickAndWait link=Banner overview
clickAndWait link=Add new banner
selectAndWait type label=HTML banner
type width 468
type height 60
type banner This is an example HTML banner to test basic workflow.
type url http://www.example.com/click-target
type description Example Banner
clickAndWait submit
clickAndWait link=Linked zones
click a1
clickAndWait submit
clickAndWait link=Inventory
clickAndWait link=Publishers & Zones
clickAndWait link=Example Publisher
clickAndWait link=Zone overview
clickAndWait link=Linked banners
verifyText id=linked-banners *Example Banner*
verifyNotText id=linked-campaigns *Example Campaign*
clickAndWait link=Logout
open /tests/teardown.php