Requirements
Example 1
Example 1 Tests
Example 2
Example 2 Tests
Considerations
Therefore
Requirements
{
type: 'object',
properties: {
'company_name': { type: 'string' },
'url_subdomain': { type: ['string', 'null'] },
'business_description': { type: ['string', 'null'] },
'address_1': { type: 'string' },
'address_2': { type: ['string', 'null'] },
'city': { type: 'string' },
'state': { type: 'string' },
'zip_code': { type: 'string' },
'preferred_color': { type: ['string', 'null'] },
'font_color': { type: ['string', 'null'] },
'website_url': { type: ['string', 'null'] },
'company_email': { type: ['string', 'null'] },
'phone': { type: ['string', 'null'] },
'logo_image_url': { type: ['string', 'null'] },
'business_image_url': { type: ['string', 'null'] },
'appointments_enabled': { type: 'boolean' }
}
}
Example JSON Schema
Considerations
The Mock Object
Unit Tests
Integration Tests
UI Tests
UI Tests
/* Example mocked AJAX call */
page
.ajax['/offerings/bookable_with_providers']
.mock
.response({
rowCount: 9,
uniqueCategoryCount: 3
})
E2E Tests
The Result