Improved ApplicationAvailabilityFunctionalTest

This commit is contained in:
Jan Böhmer 2022-11-27 16:35:44 +01:00
parent 51d3934e9f
commit cd9a303644
2 changed files with 19 additions and 1 deletions

View file

@ -33,6 +33,8 @@ use Symfony\Contracts\Translation\TranslatorInterface;
/**
* @Route("/select_api")
*
* This endpoint is used by the select2 library to dynamically load data (used in the multiselect action helper in parts lists)
*/
class SelectAPIController extends AbstractController
{

View file

@ -77,7 +77,7 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
public function urlProvider(): ?Generator
{
//Homepage
//yield ['/'];
yield ['/'];
//User related things
yield ['/user/settings'];
yield ['/user/info'];
@ -117,9 +117,21 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
//Statistics
yield ['/statistics'];
//Event log
yield ['/log/']; //Slash suffix here is important
//Typeahead
yield ['/typeahead/builtInResources/search?query=DIP8'];
yield ['/typeahead/tags/search/test'];
yield ['/typeahead/parameters/part/search/NPN'];
yield ['/typeahead/parameters/category/search/NPN'];
//Select API
yield ['/select_api/category'];
yield ['/select_api/footprint'];
yield ['/select_api/manufacturer'];
yield ['/select_api/measurement_unit'];
//Label test
yield ['/scan'];
@ -130,5 +142,9 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
//Tools
yield ['/tools/reel_calc'];
yield ['/tools/server_infos'];
//Webauthn Register
yield ['/webauthn/register'];
}
}