Open cbeach47 opened 1 year ago
Describe the bug After calling https://github.com/uPortal-Project/uPortal-start/blob/7aad82418ee7e8252b403941ca070bceede9af4b/tests/ux/utils/ux-general-utils.ts#L12 from the playwright tests, the admin user does not appear to be considered an administrator anymore. This was discovered in some failing playwright tests.
This used to work in uP 5.14 . After commit e8db822b2fb9e1973f5b5e24f94360f1c7a0a691 (2023-05-17 - Merge pull request #2660 from mgillian/feat/RDBMcache) it started to fail.
It may be unrelated, but on that same commit, the search API playwright test https://github.com/uPortal-Project/uPortal-start/blob/7aad82418ee7e8252b403941ca070bceede9af4b/tests/api/search-v5_0.spec.ts#L26 began failing - the user.login.id and uid json fields are no longer returned.
user.login.id
uid
To Reproduce Steps to reproduce the behavior:
Expected behavior All playwright tests should pass, and the tiles on the admin page should not disappear.
Platform:
Additional context Helpful log output can be found at least in portal/portal.log .
You can run a playwright test individually by appending .only to the method signature. For instance:
.only
test("DELETE Confirm admin can delete their own list", async ({ request }) => {
can be run standalone using the following, and then invoking ./gradlew playwrightRun:
./gradlew playwrightRun
test.only("DELETE Confirm admin can delete their own list", async ({ request }) => {
Describe the bug After calling https://github.com/uPortal-Project/uPortal-start/blob/7aad82418ee7e8252b403941ca070bceede9af4b/tests/ux/utils/ux-general-utils.ts#L12 from the playwright tests, the admin user does not appear to be considered an administrator anymore. This was discovered in some failing playwright tests.
This used to work in uP 5.14 . After commit e8db822b2fb9e1973f5b5e24f94360f1c7a0a691 (2023-05-17 - Merge pull request #2660 from mgillian/feat/RDBMcache) it started to fail.
It may be unrelated, but on that same commit, the search API playwright test https://github.com/uPortal-Project/uPortal-start/blob/7aad82418ee7e8252b403941ca070bceede9af4b/tests/api/search-v5_0.spec.ts#L26 began failing - the
user.login.id
anduid
json fields are no longer returned.To Reproduce Steps to reproduce the behavior:
Expected behavior All playwright tests should pass, and the tiles on the admin page should not disappear.
Platform:
Additional context Helpful log output can be found at least in portal/portal.log .
You can run a playwright test individually by appending
.only
to the method signature. For instance:can be run standalone using the following, and then invoking
./gradlew playwrightRun
: