當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。