Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/smoke-tests/dev/tests/authChecks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ test('requireAuth graphql checks', async ({ page }) => {
// Try to create a post as an anonymous user.
await createNewPost({ page })

expect(
await expect(
page
.locator('.rw-form-error-title')
.locator("text=You don't have permission to do that"),
).toBeTruthy()
).toBeVisible()

await page.goto('/')

Expand Down
6 changes: 3 additions & 3 deletions tasks/smoke-tests/dev/tests/rbacChecks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ test('RBAC: Should not be able to delete contact as non-admin user', async ({

await page.locator('text=Delete').first().click()

expect(
await expect(
page
.locator('.rw-scaffold')
.locator("text=You don't have permission to do that"),
).toBeTruthy()
.locator("text=You don't have access to do that"),
).toBeVisible()

// @NOTE we do this because the scaffold content is actually on the page,
// This is the only way we validate if its actually showing visually
Expand Down
Loading