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


TypeScript browser.refresh方法代码示例

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


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

示例1: it

    it('[C260215] Should the penultimate version of an app be displayed on dashboard when the last version is deleted in APS', async () => {
        navigationBarPage.navigateToProcessServicesPage();

        processServicesPage.checkApsContainer();

        processServicesPage.checkAppIsDisplayed(appToBeDeleted.title);
        expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);

        browser.controlFlow().execute(() => {
            return apps.importNewVersionAppDefinitionPublishDeployApp(this.alfrescoJsApi, replacingApp.file_location, appVersionToBeDeleted.id);
        });

        browser.refresh();

        processServicesPage.getBackgroundColor(appToBeDeleted.title);

        expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.GREY);

        browser.controlFlow().execute(async () => {
            await modelActions.deleteVersionModel(this.alfrescoJsApi, appVersionToBeDeleted.id);
            await modelActions.deleteVersionModel(this.alfrescoJsApi, appVersionToBeDeleted.id);
            await apps.publishDeployApp(this.alfrescoJsApi, appVersionToBeDeleted.id);
        });

        browser.refresh();

        processServicesPage.checkApsContainer();
        processServicesPage.checkAppIsDisplayed(appToBeDeleted.title);
        expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
    });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:30,代码来源:apps-section.e2e.ts

示例2: it

        it('[C277144] Should be able to click show more/less button with pageSize set with a custom value', () => {
            navigationBarPage.clickConfigEditorButton();

            jsonFile.categories[1].component.settings.pageSize = 10;

            for (let numberOfOptions = 0; numberOfOptions < 8; numberOfOptions++) {
                jsonFile.categories[1].component.settings.options.push({ 'name': 'Folder', 'value': "TYPE:'cm:folder'" });
            }

            configEditorPage.clickSearchConfiguration();
            configEditorPage.clickClearButton();
            configEditorPage.enterBigConfigurationText(JSON.stringify(jsonFile));
            configEditorPage.clickSaveButton();

            searchDialog.clickOnSearchIcon().checkSearchBarIsVisible().enterTextAndPressEnter(randomName);
            searchFiltersPage.clickCheckListFilter();

            expect(searchFiltersPage.checkListFiltersPage().getCheckListOptionsNumberOnPage()).toBe(10);

            searchFiltersPage.checkListFiltersPage().checkShowMoreButtonIsNotDisplayed();

            browser.refresh();

            navigationBarPage.clickConfigEditorButton();

            jsonFile.categories[1].component.settings.pageSize = 11;

            configEditorPage.clickSearchConfiguration();
            configEditorPage.clickClearButton();
            configEditorPage.enterBigConfigurationText(JSON.stringify(jsonFile));
            configEditorPage.clickSaveButton();

            searchDialog.clickOnSearchIcon().checkSearchBarIsVisible().enterTextAndPressEnter(randomName);
            searchFiltersPage.clickCheckListFilter();

            expect(searchFiltersPage.checkListFiltersPage().getCheckListOptionsNumberOnPage()).toBe(10);

            searchFiltersPage.checkListFiltersPage().checkShowMoreButtonIsNotDisplayed();

            browser.refresh();

            navigationBarPage.clickConfigEditorButton();

            jsonFile.categories[1].component.settings.pageSize = 9;

            configEditorPage.clickSearchConfiguration();
            configEditorPage.clickClearButton();
            configEditorPage.enterBigConfigurationText(JSON.stringify(jsonFile));
            configEditorPage.clickSaveButton();

            searchDialog.clickOnSearchIcon().checkSearchBarIsVisible().enterTextAndPressEnter(randomName);
            searchFiltersPage.clickCheckListFilter();

            expect(searchFiltersPage.checkListFiltersPage().getCheckListOptionsNumberOnPage()).toBe(9);

            searchFiltersPage.checkListFiltersPage().checkShowMoreButtonIsDisplayed();

            browser.refresh();
        });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:59,代码来源:search-checkList.e2e.ts

示例3: it

        it('[C277147] Should be able to customise the pageSize value', () => {
            navigationBarPage.clickConfigEditorButton();

            jsonFile.categories[5].component.settings.pageSize = 10;

            for (let numberOfOptions = 0; numberOfOptions < 6; numberOfOptions++) {
                jsonFile.categories[5].component.settings.options.push({
                    'name': 'APP.SEARCH.RADIO.FOLDER',
                    'value': "TYPE:'cm:folder'"
                });
            }

            configEditorPage.clickSearchConfiguration();
            configEditorPage.clickClearButton();
            configEditorPage.enterBigConfigurationText(JSON.stringify(jsonFile));
            configEditorPage.clickSaveButton();

            searchDialog.clickOnSearchIcon().checkSearchBarIsVisible().enterTextAndPressEnter(randomName);
            searchFiltersPage.clickTypeFilterHeader();

            expect(searchFiltersPage.typeFiltersPage().getRadioButtonsNumberOnPage()).toBe(10);

            browser.refresh();

            navigationBarPage.clickConfigEditorButton();

            jsonFile.categories[5].component.settings.pageSize = 11;

            configEditorPage.clickSearchConfiguration();
            configEditorPage.clickClearButton();
            configEditorPage.enterBigConfigurationText(JSON.stringify(jsonFile));
            configEditorPage.clickSaveButton();

            searchDialog.clickOnSearchIcon().checkSearchBarIsVisible().enterTextAndPressEnter(randomName);
            searchFiltersPage.clickTypeFilterHeader();

            expect(searchFiltersPage.typeFiltersPage().getRadioButtonsNumberOnPage()).toBe(10);

            browser.refresh();

            navigationBarPage.clickConfigEditorButton();

            jsonFile.categories[5].component.settings.pageSize = 9;

            configEditorPage.clickSearchConfiguration();
            configEditorPage.clickClearButton();
            configEditorPage.enterBigConfigurationText(JSON.stringify(jsonFile));
            configEditorPage.clickSaveButton();

            searchDialog.clickOnSearchIcon().checkSearchBarIsVisible().enterTextAndPressEnter(randomName);
            searchFiltersPage.clickTypeFilterHeader();

            expect(searchFiltersPage.typeFiltersPage().getRadioButtonsNumberOnPage()).toBe(9);

            searchFiltersPage.typeFiltersPage().checkShowMoreButtonIsDisplayed();
            searchFiltersPage.typeFiltersPage().checkShowLessButtonIsNotDisplayed();

            browser.refresh();
        });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:59,代码来源:search-radio.e2e.ts

示例4: afterEach

 afterEach(async (done) => {
     viewerPage.clickCloseButton();
     contentServicesPage.checkAcsContainer();
     browser.refresh();
     contentServicesPage.checkAcsContainer();
     done();
 });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:7,代码来源:aspect-oriented-config.e2e.ts

示例5: it

    it('[C274688] Should extension type added as excluded and accepted not be uploaded', () => {

        browser.refresh();

        navigationBarPage.clickConfigEditorButton();

        configEditorPage.clickFileConfiguration();

        configEditorPage.clickClearButton();

        configEditorPage.enterConfiguration('{' +
            '"excluded": [' +
                '".DS_Store",' +
                '"desktop.ini",' +
                '"*.png"' +
            '],' +
            '"match-options": {' +
                '"nocase": true' +
            '}}');

        configEditorPage.clickSaveButton();

        contentServicesPage.goToDocumentList();

        uploadToggles.enableExtensionFilter();
        browser.driver.sleep(1000);
        uploadToggles.addExtension('.png');

        contentServicesPage.uploadFile(pngFile.location);
        browser.driver.sleep(1000);
        contentServicesPage.checkContentIsNotDisplayed(pngFile.name);
    });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:32,代码来源:excluded-file.e2e.ts

示例6: expect

        browser.controlFlow().execute(async () => {

            navigationBarPage.openContentServicesFolder(uploadedFolder.entry.id);

            browser.getCurrentUrl().then((actualUrl) => {
                expect(actualUrl).toEqual(TestConfig.adf.url + '/files/' + uploadedFolder.entry.id);
            });

            contentServicesPage.waitForTableBody();

            navigationBarPage.clickLogoutButton();

            logoutPage.checkLogoutSectionIsDisplayed();

            navigationBarPage.openContentServicesFolder(uploadedFolder.entry.id);
            loginPage.waitForElements();
            browser.refresh();
            loginPage.waitForElements();

            loginPage.enterUsername(user.id);
            loginPage.enterPassword(user.password);
            loginPage.clickSignInButton();

            navigationBarPage.checkMenuButtonIsDisplayed();

            browser.getCurrentUrl().then((actualUrl) => {
                expect(actualUrl).toEqual(TestConfig.adf.url + '/files/' + uploadedFolder.entry.id);
            });
        });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:29,代码来源:redirection.e2e.ts

示例7: it

 it('comments panel: refresh returns to comment', () => {
   const comment = editorPage.comment.getComment(0);
   browser.refresh();
   browser.wait(ExpectedConditions.visibilityOf(editorPage.comment.bubbles.first), constants.conditionTimeout);
   editorPage.comment.bubbles.first.click();
   browser.wait(ExpectedConditions.visibilityOf(editorPage.commentDiv), constants.conditionTimeout);
   expect<any>(comment.content.getText()).toEqual('First comment on this word.');
 });
开发者ID:,项目名称:,代码行数:8,代码来源:

示例8: it

 it('Change the slides by time', () => {
   browser.refresh();
   inputInterval.clear();
   inputInterval.sendKeys(`1500`);
   browser.sleep(2010);
   expect($(getSlideNumber('2')).getAttribute('class')).toContain('active');
   controlLeft.click();
 });
开发者ID:Zuiago,项目名称:ngx-bootstrap,代码行数:8,代码来源:carousel-demo.e2e-spec.ts

示例9: it

 it('should be using Thai Semantic Domain after refresh', () => {
   Utils.clickBreadcrumb(constants.testProjectName);
   editorPage.browse.findEntryByLexeme(constants.testEntry1.lexeme.th.value).click();
   expect<any>(editorPage.edit.semanticDomain.values.first().getText()).toEqual(semanticDomain1dot1Thai);
   expect<any>(editorPage.edit.entryCountElem.isDisplayed()).toBe(true);
   browser.refresh();
   browser.wait(ExpectedConditions.visibilityOf(editorPage.edit.entryCountElem), Utils.conditionTimeout);
   expect<any>(editorPage.edit.semanticDomain.values.first().getText()).toEqual(semanticDomain1dot1Thai);
 });
开发者ID:sillsdev,项目名称:web-languageforge,代码行数:9,代码来源:semantic-domains.e2e-spec.ts


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