@instructure/ui-test-utils
Version:
A UI testing library made by Instructure Inc.
220 lines (217 loc) • 6.06 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "accessible", {
enumerable: true,
get: function () {
return _uiTestQueries.accessible;
}
});
Object.defineProperty(exports, "debug", {
enumerable: true,
get: function () {
return _uiTestQueries.debug;
}
});
Object.defineProperty(exports, "expect", {
enumerable: true,
get: function () {
return _expect.expect;
}
});
Object.defineProperty(exports, "find", {
enumerable: true,
get: function () {
return _uiTestQueries.find;
}
});
Object.defineProperty(exports, "findAll", {
enumerable: true,
get: function () {
return _uiTestQueries.findAll;
}
});
Object.defineProperty(exports, "findAllByQuery", {
enumerable: true,
get: function () {
return _uiTestQueries.findAllByQuery;
}
});
Object.defineProperty(exports, "findAllFrames", {
enumerable: true,
get: function () {
return _uiTestQueries.findAllFrames;
}
});
Object.defineProperty(exports, "findByQuery", {
enumerable: true,
get: function () {
return _uiTestQueries.findByQuery;
}
});
Object.defineProperty(exports, "findFrame", {
enumerable: true,
get: function () {
return _uiTestQueries.findFrame;
}
});
Object.defineProperty(exports, "findWithLabel", {
enumerable: true,
get: function () {
return _uiTestQueries.findWithLabel;
}
});
Object.defineProperty(exports, "findWithText", {
enumerable: true,
get: function () {
return _uiTestQueries.findWithText;
}
});
Object.defineProperty(exports, "findWithTitle", {
enumerable: true,
get: function () {
return _uiTestQueries.findWithTitle;
}
});
Object.defineProperty(exports, "firstOrNull", {
enumerable: true,
get: function () {
return _uiTestQueries.firstOrNull;
}
});
Object.defineProperty(exports, "generateA11yTests", {
enumerable: true,
get: function () {
return _generateA11yTests.generateA11yTests;
}
});
Object.defineProperty(exports, "generateComponentExamples", {
enumerable: true,
get: function () {
return _generateComponentExamples.generateComponentExamples;
}
});
Object.defineProperty(exports, "generatePropCombinations", {
enumerable: true,
get: function () {
return _generatePropCombinations.generatePropCombinations;
}
});
Object.defineProperty(exports, "locator", {
enumerable: true,
get: function () {
return _uiTestLocator.locator;
}
});
Object.defineProperty(exports, "match", {
enumerable: true,
get: function () {
return _uiTestSandbox.match;
}
});
Object.defineProperty(exports, "matchesSelector", {
enumerable: true,
get: function () {
return _uiTestQueries.matchesSelector;
}
});
Object.defineProperty(exports, "mount", {
enumerable: true,
get: function () {
return _uiTestSandbox.mount;
}
});
Object.defineProperty(exports, "parseQueryArguments", {
enumerable: true,
get: function () {
return _uiTestQueries.parseQueryArguments;
}
});
Object.defineProperty(exports, "querySelector", {
enumerable: true,
get: function () {
return _uiTestQueries.querySelector;
}
});
Object.defineProperty(exports, "querySelectorAll", {
enumerable: true,
get: function () {
return _uiTestQueries.querySelectorAll;
}
});
Object.defineProperty(exports, "spy", {
enumerable: true,
get: function () {
return _uiTestSandbox.spy;
}
});
Object.defineProperty(exports, "stub", {
enumerable: true,
get: function () {
return _uiTestSandbox.stub;
}
});
Object.defineProperty(exports, "unmount", {
enumerable: true,
get: function () {
return _uiTestSandbox.unmount;
}
});
Object.defineProperty(exports, "viewport", {
enumerable: true,
get: function () {
return _uiTestSandbox.viewport;
}
});
exports.wait = void 0;
Object.defineProperty(exports, "waitForExpect", {
enumerable: true,
get: function () {
return _waitForExpect.waitForExpect;
}
});
exports.wrap = exports.within = void 0;
Object.defineProperty(exports, "wrapQueryResult", {
enumerable: true,
get: function () {
return _uiTestQueries.wrapQueryResult;
}
});
var _uiTestLocator = require("@instructure/ui-test-locator");
var _uiTestQueries = require("@instructure/ui-test-queries");
var _uiTestSandbox = require("@instructure/ui-test-sandbox");
require("./utils/shims");
var _waitForExpect = require("./utils/waitForExpect");
var _expect = require("./utils/expect");
var _generateA11yTests = require("./utils/generateA11yTests");
var _generateComponentExamples = require("./utils/generateComponentExamples");
var _generatePropCombinations = require("./utils/generatePropCombinations");
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
// these are defined in assertions.ts
// aliases for backwards compat:
const within = exports.within = _uiTestQueries.wrapQueryResult;
const wrap = exports.wrap = _uiTestQueries.wrapQueryResult;
const wait = exports.wait = _waitForExpect.waitForExpect;
;