mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Improved ApplicationAvailabilityFunctionalTest
This commit is contained in:
parent
51d3934e9f
commit
cd9a303644
2 changed files with 19 additions and 1 deletions
|
@ -33,6 +33,8 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/select_api")
|
* @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
|
class SelectAPIController extends AbstractController
|
||||||
{
|
{
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
||||||
public function urlProvider(): ?Generator
|
public function urlProvider(): ?Generator
|
||||||
{
|
{
|
||||||
//Homepage
|
//Homepage
|
||||||
//yield ['/'];
|
yield ['/'];
|
||||||
//User related things
|
//User related things
|
||||||
yield ['/user/settings'];
|
yield ['/user/settings'];
|
||||||
yield ['/user/info'];
|
yield ['/user/info'];
|
||||||
|
@ -117,9 +117,21 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
||||||
//Statistics
|
//Statistics
|
||||||
yield ['/statistics'];
|
yield ['/statistics'];
|
||||||
|
|
||||||
|
//Event log
|
||||||
|
yield ['/log/']; //Slash suffix here is important
|
||||||
|
|
||||||
|
|
||||||
//Typeahead
|
//Typeahead
|
||||||
yield ['/typeahead/builtInResources/search?query=DIP8'];
|
yield ['/typeahead/builtInResources/search?query=DIP8'];
|
||||||
yield ['/typeahead/tags/search/test'];
|
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
|
//Label test
|
||||||
yield ['/scan'];
|
yield ['/scan'];
|
||||||
|
@ -130,5 +142,9 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
||||||
|
|
||||||
//Tools
|
//Tools
|
||||||
yield ['/tools/reel_calc'];
|
yield ['/tools/reel_calc'];
|
||||||
|
yield ['/tools/server_infos'];
|
||||||
|
|
||||||
|
//Webauthn Register
|
||||||
|
yield ['/webauthn/register'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue