Suites
-
+
+
diff --git a/lib/static/new-ui/types/store.ts b/lib/static/new-ui/types/store.ts
index b5c57e5e5..05f632234 100644
--- a/lib/static/new-ui/types/store.ts
+++ b/lib/static/new-ui/types/store.ts
@@ -1,5 +1,5 @@
import {TestStatus, ViewMode} from '@/constants';
-import {ImageFile} from '@/types';
+import {BrowserItem, ImageFile} from '@/types';
export interface SuiteEntityNode {
name: string;
@@ -65,7 +65,8 @@ export interface State {
app: {
isInitialized: boolean;
currentSuiteId: string | null;
- }
+ };
+ browsers: BrowserItem[];
tree: {
browsers: {
allIds: string[];
@@ -83,9 +84,10 @@ export interface State {
byId: Record;
stateById: Record;
};
- }
+ };
view: {
testNameFilter: string;
viewMode: ViewMode;
- }
+ filteredBrowsers: BrowserItem[];
+ };
}
diff --git a/lib/tests-tree-builder/static.ts b/lib/tests-tree-builder/static.ts
index 4ba8164dd..3109c63df 100644
--- a/lib/tests-tree-builder/static.ts
+++ b/lib/tests-tree-builder/static.ts
@@ -3,7 +3,7 @@ import {BaseTestsTreeBuilder, BaseTestsTreeBuilderOptions, Tree} from './base';
import {BrowserVersions, DB_COLUMN_INDEXES, TestStatus} from '../constants';
import {ReporterTestResult} from '../adapters/test-result';
import {SqliteTestResultAdapter} from '../adapters/test-result/sqlite';
-import {RawSuitesRow} from '../types';
+import {BrowserItem, RawSuitesRow} from '../types';
interface Stats {
total: number;
@@ -27,11 +27,6 @@ export interface SkipItem {
comment?: string;
}
-interface BrowserItem {
- id: string;
- versions: string[];
-}
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface StaticTestsTreeBuilderOptions extends BaseTestsTreeBuilderOptions {}
diff --git a/lib/types.ts b/lib/types.ts
index cbb6ddc3b..bd4f9456d 100644
--- a/lib/types.ts
+++ b/lib/types.ts
@@ -275,3 +275,8 @@ export type RawSuitesRow = [
export type LabeledSuitesRow = {
[K in (typeof SUITES_TABLE_COLUMNS)[number]['name']]: string;
};
+
+export interface BrowserItem {
+ id: string;
+ versions: string[];
+}