diff --git a/test/unit/lib/static/components/modals/screenshot-accepter/index.jsx b/test/unit/lib/static/components/modals/screenshot-accepter/index.jsx
index 1b4cb178..a6156d44 100644
--- a/test/unit/lib/static/components/modals/screenshot-accepter/index.jsx
+++ b/test/unit/lib/static/components/modals/screenshot-accepter/index.jsx
@@ -295,28 +295,10 @@ describe('', () => {
for (let i = 1; i <= 10; i++) {
const image = mkImageEntityFail(`state-${i}`, {parentId: result.id});
addImageToTree({tree, image});
-
- // addImageToTree({
- //
- // tree,
- // suiteName: 'test-1',
- // browserName: 'bro-1',
- // attempt: 0,
- // stateName: `state-${i}`,
- // expectedImgPath: `img${i}-expected.png`,
- // diffImgPath: `img${i}-diff.png`,
- // actualImgPath: `img${i}-actual.png`
- // });
}
const store = mkRealStore({initialState: {tree, view: {expand: EXPAND_ALL}}});
const currentImageId = Object.values(tree.images.byId)[4].id;
- // generateImageId({
- // suiteName: 'test-1',
- // browserName: 'bro-1',
- // attempt: 0,
- // stateName: 'state-5'
- // });
component = renderWithStore(, store);
});
diff --git a/test/unit/lib/static/utils.tsx b/test/unit/lib/static/utils.tsx
index 87d9fd13..561b3f5d 100644
--- a/test/unit/lib/static/utils.tsx
+++ b/test/unit/lib/static/utils.tsx
@@ -66,11 +66,8 @@ export const mkResultEntity = (name: string, overrides?: Partial):
metaInfo: {},
suiteUrl: 'suite-url',
history: [],
- // error?: TestError;
suitePath: [],
- /** @note Browser Name/ID, e.g. `chrome-desktop` */
name: '',
- // skipReason?: string;
duration: 123
} satisfies ResultEntity, overrides));
@@ -169,17 +166,9 @@ export const addBrowserToTree = ({tree, browser}: AddBrowserToTreeData): void =>
interface AddResultToTreeData {
tree: TreeEntity;
result: ResultEntity;
- // parentId: string;
- // suiteName: string;
- // browserName: string;
- // attempt: number;
- // metaInfo: Record;
}
export const addResultToTree = ({tree, result}: AddResultToTreeData): void => {
- // const browserId = `${suiteName} ${browserName}`;
- // const fullId = `${browserId} ${attempt}`;
-
tree.results.byId[result.id] = result;
tree.results.stateById[result.id] = {
matchedSelectedGroup: false
@@ -194,31 +183,8 @@ interface AddImageToTreeData {
}
export const addImageToTree = ({tree, image}: AddImageToTreeData): void => {
- // const browserId = `${suiteName} ${browserName}`;
- // const resultId = `${browserId} ${attempt}`;
- // const fullId = `${resultId} ${stateName}`;
-
tree.images.byId[image.id] = image;
- // if (expectedImgPath) {
- // (tree.images.byId[fullId] as ImageEntityFail).expectedImg = {
- // path: expectedImgPath,
- // size: {height: 1, width: 2}
- // };
- // }
- // if (actualImgPath) {
- // (tree.images.byId[fullId] as ImageEntityFail).actualImg = {
- // path: actualImgPath,
- // size: {height: 1, width: 2}
- // };
- // }
- // if (diffImgPath) {
- // (tree.images.byId[fullId] as ImageEntityFail).diffImg = {
- // path: diffImgPath,
- // size: {height: 1, width: 2}
- // };
- // }
-
tree.results.byId[image.parentId].imageIds.push(image.id);
const result = tree.results.byId[image.parentId];