forked from enviPath/enviPy
[Feature] Search for Permissions, Prep Compound / Structure to be extended, Prep Template overwrites (#347)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#347
This commit is contained in:
@ -20,7 +20,16 @@ class TestPackagePage(EnviPyStaticLiveServerTestCase):
|
||||
page.get_by_role("button", name="Actions").click()
|
||||
page.get_by_role("button", name="Edit Permissions").click()
|
||||
# Add read and write permission to enviPath Users group
|
||||
page.locator("#select_grantee").select_option(label="enviPath Users")
|
||||
search_input = page.locator('input[placeholder="Search users or groups..."]')
|
||||
search_input.fill("enviPath")
|
||||
|
||||
# Wait for the results list to appear and be populated
|
||||
page.wait_for_selector("#resultsList", state="visible")
|
||||
|
||||
# Click the first button in the results list
|
||||
first_button = page.locator("#resultsList button").first
|
||||
first_button.click()
|
||||
|
||||
page.locator("#read_new").check()
|
||||
page.locator("#write_new").check()
|
||||
page.get_by_role("button", name="+", exact=True).click()
|
||||
|
||||
Reference in New Issue
Block a user