Skip to content

Commit b21d535

Browse files
committed
wip
1 parent 38ff941 commit b21d535

2 files changed

Lines changed: 55 additions & 73 deletions

File tree

dashboard/e2e/tree-details.spec.ts

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import { test, expect } from '@playwright/test';
33
import { TREE_DETAILS_SELECTORS, TREE_LISTING_SELECTORS } from './selectors';
44

55
test.describe('Tree Details Page Tests', () => {
6+
const TREE_URL =
7+
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984';
8+
69
test.beforeEach(async ({ page }) => {
710
const timeout = 60000;
811
page.setDefaultTimeout(timeout);
912
});
1013

1114
test('opens and closes filter drawer', async ({ page }) => {
12-
await page.goto(
13-
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984',
14-
{ timeout: 30000 },
15-
);
15+
await page.goto(TREE_URL, { timeout: 30000 });
1616
await page.waitForLoadState('domcontentloaded');
1717

1818
const filterButton = page.locator(TREE_DETAILS_SELECTORS.filters.button);
@@ -31,10 +31,7 @@ test.describe('Tree Details Page Tests', () => {
3131
test('clicks on details button on build table and goes back via breadcrumb', async ({
3232
page,
3333
}) => {
34-
await page.goto(
35-
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984',
36-
{ timeout: 30000 },
37-
);
34+
await page.goto(TREE_URL, { timeout: 30000 });
3835
await page.waitForLoadState('domcontentloaded');
3936

4037
const detailsButton = page
@@ -62,10 +59,7 @@ test.describe('Tree Details Page Tests', () => {
6259
test('clicks on an issue details button on issue card and goes back via breadcrumb', async ({
6360
page,
6461
}) => {
65-
await page.goto(
66-
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984',
67-
{ timeout: 30000 },
68-
);
62+
await page.goto(TREE_URL, { timeout: 30000 });
6963
await page.waitForLoadState('domcontentloaded');
7064

7165
const issuesCardButton = page.locator(
@@ -95,10 +89,7 @@ test.describe('Tree Details Page Tests', () => {
9589
});
9690

9791
test('selects other tabs', async ({ page }) => {
98-
await page.goto(
99-
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984',
100-
{ timeout: 30000 },
101-
);
92+
await page.goto(TREE_URL, { timeout: 30000 });
10293
await page.waitForLoadState('domcontentloaded');
10394

10495
const bootsTab = page.locator(TREE_DETAILS_SELECTORS.tabs.boots);
@@ -121,10 +112,7 @@ test.describe('Tree Details Page Tests', () => {
121112
test('clicks on a test item and clicks on detail button for test item', async ({
122113
page,
123114
}) => {
124-
await page.goto(
125-
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984',
126-
{ timeout: 30000 },
127-
);
115+
await page.goto(TREE_URL, { timeout: 30000 });
128116
await page.waitForLoadState('domcontentloaded');
129117

130118
const testsTab = page.locator(TREE_DETAILS_SELECTORS.tabs.tests);
@@ -201,10 +189,7 @@ test.describe('Tree Details Page Tests', () => {
201189
});
202190

203191
test('build table status filters work correctly', async ({ page }) => {
204-
await page.goto(
205-
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984',
206-
{ timeout: 30000 },
207-
);
192+
await page.goto(TREE_URL, { timeout: 30000 });
208193
await page.waitForLoadState('domcontentloaded');
209194

210195
const allFilter = page.locator(
@@ -223,10 +208,7 @@ test.describe('Tree Details Page Tests', () => {
223208
});
224209

225210
test('search input is visible and functional', async ({ page }) => {
226-
await page.goto(
227-
'/tree/mainline/master/c072629f05d7bca1148ab17690d7922a31423984',
228-
{ timeout: 30000 },
229-
);
211+
await page.goto(TREE_URL, { timeout: 30000 });
230212
await page.waitForLoadState('domcontentloaded');
231213

232214
const searchInput = page.locator(

dashboard/src/routeTree.gen.ts

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,12 @@ const MainalternativesCTreeNameBranchHashIndexRoute =
292292
} as any)
293293

294294
export interface FileRoutesByFullPath {
295+
'/': typeof MainIndexRoute
295296
'/log-viewer': typeof LogViewerRoute
296297
'/hardware': typeof MainHardwareRouteRouteWithChildren
297298
'/hardware-new': typeof MainHardwareNewRouteRouteWithChildren
298299
'/issues': typeof MainIssuesRouteRouteWithChildren
299300
'/tree': typeof MainTreeRouteRouteWithChildren
300-
'/': typeof MainIndexRoute
301301
'/build/$buildId': typeof MainBuildBuildIdRouteRouteWithChildren
302302
'/hardware/$hardwareId': typeof MainHardwareHardwareIdRouteRouteWithChildren
303303
'/issue/$issueId': typeof MainIssueIssueIdRouteRouteWithChildren
@@ -310,7 +310,7 @@ export interface FileRoutesByFullPath {
310310
'/b/$buildId': typeof MainalternativesBBuildIdRouteRouteWithChildren
311311
'/i/$issueId': typeof MainalternativesIIssueIdRouteRouteWithChildren
312312
'/t/$testId': typeof MainalternativesTTestIdRouteRouteWithChildren
313-
'/i': typeof MainalternativesIIndexRoute
313+
'/i/': typeof MainalternativesIIndexRoute
314314
'/build/$buildId/': typeof MainBuildBuildIdIndexRoute
315315
'/hardware/$hardwareId/': typeof MainHardwareHardwareIdIndexRoute
316316
'/issue/$issueId/': typeof MainIssueIssueIdIndexRoute
@@ -320,20 +320,20 @@ export interface FileRoutesByFullPath {
320320
'/b/$buildId/': typeof MainalternativesBBuildIdIndexRoute
321321
'/i/$issueId/': typeof MainalternativesIIssueIdIndexRoute
322322
'/t/$testId/': typeof MainalternativesTTestIdIndexRoute
323-
'/checkout/$treeName/$branch': typeof MainCheckoutTreeNameBranchIndexRoute
324-
'/hardware/$hardwareId/boot': typeof MainHardwareHardwareIdBootIndexRoute
325-
'/hardware/$hardwareId/build': typeof MainHardwareHardwareIdBuildIndexRoute
326-
'/hardware/$hardwareId/test': typeof MainHardwareHardwareIdTestIndexRoute
327-
'/tree/$treeName/$branch': typeof MainTreeTreeNameBranchIndexRoute
328-
'/c/$treeName/$branch': typeof MainalternativesCTreeNameBranchIndexRoute
329-
'/checkout/$treeName/$branch/$hash': typeof MainCheckoutTreeNameBranchHashIndexRoute
330-
'/hardware/$hardwareId/boot/$bootId': typeof MainHardwareHardwareIdBootBootIdIndexRoute
331-
'/hardware/$hardwareId/build/$buildId': typeof MainHardwareHardwareIdBuildBuildIdIndexRoute
332-
'/hardware/$hardwareId/test/$testId': typeof MainHardwareHardwareIdTestTestIdIndexRoute
333-
'/tree/$treeId/build/$buildId': typeof MainTreeTreeIdBuildBuildIdIndexRoute
334-
'/tree/$treeId/test/$testId': typeof MainTreeTreeIdTestTestIdIndexRoute
323+
'/checkout/$treeName/$branch/': typeof MainCheckoutTreeNameBranchIndexRoute
324+
'/hardware/$hardwareId/boot/': typeof MainHardwareHardwareIdBootIndexRoute
325+
'/hardware/$hardwareId/build/': typeof MainHardwareHardwareIdBuildIndexRoute
326+
'/hardware/$hardwareId/test/': typeof MainHardwareHardwareIdTestIndexRoute
327+
'/tree/$treeName/$branch/': typeof MainTreeTreeNameBranchIndexRoute
328+
'/c/$treeName/$branch/': typeof MainalternativesCTreeNameBranchIndexRoute
329+
'/checkout/$treeName/$branch/$hash/': typeof MainCheckoutTreeNameBranchHashIndexRoute
330+
'/hardware/$hardwareId/boot/$bootId/': typeof MainHardwareHardwareIdBootBootIdIndexRoute
331+
'/hardware/$hardwareId/build/$buildId/': typeof MainHardwareHardwareIdBuildBuildIdIndexRoute
332+
'/hardware/$hardwareId/test/$testId/': typeof MainHardwareHardwareIdTestTestIdIndexRoute
333+
'/tree/$treeId/build/$buildId/': typeof MainTreeTreeIdBuildBuildIdIndexRoute
334+
'/tree/$treeId/test/$testId/': typeof MainTreeTreeIdTestTestIdIndexRoute
335335
'/tree/$treeName/$branch/$hash/': typeof MainTreeTreeNameBranchHashIndexRoute
336-
'/c/$treeName/$branch/$hash': typeof MainalternativesCTreeNameBranchHashIndexRoute
336+
'/c/$treeName/$branch/$hash/': typeof MainalternativesCTreeNameBranchHashIndexRoute
337337
}
338338
export interface FileRoutesByTo {
339339
'/log-viewer': typeof LogViewerRoute
@@ -415,12 +415,12 @@ export interface FileRoutesById {
415415
export interface FileRouteTypes {
416416
fileRoutesByFullPath: FileRoutesByFullPath
417417
fullPaths:
418+
| '/'
418419
| '/log-viewer'
419420
| '/hardware'
420421
| '/hardware-new'
421422
| '/issues'
422423
| '/tree'
423-
| '/'
424424
| '/build/$buildId'
425425
| '/hardware/$hardwareId'
426426
| '/issue/$issueId'
@@ -433,7 +433,7 @@ export interface FileRouteTypes {
433433
| '/b/$buildId'
434434
| '/i/$issueId'
435435
| '/t/$testId'
436-
| '/i'
436+
| '/i/'
437437
| '/build/$buildId/'
438438
| '/hardware/$hardwareId/'
439439
| '/issue/$issueId/'
@@ -443,20 +443,20 @@ export interface FileRouteTypes {
443443
| '/b/$buildId/'
444444
| '/i/$issueId/'
445445
| '/t/$testId/'
446-
| '/checkout/$treeName/$branch'
447-
| '/hardware/$hardwareId/boot'
448-
| '/hardware/$hardwareId/build'
449-
| '/hardware/$hardwareId/test'
450-
| '/tree/$treeName/$branch'
451-
| '/c/$treeName/$branch'
452-
| '/checkout/$treeName/$branch/$hash'
453-
| '/hardware/$hardwareId/boot/$bootId'
454-
| '/hardware/$hardwareId/build/$buildId'
455-
| '/hardware/$hardwareId/test/$testId'
456-
| '/tree/$treeId/build/$buildId'
457-
| '/tree/$treeId/test/$testId'
446+
| '/checkout/$treeName/$branch/'
447+
| '/hardware/$hardwareId/boot/'
448+
| '/hardware/$hardwareId/build/'
449+
| '/hardware/$hardwareId/test/'
450+
| '/tree/$treeName/$branch/'
451+
| '/c/$treeName/$branch/'
452+
| '/checkout/$treeName/$branch/$hash/'
453+
| '/hardware/$hardwareId/boot/$bootId/'
454+
| '/hardware/$hardwareId/build/$buildId/'
455+
| '/hardware/$hardwareId/test/$testId/'
456+
| '/tree/$treeId/build/$buildId/'
457+
| '/tree/$treeId/test/$testId/'
458458
| '/tree/$treeName/$branch/$hash/'
459-
| '/c/$treeName/$branch/$hash'
459+
| '/c/$treeName/$branch/$hash/'
460460
fileRoutesByTo: FileRoutesByTo
461461
to:
462462
| '/log-viewer'
@@ -552,7 +552,7 @@ declare module '@tanstack/react-router' {
552552
'/_main': {
553553
id: '/_main'
554554
path: ''
555-
fullPath: ''
555+
fullPath: '/'
556556
preLoaderRoute: typeof MainRouteRouteImport
557557
parentRoute: typeof rootRouteImport
558558
}
@@ -692,7 +692,7 @@ declare module '@tanstack/react-router' {
692692
'/_main/(alternatives)/i/': {
693693
id: '/_main/(alternatives)/i/'
694694
path: '/i'
695-
fullPath: '/i'
695+
fullPath: '/i/'
696696
preLoaderRoute: typeof MainalternativesIIndexRouteImport
697697
parentRoute: typeof MainRouteRoute
698698
}
@@ -720,35 +720,35 @@ declare module '@tanstack/react-router' {
720720
'/_main/tree/$treeName/$branch/': {
721721
id: '/_main/tree/$treeName/$branch/'
722722
path: '/$treeName/$branch'
723-
fullPath: '/tree/$treeName/$branch'
723+
fullPath: '/tree/$treeName/$branch/'
724724
preLoaderRoute: typeof MainTreeTreeNameBranchIndexRouteImport
725725
parentRoute: typeof MainTreeRouteRoute
726726
}
727727
'/_main/hardware/$hardwareId/test/': {
728728
id: '/_main/hardware/$hardwareId/test/'
729729
path: '/test'
730-
fullPath: '/hardware/$hardwareId/test'
730+
fullPath: '/hardware/$hardwareId/test/'
731731
preLoaderRoute: typeof MainHardwareHardwareIdTestIndexRouteImport
732732
parentRoute: typeof MainHardwareHardwareIdRouteRoute
733733
}
734734
'/_main/hardware/$hardwareId/build/': {
735735
id: '/_main/hardware/$hardwareId/build/'
736736
path: '/build'
737-
fullPath: '/hardware/$hardwareId/build'
737+
fullPath: '/hardware/$hardwareId/build/'
738738
preLoaderRoute: typeof MainHardwareHardwareIdBuildIndexRouteImport
739739
parentRoute: typeof MainHardwareHardwareIdRouteRoute
740740
}
741741
'/_main/hardware/$hardwareId/boot/': {
742742
id: '/_main/hardware/$hardwareId/boot/'
743743
path: '/boot'
744-
fullPath: '/hardware/$hardwareId/boot'
744+
fullPath: '/hardware/$hardwareId/boot/'
745745
preLoaderRoute: typeof MainHardwareHardwareIdBootIndexRouteImport
746746
parentRoute: typeof MainHardwareHardwareIdRouteRoute
747747
}
748748
'/_main/checkout/$treeName/$branch/': {
749749
id: '/_main/checkout/$treeName/$branch/'
750750
path: '/checkout/$treeName/$branch'
751-
fullPath: '/checkout/$treeName/$branch'
751+
fullPath: '/checkout/$treeName/$branch/'
752752
preLoaderRoute: typeof MainCheckoutTreeNameBranchIndexRouteImport
753753
parentRoute: typeof MainRouteRoute
754754
}
@@ -790,56 +790,56 @@ declare module '@tanstack/react-router' {
790790
'/_main/tree/$treeId/test/$testId/': {
791791
id: '/_main/tree/$treeId/test/$testId/'
792792
path: '/test/$testId'
793-
fullPath: '/tree/$treeId/test/$testId'
793+
fullPath: '/tree/$treeId/test/$testId/'
794794
preLoaderRoute: typeof MainTreeTreeIdTestTestIdIndexRouteImport
795795
parentRoute: typeof MainTreeTreeIdRouteRoute
796796
}
797797
'/_main/tree/$treeId/build/$buildId/': {
798798
id: '/_main/tree/$treeId/build/$buildId/'
799799
path: '/build/$buildId'
800-
fullPath: '/tree/$treeId/build/$buildId'
800+
fullPath: '/tree/$treeId/build/$buildId/'
801801
preLoaderRoute: typeof MainTreeTreeIdBuildBuildIdIndexRouteImport
802802
parentRoute: typeof MainTreeTreeIdRouteRoute
803803
}
804804
'/_main/hardware/$hardwareId/test/$testId/': {
805805
id: '/_main/hardware/$hardwareId/test/$testId/'
806806
path: '/test/$testId'
807-
fullPath: '/hardware/$hardwareId/test/$testId'
807+
fullPath: '/hardware/$hardwareId/test/$testId/'
808808
preLoaderRoute: typeof MainHardwareHardwareIdTestTestIdIndexRouteImport
809809
parentRoute: typeof MainHardwareHardwareIdRouteRoute
810810
}
811811
'/_main/hardware/$hardwareId/build/$buildId/': {
812812
id: '/_main/hardware/$hardwareId/build/$buildId/'
813813
path: '/build/$buildId'
814-
fullPath: '/hardware/$hardwareId/build/$buildId'
814+
fullPath: '/hardware/$hardwareId/build/$buildId/'
815815
preLoaderRoute: typeof MainHardwareHardwareIdBuildBuildIdIndexRouteImport
816816
parentRoute: typeof MainHardwareHardwareIdRouteRoute
817817
}
818818
'/_main/hardware/$hardwareId/boot/$bootId/': {
819819
id: '/_main/hardware/$hardwareId/boot/$bootId/'
820820
path: '/boot/$bootId'
821-
fullPath: '/hardware/$hardwareId/boot/$bootId'
821+
fullPath: '/hardware/$hardwareId/boot/$bootId/'
822822
preLoaderRoute: typeof MainHardwareHardwareIdBootBootIdIndexRouteImport
823823
parentRoute: typeof MainHardwareHardwareIdRouteRoute
824824
}
825825
'/_main/checkout/$treeName/$branch/$hash/': {
826826
id: '/_main/checkout/$treeName/$branch/$hash/'
827827
path: '/checkout/$treeName/$branch/$hash'
828-
fullPath: '/checkout/$treeName/$branch/$hash'
828+
fullPath: '/checkout/$treeName/$branch/$hash/'
829829
preLoaderRoute: typeof MainCheckoutTreeNameBranchHashIndexRouteImport
830830
parentRoute: typeof MainRouteRoute
831831
}
832832
'/_main/(alternatives)/c/$treeName/$branch/': {
833833
id: '/_main/(alternatives)/c/$treeName/$branch/'
834834
path: '/c/$treeName/$branch'
835-
fullPath: '/c/$treeName/$branch'
835+
fullPath: '/c/$treeName/$branch/'
836836
preLoaderRoute: typeof MainalternativesCTreeNameBranchIndexRouteImport
837837
parentRoute: typeof MainRouteRoute
838838
}
839839
'/_main/(alternatives)/c/$treeName/$branch/$hash/': {
840840
id: '/_main/(alternatives)/c/$treeName/$branch/$hash/'
841841
path: '/c/$treeName/$branch/$hash'
842-
fullPath: '/c/$treeName/$branch/$hash'
842+
fullPath: '/c/$treeName/$branch/$hash/'
843843
preLoaderRoute: typeof MainalternativesCTreeNameBranchHashIndexRouteImport
844844
parentRoute: typeof MainRouteRoute
845845
}

0 commit comments

Comments
 (0)