2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

[PUI] Error pages (#7554)

* Add <PermissionDenied /> page

* Check permissions for admin center

* Wrap <PartDetail> page in an error handler

- Display client or server errors

* Add error handlers to other detail pages

* Refactor error pages

* Add playwright tests

* Refactor component locations

* Get test to work
This commit is contained in:
Oliver
2024-07-04 00:34:52 +10:00
committed by GitHub
parent 0c293fa896
commit b15eb35273
31 changed files with 591 additions and 355 deletions

View File

@ -64,7 +64,8 @@ export const test = baseTest.extend({
url != 'http://localhost:8000/api/barcode/' &&
url != 'http://localhost:8000/api/news/?search=&offset=0&limit=25' &&
url != 'https://docs.inventree.org/en/versions.json' &&
!url.startsWith('chrome://')
!url.startsWith('chrome://') &&
url.indexOf('99999') < 0
)
messages.push(msg);
});