Fix the admin spec
This commit is contained in:
parent
a4193c8629
commit
ef1981c685
1 changed files with 3 additions and 4 deletions
|
|
@ -654,6 +654,9 @@ test("US-097 work through the action-items queue", async ({seed, as}) => {
|
||||||
|
|
||||||
await openSpaceMenu(admin)
|
await openSpaceMenu(admin)
|
||||||
|
|
||||||
|
await expect(queueButton).toHaveText("Action Items (4)")
|
||||||
|
await expect(queueButton.locator(".bg-primary")).toHaveCount(1)
|
||||||
|
|
||||||
await queueButton.click()
|
await queueButton.click()
|
||||||
|
|
||||||
const queue = dialog(admin, "Action Items")
|
const queue = dialog(admin, "Action Items")
|
||||||
|
|
@ -678,10 +681,6 @@ test("US-097 work through the action-items queue", async ({seed, as}) => {
|
||||||
await expect(carolsRequest).toContainText("requested membership in #Vault")
|
await expect(carolsRequest).toContainText("requested membership in #Vault")
|
||||||
await expect(bobsRequest).toContainText("requested membership in #Vault")
|
await expect(bobsRequest).toContainText("requested membership in #Vault")
|
||||||
|
|
||||||
// The button summarizes what the queue holds, so it is checked against a known queue
|
|
||||||
await expect(queueButton).toHaveText("Action Items (4)")
|
|
||||||
await expect(queueButton.locator(".bg-primary")).toHaveCount(1)
|
|
||||||
|
|
||||||
await carolsRequest.getByRole("button", {name: "Accept"}).click()
|
await carolsRequest.getByRole("button", {name: "Accept"}).click()
|
||||||
|
|
||||||
await expect(admin.getByRole("alert")).toContainText("Member has been added to the room!")
|
await expect(admin.getByRole("alert")).toContainText("Member has been added to the room!")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue