本文整理汇总了TypeScript中selenium-webdriver/testing.it函数的典型用法代码示例。如果您正苦于以下问题:TypeScript it函数的具体用法?TypeScript it怎么用?TypeScript it使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了it函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: fdescribe
fdescribe('HelloWorldComponent', () => {
let component: HelloWorldComponent;
let fixture: ComponentFixture<HelloWorldComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [HelloWorldComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HelloWorldComponent);
component = fixture.componentInstance;
// let mathService = TestBed.get(MathService);
// spyOn(mathService, 'plus');
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should be equals', () => {
expect(component.helloWorld).toEqual("Hello world");
});
it('should be', () => {
// component.ngOnInit();
// component.a = 7;
// component.b = 2;
});
});
示例2:
testing.describe('My test suite', () => {
testing.it('My test', () => {
});
testing.iit('My exclusive test.', () => {
});
});
示例3: describe
describe('Google Search', () => {
let driver: WebDriver;
before(() => {
driver = new Builder().forBrowser('firefox').build();
});
beforeEach(() => { });
after(() => {
driver.quit();
});
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);
});
});
});
示例4: function
testing.describe('My test suite', function () {
testing.it('My test', function () {
});
testing.iit('My exclusive test.', function () {
});
});