Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrubin committed Jul 20, 2023
1 parent 75e4ae4 commit d64fe56
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/__tests__/locators/utils/__mocks__/locatorsTree.mock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { LocatorTaskStatus } from "../../../../features/locators/types/locator.types";
import { AnnotationType, LocatorType } from "../../../../common/types/common";

export const locatorsTreeMock = [
{
Expand All @@ -14,6 +15,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "radiobuttonsUl",
message: "",
predictedAttrId: "",
Expand All @@ -36,6 +39,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "buttonDiv",
message: "",
predictedAttrId: "",
Expand All @@ -57,6 +62,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "textarea",
message: "",
predictedAttrId: "",
Expand All @@ -79,6 +86,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "listUl",
message: "",
predictedAttrId: "",
Expand Down Expand Up @@ -106,6 +115,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "link",
message: "",
predictedAttrId: "",
Expand All @@ -128,6 +139,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "anyName",
message: "",
predictedAttrId: "",
Expand All @@ -150,6 +163,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsLi6",
message: "",
predictedAttrId: "",
Expand All @@ -173,6 +188,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsUl",
message: "",
predictedAttrId: "",
Expand Down Expand Up @@ -200,6 +217,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "link",
message: "",
predictedAttrId: "",
Expand All @@ -222,6 +241,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsLi2",
message: "",
predictedAttrId: "",
Expand All @@ -244,6 +265,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsLi7",
message: "",
predictedAttrId: "",
Expand All @@ -267,6 +290,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsUl",
message: "",
predictedAttrId: "",
Expand Down Expand Up @@ -296,6 +321,8 @@ export const locatorsTreeMock = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "radiobuttonsUl",
message: "",
predictedAttrId: "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { LocatorTaskStatus } from "../../../../features/locators/types/locator.types";
import { AnnotationType, LocatorType } from "../../../../common/types/common";

export const locatorsTreeMockSearch = [
{
Expand All @@ -14,6 +15,8 @@ export const locatorsTreeMockSearch = [
errorMessage: "",
output: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "radiobuttonsUl",
message: "",
predictedAttrId: "",
Expand All @@ -36,6 +39,8 @@ export const locatorsTreeMockSearch = [
errorMessage: "",
output: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsLi7",
message: "",
predictedAttrId: "",
Expand All @@ -61,6 +66,8 @@ export const locatorsTreeMockSearch = [
errorMessage: "",
output: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "radiobuttonsUl",
message: "",
predictedAttrId: "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { SearchState } from "../../../../features/locators/components/LocatorsTree";
import { LocatorTaskStatus } from "../../../../features/locators/types/locator.types";
import { AnnotationType, LocatorType } from "../../../../common/types/common";

export const locatorsTreeMockSearchTypesNames = [
{
Expand All @@ -15,6 +16,8 @@ export const locatorsTreeMockSearchTypesNames = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "radiobuttonsUl",
message: "",
predictedAttrId: "",
Expand All @@ -37,6 +40,8 @@ export const locatorsTreeMockSearchTypesNames = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "anyName",
message: "",
predictedAttrId: "",
Expand All @@ -59,6 +64,8 @@ export const locatorsTreeMockSearchTypesNames = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsLi6",
message: "",
predictedAttrId: "",
Expand All @@ -82,6 +89,8 @@ export const locatorsTreeMockSearchTypesNames = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsUl",
message: "",
predictedAttrId: "",
Expand All @@ -107,6 +116,8 @@ export const locatorsTreeMockSearchTypesNames = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsLi2",
message: "",
predictedAttrId: "",
Expand All @@ -129,6 +140,8 @@ export const locatorsTreeMockSearchTypesNames = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsLi7",
message: "",
predictedAttrId: "",
Expand All @@ -152,6 +165,8 @@ export const locatorsTreeMockSearchTypesNames = [
output: "",
cssSelector: "",
},
annotationType: AnnotationType.UI,
locatorType: LocatorType.xPath,
name: "breadcrumbsUl",
message: "",
predictedAttrId: "",
Expand Down

0 comments on commit d64fe56

Please sign in to comment.