Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

804 B
Raw Blame
import { expect, type Page } from '@stablyai/playwright-test'

// Scope to the sidebar because Landing renders another Add project button when no workspace is open.
function sidebarHeaderActions(page: Page) {
  return page.locator('[data-sidebar-header-actions]')
}

export async function openSidebarProjectDialog(page: Page): Promise<void> {
  await sidebarHeaderActions(page).getByRole('button', { name: 'Add project', exact: true }).click()
  await expect(page.getByRole('dialog', { name: /Add a project/i })).toBeVisible()
}

export async function openSidebarWorkspaceComposer(page: Page): Promise<void> {
  const createButton = sidebarHeaderActions(page).getByRole('button', {
    name: 'New workspace',
    exact: true
  })
  await expect(createButton).toBeVisible()
  await createButton.click()
}