当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript protractor.ExpectedConditions.stalenessOf方法代码示例

本文整理汇总了TypeScript中protractor.protractor.ExpectedConditions.stalenessOf方法的典型用法代码示例。如果您正苦于以下问题:TypeScript protractor.ExpectedConditions.stalenessOf方法的具体用法?TypeScript protractor.ExpectedConditions.stalenessOf怎么用?TypeScript protractor.ExpectedConditions.stalenessOf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在protractor.protractor.ExpectedConditions的用法示例。


在下文中一共展示了protractor.ExpectedConditions.stalenessOf方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: it

    it('files link in sidebar should have correct count', async () => {
        let count = element(by.css('ng-sidebar aside ul li a.files .count')),
            emptyLabel = element(by.css('.secondary-sidebar .files .empty')),
            filesLink = element(by.css('.primary-sidebar a.files')),
            saveBtn = element(by.css('sd-device-toolbar .save')),
            saveModal = element(by.css('.save-modal')),
            filenameInput = element(by.css('.save-modal input[name="filename"]'));

        expect(await count.getText()).toBe('(0)');

        filesLink.click();
        expect(await emptyLabel.isPresent()).toBe(true);
        filesLink.click();

        saveBtn.click();
        browser.wait(protractor.ExpectedConditions.visibilityOf(saveModal), 1000);
        expect(await saveModal.isDisplayed()).toBe(true);

        filenameInput.sendKeys('FILENAME');
        filenameInput.sendKeys(protractor.Key.ENTER);
        browser.wait(protractor.ExpectedConditions.stalenessOf(element(by.css('.modal-backdrop'))), 1000);
        expect(await count.getText()).toBe('(1)');

        filesLink.click();
        expect(await emptyLabel.isPresent()).toBe(false);
        filesLink.click();

        browser.executeScript('localStorage.removeItem("zephyrjs-ide.FILES.FILENAME");');
    });
开发者ID:baleboy,项目名称:zephyrjs-ide,代码行数:29,代码来源:editor.component.e2e-spec.ts

示例2: waitForWalletToBeCreated

 waitForWalletToBeCreated() {
   browser.wait(
     protractor.ExpectedConditions.stalenessOf(element(by.css('app-create-wallet'))),
     10000,
     'Wallet was not created',
   );
 }
开发者ID:skycoin,项目名称:skycoin,代码行数:7,代码来源:wallets.po.ts

示例3: element

 return btn.click().then(() => {
   return browser.wait(
     protractor.ExpectedConditions.stalenessOf(element(by.css('app-password-dialog'))),
     30000,
     'Can not decrypt wallet',
   ).then(() => {
     return element(by.css('.-enable-encryption')).isPresent();
   });
 });
开发者ID:skycoin,项目名称:skycoin,代码行数:9,代码来源:wallets.po.ts

示例4: it

  it('should close the viewer on exit', () => {
    page.getExitButton().click()

    browser.wait(protractor.ExpectedConditions.stalenessOf(page.getImageInsideViewerIfActive(3)), 1000)
    browser.wait(protractor.ExpectedConditions.stalenessOf(page.getExitButton()), 1000)
  })
开发者ID:BenjaminBrandmeier,项目名称:ng2imggallery,代码行数:6,代码来源:app.e2e-spec.ts


注:本文中的protractor.protractor.ExpectedConditions.stalenessOf方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。