Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
23 lines
632 B
TypeScript
23 lines
632 B
TypeScript
import type { Page } from '@stablyai/playwright-test'
|
|
|
|
function xpathLiteral(value: string): string {
|
|
if (!value.includes("'")) {
|
|
return `'${value}'`
|
|
}
|
|
if (!value.includes('"')) {
|
|
return `"${value}"`
|
|
}
|
|
return `concat(${value
|
|
.split("'")
|
|
.map((part) => `'${part}'`)
|
|
.join(`, '"'", `)})`
|
|
}
|
|
|
|
export function worktreeRow(page: Page, worktreeId: string) {
|
|
return page.locator(`xpath=//*[@data-worktree-id=${xpathLiteral(worktreeId)}]`).first()
|
|
}
|
|
|
|
export function worktreeRowSurface(page: Page, worktreeId: string) {
|
|
return worktreeRow(page, worktreeId).locator('[data-worktree-card-surface]').first()
|
|
}
|