本文整理汇总了TypeScript中selenium-webdriver/testing.xdescribe函数的典型用法代码示例。如果您正苦于以下问题:TypeScript xdescribe函数的具体用法?TypeScript xdescribe怎么用?TypeScript xdescribe使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xdescribe函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: TestTestingModule
function TestTestingModule() {
testing.before(function () {
});
testing.beforeEach(function () {
});
testing.describe("My test suite", function () {
testing.it("My test", function () {
});
testing.iit("My exclusive test.", function () {
});
});
testing.xdescribe("My disabled suite", function () {
testing.xit("My disabled test.", function () {
});
});
testing.after(function () {
});
testing.afterEach(function () {
});
}
示例2: TestTestingModule
function TestTestingModule() {
testing.before(() => {
});
testing.beforeEach(() => {
});
testing.describe('My test suite', () => {
testing.it('My test', () => {
});
testing.iit('My exclusive test.', () => {
});
});
testing.xdescribe('My disabled suite', () => {
testing.xit('My disabled test.', () => {
});
});
testing.after(() => {
});
testing.afterEach(() => {
});
}
示例3: afterEach
afterEach(() => { });
it('should append query to title', () => {
const flow = controlFlow();
flow.execute(() => {
driver.get('http://www.google.com/ncr');
driver.findElement(By.name('q')).sendKeys('webdriver');
driver.findElement(By.name('btnG')).click();
driver.wait(until.titleIs('webdriver - Google Search'), 1000);
});
});
});
ignore(maybe).it('is flaky', () => {
if (Math.random() < 0.5) throw Error();
});
function maybe() { return Math.random() < 0.5; }
describe.only('just this', () => {
it.only('just this too', () => { });
});
describe.skip('not this', () => {
it.skip('not this either', () => { });
});
xdescribe('not this', () => {
xit('not this either', () => { });
});