Example #1
0
        public void ImportEditedModuleAllFieldsWithNewType()
        {
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().NavigateToModuleBuilderPage();
            BAT.Arrange(this.TestName).ExecuteArrangement("ImportNewPackage");
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().NavigateToModuleBuilderPage());
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().OpenModuleDashboard(ModuleName);
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().AssertContentIsPresent(ContentTypeName, true);
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().AssertContentIsPresent(ContentTypeNameNew, true);
            BAT.Macros().NavigateTo().Modules().ParticularModule(ModuleNameNewType, this.Culture);
            BAT.Wrappers().Backend().ModuleBuilder().ContentTypePageActionsWrapper().OpenCreateItemWizard(this.title);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().SetTitle(this.dynamicItemNameNewType);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().PublishItem();
            BAT.Macros().NavigateTo().Modules().ParticularModule(ModuleName, this.Culture);
            BAT.Wrappers().Backend().ModuleBuilder().ContentTypePageActionsWrapper().OpenCreateItemWizard(this.title);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().SetTitle(this.dynamicItemNameAllTypes);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().SetNumber(this.dynamicItemNumber);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().PublishItem();

            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddMvcWidgetHybridModePage(ContentTypeName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddMvcWidgetHybridModePage(ContentTypeNameNew);
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            this.VerifyDynamicItemsOnFrontend(this.dynamicItemNameAllTypes);
            this.VerifyDynamicItemsOnFrontend(this.dynamicItemNameNewType);
        }
 public void ImportEditedWidgetTemplateBlogStructure()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Design().WidgetTemplates());
     this.SelectAllTemplatesFromTheSidebar();
     this.VerifyWidgetTemplates(this.widgetTemplatesNames, EditedWidgetTemplate, AreaName);
     this.VerifyWidgetTemplates(this.widgetTemplatesNamesBlogPosts, EditedWidgetTemplate, AreaNameBlogPosts);
 }
        public void BreadcrumbDetailImageItemDocumentItemVideoItemVirtualNodes()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false));
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().ModuleBuilder().DynamicWidgetAdvancedSettingsWrapper().ClickAdvancedSettingsButton();
            BATFeather.Wrappers().Backend().ModuleBuilder().DynamicWidgetAdvancedSettingsWrapper().ClickModelButton();
            BATFeather.Wrappers().Backend().Navigation().NavigationWidgetEditWrapper().SetAllowVirtualNodes("True");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture);
            BATFeather.Wrappers().Frontend().ImageGallery().ImageGalleryWrapper().ClickImage(ImageAltText);
            ActiveBrowser.WaitUntilReady();
            BATFeather.Wrappers().Frontend().Navigation().NavigationWrapper().VerifyBreadcrumbInFrontend(PageTitle, ImageTitle);

            BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().ClickDocument(DocumentTitle);
            ActiveBrowser.WaitUntilReady();
            BATFeather.Wrappers().Frontend().Navigation().NavigationWrapper().VerifyBreadcrumbInFrontend(PageTitle, DocumentTitle);

            BATFeather.Wrappers().Frontend().DocumentsList().DocumentsListWrapper().ClickDocument(VideoTitle);
            ActiveBrowser.WaitUntilReady();
            BATFeather.Wrappers().Frontend().Navigation().NavigationWrapper().VerifyBreadcrumbInFrontend(PageTitle, VideoTitle);

            BAT.Macros().NavigateTo().Pages(this.Culture);
        }
Example #4
0
        public void VerifyUseLimitListSettingsOnFrontendPageForImageGalleryWidget()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain")));
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectRadioButtonOption(WidgetDesignerRadioButtonIds.UseLimit);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.UseLimit);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ChangePagingOrLimitValue("3", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("3", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.UseLimit);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("3", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().PressCancelButton();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            BATFeather.Wrappers().Frontend().ImageGallery().ImageGalleryWrapper().VerifyImageIsPresent(ImageAltText5);
            BATFeather.Wrappers().Frontend().ImageGallery().ImageGalleryWrapper().VerifyImageIsPresent(ImageAltText4);
            BATFeather.Wrappers().Frontend().ImageGallery().ImageGalleryWrapper().VerifyImageIsPresent(ImageAltText3);
            BATFeather.Wrappers().Frontend().ImageGallery().ImageGalleryWrapper().VerifyImageIsNotPresent(ImageAltText2);
            BATFeather.Wrappers().Frontend().ImageGallery().ImageGalleryWrapper().VerifyImageIsNotPresent(ImageAltText1);
            BAT.Macros().NavigateTo().Pages(this.Culture);
        }
        public void ExportEditedLibrariesModule()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Modules().Documents(this.Culture));
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().OpenCustomFieldsSection(CustomFieldsLinkID);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().DeleteField("Short");
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper()
            .AddCustomField(CustomFieldsNames.ShortText, "ShortEdited");
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().SaveCustomFields();
            ActiveBrowser.Refresh();

            this.Images(this.Culture);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().OpenCustomFieldsSection(CustomFieldsLinkID);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().DeleteField("Short");
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper()
            .AddCustomField(CustomFieldsNames.ShortText, "ShortEdited");
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().SaveCustomFields();
            ActiveBrowser.Refresh();

            BAT.Macros().NavigateTo().Modules().Videos(this.Culture);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().OpenCustomFieldsSection(CustomFieldsLinkID);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().DeleteField("Short");
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper()
            .AddCustomField(CustomFieldsNames.ShortText, "ShortEdited");
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().SaveCustomFields();
            ActiveBrowser.Refresh();

            BAT.Wrappers().Backend().Packaging().PackagingWrapper().ExportStructure();
            BAT.Arrange(this.TestName).ExecuteArrangement("VerifyExportedFiles");
        }
Example #6
0
        public void VerifyPagingOnFrontendPageForNewsWidget()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain")));
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.UsePaging);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ChangePagingOrLimitValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.UsePaging);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().PressCancelButton();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle4, NewsTitle3 }));
            Assert.IsFalse(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle2, NewsTitle1, NewsTitle0 }));
            BATFeather.Wrappers().Frontend().CommonWrapper().NavigateToPageUsingPager("2", 3);
            Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle2, NewsTitle1 }));
            Assert.IsFalse(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle4, NewsTitle3, NewsTitle0 }));
            BATFeather.Wrappers().Frontend().CommonWrapper().NavigateToPageUsingPager("3", 3);
            Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle0 }));
            Assert.IsFalse(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle4, NewsTitle3, NewsTitle2, NewsTitle1 }));
            BATFeather.Wrappers().Frontend().CommonWrapper().NavigateToPageUsingPager("1", 3);
            Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle4, NewsTitle3 }));
            Assert.IsFalse(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(new string[] { NewsTitle2, NewsTitle1, NewsTitle0 }));
            BAT.Macros().NavigateTo().Pages(this.Culture);
        }
Example #7
0
 public void AdminLogin()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Wrappers().Backend().Comments().ManageCommentsWrapper(ActiveBrowser).LogInUser(AdminUserName, AdminPassword));
     ActiveBrowser.WaitUntilReady();
     ActiveBrowser.WaitForAsyncJQueryRequests();
     BAT.Macros().User().EnsureAdminLoggedIn();
 }
        public void ImportEditedPages()
        {
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Arrange(this.TestName).ExecuteArrangement("ImportNewPackage");
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Classifications().AllClassifications());
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[0], exists: true);
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[1], exists: true);

            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().OpenCustomFieldsSection(CustomFieldsLinkID);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper()
            .VerifyFieldsArePresent(this.fieldNamesWithoutClassifications, this.fieldTypes);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[0]);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[1]);

            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().CreatePageLinkFromTopMenu();
            BAT.Wrappers().Backend().Pages().CreatePageWrapper().AssertFieldsAreVisible(CustomFieldsNames.FieldNamesInItemsScreen);
            BAT.Wrappers().Backend().Pages().CreatePageWrapper().SetPageTitle(PageName);
            BAT.Wrappers().Backend().Pages().CreatePageWrapper().ClickCreateAndGoToAddContentButton();
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddMvcWidgetHybridModePage(WidgetName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().FillContentToContentBlockWidget(ContentBlockText);
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().SaveChanges();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            this.VerifyItemsOnFrontEnd(ContentBlockText);
        }
Example #9
0
        public void AddAndDeleteGridWidgetFromFileSystemVerifyPageToolbox()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(1600000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false));
            RuntimeSettingsModificator.ExecuteWithClientTimeout(1600000, () => BAT.Macros().User().EnsureAdminLoggedIn());
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SwitchEditorLayoutMode(EditorLayoutMode.Layout);
            BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().DragAndDropLayoutWidgetToPlaceholder(LayoutCaption);
            BAT.Wrappers().Backend().Pages().PageLayoutEditorWrapper().VerifyLayoutWidgetPageEditor(LayoutCaption, GridCount1);
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), false);
            BATFrontend.Wrappers().Frontend().Widgets().GridWidgets().VerifyNewGridWidgetOnTheFrontend(this.layouts);

            BAT.Arrange(this.TestName).ExecuteArrangement("DeleteGridWidgetFromFileSystem");

            BAT.Macros().NavigateTo().Pages();
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SwitchEditorLayoutMode(EditorLayoutMode.Layout);
            Assert.IsFalse(
                BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().IsLayoutWidgetPresentInToolbox(LayoutCaption),
                "Layout widget is found in the toolbox");

            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), false);

            // Asserts that the page is not throwing an error 500 on the frontend
            HttpResponseMessage response = new HttpResponseMessage();

            Assert.AreEqual(200, (int)response.StatusCode);
        }
Example #10
0
 public void VerifyRegistrationWidgetAndProfileWidgetOnPreviewBootstrapTemplate()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false));
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn());
     BAT.Macros().NavigateTo().Design().PageTemplates(this.Culture);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
     BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(ProfileWidget, PlaceHolderId);
     BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(RegistrationWidget, PlaceHolderId);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PreviewTemplateFromEdit();
     ActiveBrowser.WaitUntilReady();
     ////Verify save changes message for Profile widget in Preview mode
     BATFeather.Wrappers().Frontend().Identity().ProfileWrapper().SaveChangesButton();
     Assert.IsTrue(ActiveBrowser.ContainsText(MessageSaveChangesProfileWidget), "Message was not found on the page");
     ////Verify all required fields message for Registration widget in Preview mode
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().RegisterButton();
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().AssertEmptyEmailFieldMessage();
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().AssertEmptyUsernameFieldMessage();
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().AssertEmptyPasswordFieldMessage();
     ////Verify successful message for Registration widget in Preview mode
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().FillEmail(Email);
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().FillUserName(UserName);
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().FillPassword(Password);
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().FillRetypePassword(Password);
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().RegisterButton();
     ActiveBrowser.WaitForElement("TextContent=~Thank you!");
     BATFeather.Wrappers().Frontend().Identity().RegistrationWrapper().VerifySuccessfullyMessage();
     BAT.Wrappers().Backend().Preview().RealPreviewWrapper().CloseBrowserWithPreview();
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SelectExtraOptionForWidget(OperationNameDelete);
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SelectExtraOptionForWidget(OperationNameDelete);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();
 }
Example #11
0
        public void EditAllPropertiesOfSelectedDocumentAndSearch()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false));
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn());
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().OpenDocumentSelector();
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().WaitForContentToBeLoaded(false);
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().SelectMediaFile(DocumentName1, true);
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().ConfirmMediaFileSelection();
            Assert.IsTrue(BATFeather.Wrappers().Backend().Media().DocumentPropertiesWrapper().IsTitlePopulated(DocumentName1), "Document title is not populated correctly");
            BATFeather.Wrappers().Backend().Media().DocumentPropertiesWrapper().EditAllProperties();
            BATFeather.Wrappers().Backend().Media().DocumentPropertiesWrapper().EnterNewTitleInPropertiesDialogAndPublish(DocumentNewName);
            BATFeather.Wrappers().Backend().Media().DocumentPropertiesWrapper().ChangeMediaFile();
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().SearchInMediaSelector(DocumentName1);
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().VerifyNoItemsFoundMessage();
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().WaitCorrectCountOfMediaFiles(0, MediaType);
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().SearchInMediaSelector(DocumentNewName);
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().WaitCorrectCountOfMediaFiles(1, MediaType);
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().VerifyCorrectMediaFiles(DocumentNewName);
            BATFeather.Wrappers().Backend().Media().MediaSelectorWrapper().PressCancelButton();
            BATFeather.Wrappers().Backend().Media().DocumentPropertiesWrapper().ConfirmMediaPropertiesDocsTemporary();
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().SaveChanges();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            this.VerifyFrontend();
        }
        public void ImportEditedNewsModule()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Modules().News(this.Culture));
            BAT.Arrange(this.TestName).ExecuteArrangement("ImportNewPackage");
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Classifications().AllClassifications());
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[0], exists: true);
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[1], exists: true);

            BAT.Macros().NavigateTo().Modules().News(this.Culture);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().OpenCustomFieldsSection(CustomFieldsLinkID);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper()
            .VerifyFieldsArePresent(this.fieldNamesWithoutClassifications, this.fieldTypes);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[0]);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[1]);

            BAT.Macros().NavigateTo().Modules().News(this.Culture);
            BAT.Wrappers().Backend().News().NewsWrapper().ClickCreateANewsItemButton();
            BAT.Wrappers().Backend().News().NewsCreateScreenWrapper().AssertFieldsAreVisible(classifications);
            BAT.Wrappers().Backend().News().NewsCreateScreenWrapper().AssertFieldsAreVisible(CustomFieldsNames.FieldNamesInItemsScreen);
            BAT.Wrappers().Backend().News().NewsCreateScreenWrapper().SetNewsTitle(NewsTitle);
            BAT.Wrappers().Backend().News().NewsCreateScreenWrapper().PublishNewsItem();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            this.VerifyItemsOnFrontEnd(NewsTitle);
        }
Example #13
0
        public void VerifyRevisionHistoryOfMVCPageTemplateContainsCalendarWidget()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/design/pagetemplates", false));
            BAT.Macros().NavigateTo().Design().PageTemplates(this.Culture);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickSaveAsDraftButton();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenRevisionHistoryScreenFromActionsMenu(TemplateTitle);
            Assert.AreEqual <int>(2, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (2) two");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().ClickOnSelectedVersion(TemplateVersion);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyRevisionHistoryVersionDialog(TemplateTitle, TemplateVersion, "Revision History");
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(Event1Title);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(Event2Title);

            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().ClickRevertToThisVersion();
            ActiveBrowser.WaitForElementEndsWithID("_MainToolBar");
            var actualControlsCount = BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().GetAllPageControls();

            Assert.AreEqual <int>(ExpectedControlsCount, actualControlsCount.Count, "The count isn't correct");
            bool iscalendarWidgetVisible = BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().IsWidgetVisible(WidgetName, Event1Title);

            Assert.IsTrue(iscalendarWidgetVisible);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickSaveAsDraftButton();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickBackToTemplatesButton();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenRevisionHistoryScreenFromActionsMenu(TemplateTitle);
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyRevisionHistoryScreen(TemplateTitle, "Templates");
            Assert.AreEqual <int>(3, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (3) three");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().ClickOnSelectedVersion(TemplateDraftVersion1);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(Event1Title);
        }
 public void ContentTagsOptionAndTagCloudTemplate()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false));
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn());
     BAT.Macros().NavigateTo().Pages(this.Culture);    
     BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
     BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
     BATFeather.Wrappers().Backend().Classifications().TagsWrapper().SelectRadioButtonOption(TagsRadioButtonIds.ContentTags);
     BATFeather.Wrappers().Backend().Classifications().TagsWrapper().SelectUsedByContentTypeOption(SelectedContentType);
     BATFeather.Wrappers().Backend().Classifications().TagsWrapper().SelectTagsTemplate(TagsTemplates.TagCloud);
     BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().CheckWidgetContent(WidgetName, TagTitle + 1);
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().CheckWidgetContent(WidgetName, TagTitle + 2);
     BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(ListWidgetName);
     BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ClickSelectButton(0);
     BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().SelectItemsInFlatSelector(ListTitle);
     BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().DoneSelecting();
     BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
     BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), false, this.Culture);
     Assert.IsTrue(BATFeather.Wrappers().Frontend().Classifications().ClassificationsWrapper().IsTagsTitlesPresentOnTheFrontendPage(new string[] { TagTitle + 2, TagTitle + 1 }));
     Assert.IsFalse(BATFeather.Wrappers().Frontend().Classifications().ClassificationsWrapper().IsTagsTitlesPresentOnTheFrontendPage(new string[] { TagTitle + 3 }));
     BATFeather.Wrappers().Frontend().Classifications().ClassificationsWrapper().VerifyCloudStyleTemplate(this.stylesTags, TagsTemplates.TagCloud);
     BATFeather.Wrappers().Frontend().Lists().ListsWidgetWrapper().VerifySimpleListTemplate(ListTitle, new string[] { ListItemTitle + 1, ListItemTitle + 2, ListItemTitle + 3 });
     BATFeather.Wrappers().Frontend().Classifications().ClassificationsWrapper().ClickTagTitle(TagTitle + 2);
     BATFeather.Wrappers().Frontend().Lists().ListsWidgetWrapper().VerifySimpleListTemplate(ListTitle, new string[] { ListItemTitle + 2, ListItemTitle + 3 });
 }
 public void AddContentBlockWidgetToPageTemplate()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/design/pagetemplates", false, this.Culture));
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn());
     BAT.Macros().NavigateTo().Design().PageTemplates(this.Culture);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().ClickOnCreateNewTemplateBtn();
     BAT.Wrappers().Backend().PageTemplates().PageTemplateCreateScreen().SetTemplateName(TemplateName);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateCreateScreen().ClickOnCreateTemplateAndGoToAddContentBtn();
     BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddMvcWidgetHybridModePage(WidgetName);
     BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
     BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().FillContentToContentBlockWidget(ContentBlockContent);
     BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().SaveChanges();
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();
     BAT.Macros().NavigateTo().Pages(this.Culture);
     BAT.Wrappers().Backend().Pages().PagesWrapper().OpenCreatePageWindow();
     BAT.Wrappers().Backend().Pages().CreatePageWrapper().SetPageTitle(PageName);
     BAT.Wrappers().Backend().Pages().CreatePageWrapper().ClickSelectAnotherTemplateButton();
     BAT.Wrappers().Backend().Pages().SelectTemplateWrapper().SelectATemplate(TemplateName);
     BAT.Wrappers().Backend().Pages().SelectTemplateWrapper().ClickDoneButton();
     BAT.Wrappers().Backend().Pages().PagesWrapper().SavePageDataAndContinue();
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().WaitUntilReady();
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
     BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
     BATFeather.Wrappers().Frontend().ContentBlock().ContentBlockWrapper().VerifyContentOfContentBlockOnThePageFrontend(ContentBlockContent);
 }
        public void DeactivateAndUninstallMarketoModuleAndCreateAForm()
        {
            BAT.Macros().User().EnsureAdminLoggedIn();
            BAT.Wrappers().Backend().ModulesAndServices().ModulesAndServicesWrapper().NavigateToModules();
            BAT.Wrappers().Backend().ModulesAndServices().ModulesAndServicesWrapper().DeactivateModule(moduleName);
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().Modules().Forms(this.Culture));
            BAT.Wrappers().Backend().Forms().FormsDashboard().ClickCreateAFormButton();
            BATFeather.Wrappers().Backend().Forms().FormsContentScreenWrapper().ClickAdvancedButton();
            BATFeather.Wrappers().Backend().Forms().FormsContentScreenWrapper().VerifyWebFrameworkExists();
            BAT.Wrappers().Backend().Forms().FormsCreateScreen().ClickBackToForms();

            BAT.Wrappers().Backend().ModulesAndServices().ModulesAndServicesWrapper().NavigateToModules();
            BAT.Wrappers().Backend().ModulesAndServices().ModulesAndServicesWrapper().UninstallModule(moduleName);
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().Modules().Forms(this.Culture));
            BAT.Wrappers().Backend().Forms().FormsDashboard().ClickCreateAFormButton();
            BATFeather.Wrappers().Backend().Forms().FormsContentScreenWrapper().ClickAdvancedButton();
            BATFeather.Wrappers().Backend().Forms().FormsContentScreenWrapper().VerifyWebFrameworkExists();
            BAT.Wrappers().Backend().Forms().FormsCreateScreen().ClickBackToForms();

            BAT.Wrappers().Backend().ModulesAndServices().ModulesAndServicesWrapper().NavigateToModules();
            BAT.Wrappers().Backend().ModulesAndServices().ModulesAndServicesWrapper().InstallModule(moduleName);
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().Modules().Forms(this.Culture));
            BAT.Wrappers().Backend().Forms().FormsDashboard().ClickCreateAFormButton();
            BAT.Wrappers().Backend().Forms().FormsCreateScreen().ExpandAdvancedOptions();
            BATFeather.Wrappers().Backend().Forms().FormsContentScreenWrapper().VerifyWebFrameworkExists();
            BAT.Wrappers().Backend().Forms().FormsCreateScreen().ClickBackToForms();
        }
Example #17
0
 public void DesignerNoJsonWithJs()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false, null, new HtmlFindExpression("class=~sfTreeTableColumn")));
     BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
     BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCaption);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().WaitForSaveButtonToAppear();
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifyWidgetTitle(WidgetCaption);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifyWidgetSaveButton();
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifyWidgetCancelButton();
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SelectContent("newsItemsSingleSelector");
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().WaitForItemsToAppear(3);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SetSearchText("Title1");
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().WaitForItemsToAppear(1);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SelectItem(SelectedNewsName1);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().DoneSelecting();
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifySelectedItemInFlatSelectors(SelectedNewsName1);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SelectContent("tagSingleSelector");
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().WaitForItemsToAppear(4);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SelectItem(TagTitle);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().DoneSelecting();
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifySelectedItemInFlatSelectors(TagTitle);
     BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ClickSaveButton();
     BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().VerifyContentInWidget(TagTitle);
     BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
 }
        public void ExportImportModuleAllFieldsFrontendCheck()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Wrappers().Backend().Packaging().PackagingWrapper().ExportStructure());
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().NavigateToModuleBuilderPage();
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().DeleteModule(ModuleName);
            BAT.Arrange(this.TestName).ExecuteArrangement("VerifyExportedFiles");
            BAT.Arrange(this.TestName).ExecuteArrangement("DeletePackageFromDB");
            BAT.Arrange(this.TestName).ExecuteArrangement("RestartApplication");
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().WaitForSystemRestart();
            ActiveBrowser.Refresh();
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().NavigateToModuleBuilderPage());
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().OpenModuleDashboard(ModuleName);
            BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().AssertContentIsPresent(ContentTypeName, true);
            BAT.Macros().NavigateTo().Modules().ParticularModule(ModuleName, this.Culture);
            BAT.Wrappers().Backend().ModuleBuilder().ContentTypePageActionsWrapper().OpenCreateItemWizard(this.title);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().SetTitle(this.dynamicItemNameAllTypes);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().SetNumber(this.dynamicItemNumber);
            BAT.Wrappers().Backend().ModuleBuilderWrapper().ModuleBuilderItemsCreateScreenFrameWrapper().PublishItem();

            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddMvcWidgetHybridModePage(ContentTypeName);
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            this.VerifyDynamicItemsOnFrontEnd(this.dynamicItemNameAllTypes);
        }
Example #19
0
        public void ImportEditedVideosStructure()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Modules().Videos(this.Culture));
            BAT.Arrange(this.TestName).ExecuteArrangement("ImportNewPackage");
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Classifications().AllClassifications());
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[0], exists: true);
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[1], exists: true);

            BAT.Macros().NavigateTo().Modules().Videos(this.Culture);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().OpenCustomFieldsSection(CustomFieldsLinkID);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper()
            .VerifyFieldsArePresent(CustomFieldsNames.FieldNamesAllEdited, CustomFieldsNames.FieldTypesAllEdited);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[0]);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[1]);

            BAT.Macros().NavigateTo().Modules().Videos(this.Culture);
            BAT.Wrappers().Backend().Libraries().LibrariesWrapper().OpenLibraryByTitle(AlbumName);
            BAT.Wrappers().Backend().Libraries().LibrariesWrapper().OpenEditVideoScreen(Name);
            BAT.Wrappers().Backend().Libraries().LibrariesWrapper().AssertFieldsAreVisible(CustomFieldsNames.FieldNamesInItemsScreen);
            BAT.Wrappers().Backend().Images().ImagesEdit().SetTitle(NewName);
            BAT.Wrappers().Backend().Images().ImagesEdit().Publish();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            Assert.IsTrue(BAT.Wrappers().Frontend().Images().ImageGallery().IsImagePresentByAlt(NewNameFrontend));
        }
Example #20
0
 public void DeletePublishAndDraftVersionInRevisionHistoryOnMvcPageTemplate()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/design/pagetemplates", false));
     BAT.Macros().NavigateTo().Design().PageTemplates(this.Culture);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();
     BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();
     BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickSaveAsDraftButton();
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickBackToTemplatesButton();
     BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenRevisionHistoryScreenFromActionsMenu(TemplateTitle);
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyRevisionHistoryScreen(TemplateTitle, "Templates");
     Assert.AreEqual <int>(3, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (3) three");
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().CheckRevisionHistoryVersionCheckBox("2.1");
     ActiveBrowser.WaitUntilReady();
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().PressDeleteButton();
     ActiveBrowser.WaitUntilReady();
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyTitleRowsInRevisionHistory("1.0");
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyTitleRowsInRevisionHistory("2.0");
     Assert.AreEqual <int>(2, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (2) two");
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().CheckRevisionHistoryVersionCheckBox("1.0");
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().PressDeleteButton();
     ActiveBrowser.WaitUntilReady();
     BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyTitleRowsInRevisionHistory("2.0");
     Assert.AreEqual <int>(1, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (1) one");
 }
        public void DeleteDraftAndPublishVersionInDetailRevisionHistoryPageOnMvcPageTemplate()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/design/pagetemplates", false));
            BAT.Macros().NavigateTo().Design().PageTemplates(this.Culture);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickSaveAsDraftButton();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickBackToTemplatesButton();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenRevisionHistoryScreenFromActionsMenu(TemplateTitle);
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyRevisionHistoryScreen(TemplateTitle, "Templates");
            Assert.AreEqual <int>(3, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (3) three");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().ClickOnSelectedVersion("1.0");
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyDeleteVersionButtonIsVisible();
            BAT.Macros().DialogOperations().StartConfirmDialogMonitoring();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().PressDeleteVersionButtonInDetailPage();

            ////BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenRevisionHistoryScreenFromActionsMenu(TemplateTitle);
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyTitleRowsInRevisionHistory("2.1");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyTitleRowsInRevisionHistory("2.0");
            Assert.AreEqual <int>(2, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (2) two");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().ClickOnSelectedVersion("2.1");
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyDeleteVersionButtonIsVisible();
            BAT.Macros().DialogOperations().StartConfirmDialogMonitoring();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().PressDeleteVersionButtonInDetailPage();
            ActiveBrowser.WaitUntilReady();
            ActiveBrowser.Refresh();
            ActiveBrowser.WaitForElementEndsWithID("_frontendPageTemplatesListView");
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenRevisionHistoryScreenFromActionsMenu(TemplateTitle);
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyTitleRowsInRevisionHistory("2.0");
            Assert.AreEqual <int>(1, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (1) one");
        }
Example #22
0
        public void VerifyOlderAndNewerVersionInRevisionHistoryOnMvcPageTemplate()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/design/pagetemplates", false));
            BAT.Macros().NavigateTo().Design().PageTemplates(this.Culture);
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(WidgetNews, Placeholder);
            Assert.IsTrue(BAT.Wrappers().Frontend().Pages().PagesWrapperFrontend().IsHtmlControlPresent(TitleOfNewsItem));
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();

            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(WidgetEvents, Placeholder);
            Assert.IsTrue(BAT.Wrappers().Frontend().Pages().PagesWrapperFrontend().IsHtmlControlPresent(TitleOfEventsItem));
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate();

            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(WidgetContentBlock, Placeholder);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetContentBlock);
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().FillContentToContentBlockWidget(ContentBlockContent);
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().SaveChanges();
            Assert.IsTrue(BAT.Wrappers().Frontend().Pages().PagesWrapperFrontend().IsHtmlControlPresent(ContentBlockContent));
            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickSaveAsDraftButton();

            BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickBackToTemplatesButton();
            BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenRevisionHistoryScreenFromActionsMenu(TemplateTitle);
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyRevisionHistoryScreen(TemplateTitle, "Templates");
            Assert.AreEqual <int>(3, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (3) three");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().ClickOnSelectedVersion(TemplatePublishedVersion1);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyRevisionHistoryVersionDialog(TemplateTitle, TemplatePublishedVersion1, RevisionHistoryText);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyDeleteVersionButtonIsVisible();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfNewsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyNotExistContentInRevisionHistory(TitleOfEventsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyNotExistContentInRevisionHistory(ContentBlockContent);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyOlderVersionLinkIsHidden();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().PressNewerVersionLink();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyRevisionHistoryVersionDialog(TemplateTitle, TemplatePublishedVersion2, RevisionHistoryText);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfNewsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfEventsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyNotExistContentInRevisionHistory(ContentBlockContent);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyDeleteVersionButtonIsHidden();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().PressNewerVersionLink();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyRevisionHistoryVersionDialog(TemplateTitle, TemplateDraftVersion2, RevisionHistoryText);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyDeleteVersionButtonIsVisible();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfNewsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfEventsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(ContentBlockContent);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyNewerVersionLinkIsHidden();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().PressOlderVersionLink();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyRevisionHistoryVersionDialog(TemplateTitle, TemplatePublishedVersion2, RevisionHistoryText);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfNewsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfEventsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyNotExistContentInRevisionHistory(ContentBlockContent);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyDeleteVersionButtonIsHidden();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().PressOlderVersionLink();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyRevisionHistoryVersionDialog(TemplateTitle, TemplatePublishedVersion1, RevisionHistoryText);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyDeleteVersionButtonIsVisible();
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(TitleOfNewsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyNotExistContentInRevisionHistory(TitleOfEventsItem);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyNotExistContentInRevisionHistory(ContentBlockContent);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyOlderVersionLinkIsHidden();
        }
        public void VerifyNoLimitAndPaginationListSettingsOnFrontendPageForVideoGalleryWidget()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain")));
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ChangePagingOrLimitValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectRadioButtonOption(WidgetDesignerRadioButtonIds.AllItems);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.AllItems);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.AllItems);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().PressCancelButton();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            Assert.IsTrue(BATFeather.Wrappers().Frontend().CommonWrapper().AreTitlesPresentOnThePageFrontend(new string[] { VideoTitles5, VideoTitles4, VideoTitles3, VideoTitles2, VideoTitles1 }));
            BAT.Macros().NavigateTo().Pages(this.Culture);
        }
        public void VerifyNoLimitAndPaginationListSettingsOnFrontendPageForUsersListWidget()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain")));
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ChangePagingOrLimitValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectRadioButtonOption(WidgetDesignerRadioButtonIds.AllItems);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.AllItems);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyCheckedRadioButtonOption(WidgetDesignerRadioButtonIds.AllItems);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("2", "Paging");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyPageValue("20", "Limit");
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().PressCancelButton();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            BATFeather.Wrappers().Frontend().Identity().UsersListWrapper().VerifyUsersListOnHybridPage(new string[] { UserFirstLastName1, UserFirstLastName2, UserFirstLastName3, UserFirstLastName4, UserFirstLastName5 });
            BAT.Macros().NavigateTo().Pages(this.Culture);
        }
Example #25
0
        public void DesignerAllComponentsNoJsonWithJs()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(1600000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false));
            RuntimeSettingsModificator.ExecuteWithClientTimeout(1600000, () => BAT.Macros().User().EnsureAdminLoggedIn());
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCaption);
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().WaitForSaveButtonToAppear();
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifyWidgetTitle(WidgetCaption);
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifyWidgetSaveButton();
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifyWidgetCancelButton();

            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ExpandOptions("Top");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ExpandOptions("selectors");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ExpandOptions("news");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SelectContent("newsItemsSingleSelector");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().WaitForDoneButtonToAppear();
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().DoneSelecting();

            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ExpandOptions("taxa");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SelectContent("tagSingleSelector");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().WaitForDoneButtonToAppear();
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().DoneSelecting();

            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ExpandOptions("Top");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ExpandOptions("Bottom");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ExpandOptions("html field");
            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().VerifyHtmlFieldContent();

            BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ClickSaveButton();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
        }
Example #26
0
        public void ImportEditedListsModule()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Modules().Lists(this.Culture));
            BAT.Wrappers().Backend().ListItems().ListItemsGridWrapper().NavigateToListItem("TestList");
            BAT.Arrange(this.TestName).ExecuteArrangement("ImportNewPackage");
            RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().NavigateTo().Classifications().AllClassifications());
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[0], exists: true);
            BAT.Wrappers().Backend().Taxonomies().ClassificationWrapper().VerifyTaxonExistenceInTaxonomyItemsScreen(classifications[1], exists: true);

            BAT.Macros().NavigateTo().Modules().Lists(this.Culture);
            BAT.Wrappers().Backend().ListItems().ListItemsGridWrapper().NavigateToListItem("TestList");
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().OpenCustomFieldsSection(CustomFieldsLinkID);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper()
            .VerifyFieldsArePresent(this.fieldNamesWithoutClassifications, this.fieldTypes);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[0]);
            BAT.Wrappers().Backend().CustomFields().CustomFieldsWrapper().VerifyFieldIsPresent(CustomFieldsNames.Classification, classifications[1]);

            BAT.Macros().NavigateTo().Modules().Lists(this.Culture);
            BAT.Wrappers().Backend().ListItems().ListItemsGridWrapper().NavigateToListItem("TestList");
            BAT.Wrappers().Backend().ListItems().ListItemsGridWrapper().CreateListItemFromTopMenu();
            BAT.Wrappers().Backend().ListItems().ListItemsGridWrapper().AssertFieldsAreVisible(this.fieldNamesWithoutClassificationsInEdit);
            BAT.Wrappers().Backend().ListItems().ListItemsGridWrapper().SetTitle(ListItemTitleNew);
            BAT.Wrappers().Backend().ListItems().ListItemsGridWrapper().Publish();

            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(ListWidget);
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ClickSelectButton(0);
            BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().SelectItemsInFlatSelector("TestList");
            BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().DoneSelecting();
            BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
            BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture);
            this.VerifyItemsOnFrontEnd(ListItemTitleNew);
        }
 /// <summary>
 /// Forces calling initialize methods that will prepare test with data and resources. This method must be overridden if you want
 /// in your test case.
 /// </summary>
 protected override void ServerSetup()
 {
     BAT.Arrange(this.TestName).ExecuteArrangement("LoadApplication");
     RuntimeSettingsModificator.ExecuteWithClientTimeout(200000, () => BAT.Macros().User().EnsureAdminLoggedIn());
     BAT.Arrange(this.TestName).ExecuteSetUp();
     BAT.Wrappers().Backend().ModuleBuilder().ModuleInitializerWrapper().WaitForSystemRestart();
 }
Example #28
0
        public void VerifyRevisionHistoryOfPageContainsCalendarWidget()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false));
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddMvcWidgetHybridModePage(WidgetName);
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SaveAsDraft();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            BAT.Wrappers().Backend().Pages().PagesWrapper().GetActionsLink("Actions", "Revision History");
            Assert.AreEqual <int>(3, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (3) three");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().ClickOnSelectedVersion(PageVersion);
            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyRevisionHistoryVersionDialog(PageTitle, PageVersion, "Revision History");
            ////BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(Event1Title);
            ////BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(Event2Title);

            BAT.Wrappers().Backend().RevisionHistory().VersionPreview().ClickRevertToThisVersion();
            ActiveBrowser.WaitForElementEndsWithID("sfPageContainer");
            var actualControlsCount = BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().GetAllDroppedWidgets();

            Assert.AreEqual <int>(ExpectedControlsCount, actualControlsCount.Count, "The count isn't correct");
            bool isCalendarWidgetVisible = BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().IsWidgetAvailable(WidgetName);

            Assert.IsTrue(isCalendarWidgetVisible);
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SaveAsDraft();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().BackToPages();
            BAT.Wrappers().Backend().Pages().PagesWrapper().GetActionsLink("Actions", "Revision History");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().VerifyRevisionHistoryScreen(PageTitle, "Pages");
            Assert.AreEqual <int>(4, BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().GetRevisionHistoryRows().Count, "The actual number of revisions doesn't match the expected (4) four");
            BAT.Wrappers().Backend().RevisionHistory().RevisionHistoryWrapper().ClickOnSelectedVersion(PageDraftVersion1);
            ////BAT.Wrappers().Backend().RevisionHistory().VersionPreview().VerifyContentInRevisionHistory(Event1Title);
        }
        public void ContentBlockWidgetVerifyLinksInEditorToolbar()
        {
            RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn());
            //Verify Links in Editor Toolbar in MVC Content Block widget in page with MVC template
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageName);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Bold");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Italic");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Underline");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert unordered list");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert ordered list");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Indent");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert hyperlink");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert image");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert file");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert video");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Create table");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Clean formatting");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("All tools");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Fullscreen");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenButtonsInEditorToolbar("Strikethrough");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenButtonsInEditorToolbar("Subscript");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenButtonsInEditorToolbar("Superscript");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenDropDownInEditorToolbar("Color");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenDropDownInEditorToolbar("Background color");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenSelectMenuInEditorToolbar("Select font family");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenSelectMenuInEditorToolbar("Select font size");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().SaveChanges();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();

            //Verify Links in Editor Toolbar in MVC Content Block widget in page with MVC template
            BAT.Macros().NavigateTo().Pages(this.Culture);
            BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle);
            BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName);
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Bold");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Italic");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Underline");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert unordered list");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert ordered list");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Indent");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert hyperlink");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert image");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert file");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Insert video");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Create table");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Clean formatting");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("All tools");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyVisibleButtonsInEditorToolbar("Fullscreen");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenButtonsInEditorToolbar("Strikethrough");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenButtonsInEditorToolbar("Subscript");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenButtonsInEditorToolbar("Superscript");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenDropDownInEditorToolbar("Color");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenDropDownInEditorToolbar("Background color");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenSelectMenuInEditorToolbar("Select font family");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().VerifyHiddenSelectMenuInEditorToolbar("Select font size");
            BATFeather.Wrappers().Backend().ContentBlocks().ContentBlocksWrapper().SaveChanges();
            BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage();
        }
Example #30
0
 public void VerifyGeneratedTemplatesDefaultResourcePackages()
 {
     RuntimeSettingsModificator.ExecuteWithClientTimeout(1600000, () => BAT.Macros().User().EnsureAdminLoggedIn());
     RuntimeSettingsModificator.ExecuteWithClientTimeout(1600000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/design/pagetemplates", false, null, new HtmlFindExpression("class=~sfMain")));
     BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(BootstrapTemplate);
     Assert.IsTrue(BATFrontend.Wrappers().Backend().PageTemplates().PageTemplateEditor().IsPlaceHolderPresent(PlaceHolderId), "Placeholder not found in template editor");
     BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().ClickBackToTemplatesButton();
 }