New or Extended Webtests for 3.3 beta cycle
Campaign
SurveyTest (new class)
- Create campaign
- Create custom data set used for Activities -> Survey
- Create one radio button custom field
- Create profile and add custom field to it
- Create survey - use profile and enter result set values (_createResultSet)
- Reserve survey respondents (subset of campaign group)
- Interview survey respondents (record values for first 2)
- Release (remaining) survey respondents and check Reserve again to see that they are available to reserve again.
PetitionTest
- Create campaign
- Create petition using New Individual profile
- Retrieve "sign petition" url
- Logout and sign as anonymous
- Login and check for unconfirmed petition signature using Find Activities. You can link to activity search from Petition dashboard 'more" -> Signatures link. Look for a Scheduled Activity with Source Contact = your signer.
Contact
AddTest
Add individual with the new Shared Address function.
- Enter new org contact name for Current Employer
- Shared address for "Work" location, create New Organization using same organization name and enter org address.
- Shared address for "Home" location, create New Household
- Save and check Contact Summary for Current Employer and shared address display
- Check Relationship tab for Employer and Household Member relationships
Contribute
ContactContextAddTest
Test Soft Credit
- create another contact and select them for soft credit autocomplete
- after saving contribution, check 'view contribution" for soft credit contact name
- link to the soft credit contact and check Contributions tab for soft credit listing
OnlineContributionTest (new class)
- Create dummy processor (see AddEventTest.php for example of this)
- Create online contribution page with dummy processor
- Logoff and make online contribution as anonymous user
- Log in and use Find Contributions to check for new contribution record with expected contributor info and amount.
Event
AddPricesetTest
Test online registration for an event with a priceset
- Create price set
- Create dummy processor (see AddEventTest.php for example of this) * Create paid event with dummy processor and using the price set
- Logoff and register anonymous user for this event
- Log in and check for registered participant with expected line items and total fee.
AddParticipationTest
Add test for assigning > 1 role when registering a participant
Add custom data set extending a participant role and test for that when registering participant and selecting > 1 role
Member
RenewOfflineTest (new class)
- Create membership for a new contact (see testContactMemberAdd)
- Renew membership and check for valid date properties and status
OnlineSignupTest (new class)
- Create dummy processor (see AddEventTest.php for example of this)
- Create online contribution page with dummy processor and membership block enabled
- Logoff and do online membership signup as anonymous user
- Log in and use Find Memberships to check for new membership and contribution record with expected member info and amount.
Pledge
ContactContextAddTest
Record a pledge payment
Record a pledge payment with adjusted amount. Test with both options - Adjust Payment Schedule
- Adjust Total Pledge Amount
Profile
ProfileSearch (new class)
- Create profile and add last name, email and one of our sample custom fields as public, searchable, results columns
- Add individual contact
- Access profile in Search mode and find your added contact
- Access profile view and check for expected values
Labels
