♻️ (editor) Improve webhook creation
Remove terrible useEffects
This commit is contained in:
@ -112,9 +112,7 @@ export const MembersList = () => {
|
||||
{isDefined(seatsLimit) && (
|
||||
<Heading fontSize="2xl">
|
||||
Members{' '}
|
||||
{seatsLimit === -1
|
||||
? ''
|
||||
: `(${currentMembersCount + invitations.length}/${seatsLimit})`}
|
||||
{seatsLimit === -1 ? '' : `(${currentMembersCount}/${seatsLimit})`}
|
||||
</Heading>
|
||||
)}
|
||||
{workspace?.id && canEdit && (
|
||||
|
@ -88,6 +88,9 @@ test('can manage members', async ({ page }) => {
|
||||
await page.goto('/typebots')
|
||||
await page.click('text=Settings & Members')
|
||||
await page.click('text="Members"')
|
||||
await expect(
|
||||
page.getByRole('heading', { name: 'Members (1/5)' })
|
||||
).toBeVisible()
|
||||
await expect(page.locator('text="user@email.com"').nth(1)).toBeVisible()
|
||||
await expect(page.locator('button >> text="Invite"')).toBeEnabled()
|
||||
await page.fill(
|
||||
|
Reference in New Issue
Block a user