1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/tests/acceptance/AllPagesCept.php

90 lines
1.8 KiB
PHP
Raw Normal View History

2015-08-20 17:09:04 +02:00
<?php
$I = new AcceptanceTester($scenario);
2015-09-01 20:40:30 +02:00
$I->checkIfLogin($I);
2015-08-20 17:09:04 +02:00
$I->wantTo('Test all pages load');
// Top level navigation
$I->amOnPage('/dashboard');
$I->see('Total Revenue');
$I->amOnPage('/clients');
$I->see('Clients', 'li');
$I->amOnPage('/clients/create');
$I->see('Clients', 'li');
$I->see('Create');
$I->amOnPage('/credits');
$I->see('Credits', 'li');
$I->amOnPage('/credits/create');
$I->see('Credits', 'li');
$I->see('Create');
$I->amOnPage('/tasks');
$I->see('Tasks', 'li');
$I->amOnPage('/tasks/create');
$I->see('Tasks', 'li');
$I->see('Create');
$I->amOnPage('/invoices');
$I->see('Invoices', 'li');
$I->amOnPage('/invoices/create');
$I->see('Invoices', 'li');
$I->see('Create');
$I->amOnPage('/quotes');
$I->see('Quotes', 'li');
$I->amOnPage('/quotes/create');
$I->see('Quotes', 'li');
$I->see('Create');
$I->amOnPage('/payments');
$I->see('Payments', 'li');
$I->amOnPage('/payments/create');
$I->see('Payments', 'li');
$I->see('Create');
// Settings pages
$I->amOnPage('/company/details');
$I->see('Details');
$I->amOnPage('/gateways/create');
$I->see('Add Gateway');
$I->amOnPage('/company/products');
$I->see('Product Settings');
$I->amOnPage('/company/import_export');
$I->see('Import');
$I->amOnPage('/company/advanced_settings/invoice_settings');
$I->see('Invoice Fields');
$I->amOnPage('/company/advanced_settings/invoice_design');
$I->see('Invoice Design');
2015-09-17 21:01:06 +02:00
$I->amOnPage('/company/advanced_settings/templates_and_reminders');
2015-08-20 17:09:04 +02:00
$I->see('Invoice Email');
$I->amOnPage('/company/advanced_settings/charts_and_reports');
$I->see('Data Visualizations');
$I->amOnPage('/company/advanced_settings/user_management');
$I->see('Add User');
//try to logout
$I->click('#myAccountButton');
$I->see('Log Out');
$I->click('Log Out');
// Miscellaneous pages
$I->amOnPage('/terms');
$I->see('Terms');