mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: rename "Add member" to "Add" on template permissions page (#23943)
The "Add member" button on the template permissions page is used to add both **users and groups**, so the label is misleading when adding a group. <img width="1238" height="672" alt="image" src="https://github.com/user-attachments/assets/dbdfc79e-9e2e-4f26-9258-418f2038511e" />
This commit is contained in:
@@ -48,7 +48,7 @@ test("add and remove a group", async ({ page }) => {
|
||||
|
||||
// Select the group from the list and add it
|
||||
await page.getByText(groupName).click();
|
||||
await page.getByText("Add member").click();
|
||||
await page.getByText("Add").click();
|
||||
const row = page.locator(".MuiTableRow-root", { hasText: groupName });
|
||||
await expect(row).toBeVisible();
|
||||
|
||||
|
||||
+1
-1
@@ -129,7 +129,7 @@ const AddTemplateUserOrGroup: FC<AddTemplateUserOrGroupProps> = ({
|
||||
<Spinner loading={isLoading}>
|
||||
<UserPlusIcon className="size-icon-sm" />
|
||||
</Spinner>
|
||||
Add member
|
||||
Add
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user