diff --git a/e2e/organization.spec.ts b/e2e/organization.spec.ts index 4b84f4f9..01754d4c 100644 --- a/e2e/organization.spec.ts +++ b/e2e/organization.spec.ts @@ -4,14 +4,14 @@ import { PLAYWRIGHT_BASE_URL } from '../playwright/config'; async function goToOrganizationSettings(page) { await page.goto(PLAYWRIGHT_BASE_URL + '/dashboard'); await page.locator('[data-testid="organization_switcher"]:visible').click(); - await page.getByText('Team Settings').click(); + await page.getByText('Organization Settings').click(); } test('test that organization name can be updated', async ({ page }) => { await goToOrganizationSettings(page); - await page.getByLabel('Team Name').fill('NEW ORG NAME'); - await page.getByLabel('Team Name').press('Enter'); - await page.getByLabel('Team Name').press('Meta+r'); + await page.getByLabel('Organization Name').fill('NEW ORG NAME'); + await page.getByLabel('Organization Name').press('Enter'); + await page.getByLabel('Organization Name').press('Meta+r'); await expect( page.locator('[data-testid="organization_switcher"]:visible') ).toContainText('NEW ORG NAME'); diff --git a/resources/js/Components/OrganizationSwitcher.vue b/resources/js/Components/OrganizationSwitcher.vue index f501e26e..55717e6a 100644 --- a/resources/js/Components/OrganizationSwitcher.vue +++ b/resources/js/Components/OrganizationSwitcher.vue @@ -4,6 +4,7 @@ import Dropdown from '@/Components/Dropdown.vue'; import DropdownLink from '@/Components/DropdownLink.vue'; import { router, usePage } from '@inertiajs/vue3'; import type { Organization, User } from '@/types/models'; +import { isBillingActivated } from '@/utils/billing'; const page = usePage<{ jetstream: { @@ -80,7 +81,15 @@ const switchToTeam = (team: Organization) => { page.props.auth.user.current_team.id ) "> - Team Settings + Organization Settings + + + + Billing