Repository navigation
test(e2e): add read-only and write collaborator ACL browser UI tests - #3979
Merged
Merged
Conversation
Extend UiEndToEndTest with two multi-user Playwright browser tests (test_05_readonly_collaborator_cannot_modify_sketch and test_06_write_collaborator_can_upload_annotate_and_add_event) pipelined inside the background Plaso indexing window, and give all UI E2E test methods self-explanatory names.
jaegeral
force-pushed
the
2026-11-10_ui-e2e-tests-v2
branch
from
November 11, 2026 10:49
dc2a3d7 to
0a772da
Compare
jaegeral
marked this pull request as ready for review
November 11, 2026 11:16
jaegeral
added a commit
to jaegeral/timesketch
that referenced
this pull request
Nov 24, 2026
…oogle#3979) * test(e2e): add read-only and write collaborator ACL browser UI tests Extend UiEndToEndTest with two multi-user Playwright browser tests (test_05_readonly_collaborator_cannot_modify_sketch and test_06_write_collaborator_can_upload_annotate_and_add_event) pipelined inside the background Plaso indexing window, and give all UI E2E test methods self-explanatory names. * fix tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: Multi-User ACL Browser UI E2E Tests
Extends
UiEndToEndTest(end_to_end_tests/ui_test.py) with two multi-user Playwright browser tests ( usertestvs. user:test2)test_05_readonly_collaborator_cannot_modify_sketch: Shares an indexed sketch (sigma_events.csv) withtest2(readonly), confirmstest2can view events in Explore whileAdd comment,Submit comment, andDelete sketchare hidden, exercises star, tag (suspicious), manual event creation, timeline deletion, sketch archiving, and timeline upload in Vuetify (confirming error snackbars), and checks via the API client that no state was modified.test_06_write_collaborator_can_upload_annotate_and_add_event: Shares a new sketch withtest2via the VuetifySharedialog (ShareCard.vue), logs in astest2to uploadsigma_events.csv, stars, tags (suspicious), and comments on an event, adds a manual event (AddManualEvent.vue), confirmsDelete sketchremains hidden (delete=False), and checks via the API client that both timelines, all 5 events, and all annotations are persisted.Key Decisions & Rationale
ui_test.pyfile): Rather than splitting out a separate browser-helper module that re-implementstimesketch_api_client, tests drive user interactions in Vuetify and check final backend persistence viaself.api/self.user2_api.page.expect_responsewrappers in favor of waiting on visible Vuetify DOM transitions ("Updated sharing", tag chips, rendered comments, modal dismissal, and.v-snack__wrapper.errorsnackbars on403).test_01_<behavior>–test_07_<behavior>): Kept numeric prefixes soinspect.getmembers()preserves the parallel Plaso pipeline order while giving every test and failure artifact a clear behavior name.end_to_end_tests/ui_test.py: Three minorfrontend-ngstate-cleanup issues uncovered by the tests (AddManualEvent.vuenot dispatchingupdateSketchon201, andUploadForm.vue/Sketch.vuenot resetting loading state on403) were logged as follow-up TODOs to keep this PR test-only.