Skip to content

Commit bc0384c

Browse files
author
Mohammod Al Amin Ashik
committed
updated ci
1 parent 424d972 commit bc0384c

20 files changed

Lines changed: 4282 additions & 382 deletions

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ jobs:
5252
steps:
5353
- uses: actions/checkout@v4
5454
- uses: pnpm/action-setup@v4
55-
with:
56-
version: 9
5755
- uses: actions/setup-node@v4
5856
with:
5957
node-version: 20
@@ -140,8 +138,6 @@ jobs:
140138
with:
141139
key: ${{ matrix.target }}-build
142140
- uses: pnpm/action-setup@v4
143-
with:
144-
version: 9
145141
- uses: actions/setup-node@v4
146142
with:
147143
node-version: 20
@@ -169,8 +165,6 @@ jobs:
169165
steps:
170166
- uses: actions/checkout@v4
171167
- uses: pnpm/action-setup@v4
172-
with:
173-
version: 9
174168
- uses: actions/setup-node@v4
175169
with:
176170
node-version: 20
@@ -226,8 +220,6 @@ jobs:
226220
with:
227221
key: ${{ matrix.os }}-e2e
228222
- uses: pnpm/action-setup@v4
229-
with:
230-
version: 9
231223
- uses: actions/setup-node@v4
232224
with:
233225
node-version: 20

.github/workflows/release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ jobs:
2727
fetch-depth: 0
2828

2929
- uses: pnpm/action-setup@v4
30-
with:
31-
version: 9
32-
3330
- uses: actions/setup-node@v4
3431
with:
3532
node-version: 20
@@ -85,9 +82,6 @@ jobs:
8582
key: ${{ matrix.target }}-release
8683

8784
- uses: pnpm/action-setup@v4
88-
with:
89-
version: 9
90-
9185
- uses: actions/setup-node@v4
9286
with:
9387
node-version: 20
@@ -169,9 +163,6 @@ jobs:
169163
key: ${{ matrix.target }}-nightly
170164

171165
- uses: pnpm/action-setup@v4
172-
with:
173-
version: 9
174-
175166
- uses: actions/setup-node@v4
176167
with:
177168
node-version: 20

apps/desktop/src/features/clients/ClientsPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,13 +491,13 @@ export default function ClientsPage() {
491491
: 0;
492492

493493
return (
494-
<div className="h-full flex flex-col relative">
494+
<div className="h-full flex flex-col relative" data-testid="clients-page">
495495
{/* Header */}
496496
<div className="flex-shrink-0 p-8 border-b border-[rgb(var(--border-subtle))]">
497497
<div className="max-w-[2000px] mx-auto">
498498
<div className="flex items-center justify-between mb-6">
499499
<div>
500-
<h1 className="text-3xl font-bold">Connected Clients</h1>
500+
<h1 className="text-3xl font-bold" data-testid="clients-title">Connected Clients</h1>
501501
<p className="text-base text-[rgb(var(--muted))] mt-2">
502502
Manage OAuth clients and their permissions
503503
</p>
@@ -573,6 +573,7 @@ export default function ClientsPage() {
573573
isSelected ? 'ring-2 ring-primary-500 shadow-lg' : ''
574574
}`}
575575
onClick={() => openPanel(client)}
576+
data-testid={`client-card-${client.client_id.replace(/[^a-zA-Z0-9-_]/g, '_')}`}
576577
>
577578
<CardContent className="p-6">
578579
{/* Client Header */}

apps/desktop/src/features/featuresets/FeatureSetsPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function FeatureSetsPage() {
181181
});
182182

183183
return (
184-
<div className="h-full flex flex-col relative">
184+
<div className="h-full flex flex-col relative" data-testid="featuresets-page">
185185
{/* Header */}
186186
<div className="flex-shrink-0 p-8 border-b border-[rgb(var(--border-subtle))]">
187187
<div className="max-w-[2000px] mx-auto">
@@ -281,6 +281,7 @@ export function FeatureSetsPage() {
281281
isSelected ? 'ring-2 ring-primary-500 shadow-lg' : ''
282282
}`}
283283
onClick={() => handleOpenPanel(fs)}
284+
data-testid={`featureset-card-${fs.id}`}
284285
>
285286
<CardContent className="p-6">
286287
{/* Header */}

apps/desktop/src/features/spaces/SpacesPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function SpacesPage() {
101101
});
102102

103103
return (
104-
<div className="h-full flex flex-col relative">
104+
<div className="h-full flex flex-col relative" data-testid="spaces-page">
105105
{/* Header */}
106106
<div className="flex-shrink-0 p-8 border-b border-[rgb(var(--border-subtle))]">
107107
<div className="max-w-[2000px] mx-auto">

packages/ui/src/components/layout/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface SidebarProps {
99

1010
export function Sidebar({ children, header, footer }: SidebarProps) {
1111
return (
12-
<nav className="flex h-full flex-col bg-[rgb(var(--surface))]">
12+
<nav className="flex h-full flex-col bg-[rgb(var(--surface))]" data-testid="sidebar">
1313
{header && (
1414
<div className="flex-shrink-0 p-4 border-b border-[rgb(var(--border-subtle))]">
1515
{header}

pnpm-lock.yaml

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
packages:
22
- 'apps/*'
33
- 'packages/*'
4+
- 'tests/e2e/mocks/*'

test-output.txt

Lines changed: 4033 additions & 0 deletions
Large diffs are not rendered by default.

tests/e2e/helpers/selectors.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* E2E Test Selectors - data-testid only (ADR-003)
3+
* Use $('[data-testid="x"]') for all element selection.
4+
*/
5+
6+
/** Get element by data-testid */
7+
export const byTestId = (testId: string) => $(`[data-testid="${testId}"]`);

0 commit comments

Comments
 (0)