UNPKG

detox-allure2-adapter

Version:
68 lines 2.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DetoxMatcher = void 0; const DetoxMatcherResults_1 = require("./DetoxMatcherResults"); class DetoxMatcher { static matcherForTestId(testId, isRegex) { return new DetoxMatcherResults_1.TestIdMatcherResult(testId, isRegex); } static matcherForText(text, isRegex) { return new DetoxMatcherResults_1.TextMatcherResult(text, isRegex); } static matcherForAccessibilityLabel(label, isRegex) { return new DetoxMatcherResults_1.AccessibilityLabelMatcherResult(label, isRegex); } static matcherForShallowAccessibilityLabel(label, isRegex) { return new DetoxMatcherResults_1.ShallowAccessibilityLabelMatcherResult(label, isRegex); } static matcherForContentDescription(contentDescription) { return new DetoxMatcherResults_1.ContentDescriptionMatcherResult(contentDescription); } static matcherForToggleable(value) { return new DetoxMatcherResults_1.ToggleableMatcherResult(value); } static matcherForAnd(m1, m2) { return new DetoxMatcherResults_1.AndMatcherResult(m1, m2); } static matcherForOr(m1, m2) { return new DetoxMatcherResults_1.OrMatcherResult(m1, m2); } static matcherForNot(m) { return new DetoxMatcherResults_1.NotMatcherResult(m); } static matcherWithAncestor(m, ancestorMatcher) { return new DetoxMatcherResults_1.AncestorMatcherResult(m, ancestorMatcher); } static matcherWithDescendant(m, descendantMatcher) { return new DetoxMatcherResults_1.DescendantMatcherResult(m, descendantMatcher); } static matcherForClass(className) { return new DetoxMatcherResults_1.ClassMatcherResult(className); } static matcherForSufficientlyVisible(pct) { return new DetoxMatcherResults_1.VisibilityMatcherResult(pct); } static matcherForNotVisible() { return new DetoxMatcherResults_1.NotVisibleMatcherResult(); } static matcherForNotNull() { return new DetoxMatcherResults_1.NullMatcherResult(false); } static matcherForNull() { return new DetoxMatcherResults_1.NullMatcherResult(true); } static matcherForAtIndex(index, innerMatcher) { return new DetoxMatcherResults_1.IndexMatcherResult(index, innerMatcher); } static matcherForAnything() { return new DetoxMatcherResults_1.AnythingMatcherResult(); } static matcherForFocus() { return new DetoxMatcherResults_1.FocusMatcherResult(); } static matcherForSliderPosition(position, tolerance) { return new DetoxMatcherResults_1.SliderPositionMatcherResult(position, tolerance); } } exports.DetoxMatcher = DetoxMatcher; //# sourceMappingURL=DetoxMatcher.js.map