public void VerifyWeekStartDay_CalendarView() { BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); var actualWeekStartDay = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetWeekStartDayInCalendarView(); Assert.AreEqual("Sunday", actualWeekStartDay); BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget("Calendar"); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectWeekStartsOnMonday(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); var actualWeekStartDay1 = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetWeekStartDayInCalendarView(); Assert.AreEqual("Monday", actualWeekStartDay1); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual("Monday", actualWeekStartDay1); BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget("Calendar"); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectWeekStartsOnSunday(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.AreEqual("Sunday", actualWeekStartDay); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual("Sunday", actualWeekStartDay); }
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); }
public void DeleteEventsWidget() { BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SelectExtraOptionForWidget(OperationNameDelete); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().CheckWidgetIsAvailable("Calendar"); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), culture: this.Culture); Assert.IsFalse(BATFeather.Wrappers().Frontend().CommonWrapper().IsItemPresent(EventsTitle), "Events widget was not deleted"); }
public void DuplicateEventsWidgets() { BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SelectExtraOptionForWidget(OperationName); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().VerifyCorrectOrderOfItemsOnBackend(EventsTitle, EventsTitle); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), culture: this.Culture); BATFeather.Wrappers().Frontend().CommonWrapper().VerifyDuplicatedWidgetInFrontend(EventsTitle, expectedCount); }
public void EditLayoutFileFromPackageCacheInvalidation() { BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false); Assert.IsTrue(ActiveBrowser.ContainsText(LayoutFileText), "Layout text is not correct."); BAT.Arrange(this.TestName).ExecuteArrangement("EditLayoutFile"); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false); Assert.IsTrue(ActiveBrowser.ContainsText(LayoutFileNewText), "Layout text after edit is not correct."); }
public void VerifyLoginWidgetToTemplateWhenOpenItemDetailViewAndForgotPassword() { RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn()); RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", false)); BAT.Macros().NavigateTo().Design().PageTemplates(this.Culture); BAT.Wrappers().Backend().PageTemplates().PageTemplateMainScreen().OpenTemplateEditor(TemplateTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(LoginStatusWidget, "Body"); BAT.Wrappers().Backend().PageTemplates().PageTemplateModifyScreen().PublishTemplate(); //Show "Forgotten Password" link BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(LoginFormWidget); BATFeather.Wrappers().Backend().Identity().LoginFormWrapper().SelectAllowUserToResetPasswordCheckbox(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); //Verify Login widet when open post item BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false, this.Culture, new HtmlFindExpression("class=sfPublicWrapper")); Assert.IsTrue(BATFeather.Wrappers().Frontend().Blogs().BlogsWrapper().IsBlogPostTitlesPresentOnThePageFrontend(this.postTitle)); BATFeather.Wrappers().Frontend().Identity().LoginFormWrapper().AssertAlreadyLoggedInMessage(); BATFeather.Wrappers().Frontend().Identity().LoginStatusWrapper().AssertLogoutButton(); BATFeather.Wrappers().Frontend().CommonWrapper().VerifySelectedAnchorLink(PostTitle, this.expectedUrl); BATFeather.Wrappers().Frontend().Identity().LoginFormWrapper().AssertAlreadyLoggedInMessage(); BATFeather.Wrappers().Frontend().Identity().LoginStatusWrapper().AssertLogoutButton(); Assert.IsTrue(ActiveBrowser.ContainsText(PostTitle), string.Format("The blog post title {0} was not found on the page", PostTitle)); BAT.Macros().User().LogOut(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false, this.Culture, new HtmlFindExpression("data-sf-role=~sf-logged-out-view")); Assert.IsTrue(BATFeather.Wrappers().Frontend().Blogs().BlogsWrapper().IsBlogPostTitlesPresentOnThePageFrontend(this.postTitle)); BATFeather.Wrappers().Frontend().Identity().LoginStatusWrapper().AssertLoginButton(); Assert.IsTrue(ActiveBrowser.ContainsText(RegisterText), "RegisterText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(ForgottenPasswordText), "ForgottenPasswordText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(UsernameText), "UsernameText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(PasswordText), "PasswordText was not found on the page"); BATFeather.Wrappers().Frontend().CommonWrapper().VerifySelectedAnchorLink(PostTitle, this.expectedUrl); BATFeather.Wrappers().Frontend().Identity().LoginStatusWrapper().AssertLoginButton(); Assert.IsTrue(ActiveBrowser.ContainsText(RegisterText), "RegisterText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(ForgottenPasswordText), "ForgottenPasswordText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(UsernameText), "UsernameText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(PasswordText), "PasswordText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(PostTitle), "PostTitle was not found on the page"); //Verify Login widget when open Forgotten password link BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false, this.Culture); BATFeather.Wrappers().Frontend().Identity().LoginFormWrapper().PressForgottenPasswordLink(); Assert.IsTrue(BATFeather.Wrappers().Frontend().Blogs().BlogsWrapper().IsBlogPostTitlesPresentOnThePageFrontend(this.postTitle)); BATFeather.Wrappers().Frontend().Identity().LoginStatusWrapper().AssertLoginButton(); Assert.IsTrue(ActiveBrowser.ContainsText(RegisterText), "RegisterText was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText("Forgot your password?"), "Forgot your password? was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText("Enter your login email address and you will receive email with a link to reset your password."), "Text was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText("Email"), "Email was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText("Send"), "Send was not found on the page"); }
public void VerifyAllowUsersToFilterByCalendars_CalendarView() { BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget("Calendar"); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ClickAllowUsersToFilterByCalendars(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); BATFeather.Wrappers().Frontend().Events().EventsWrapper().VerifyCalendarsAreNotVisible(); }
public void VerifyCssClass_CalendarView() { BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget("Calendar"); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToListSettingsTab(); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenMoreOptions(); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().ApplyCssClassInCalendarWidgetListSettingsTab(cssClassName); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); BATFeather.Wrappers().Frontend().Events().EventsWrapper().VerifyCssClassInCalendarWidgetOnPage(cssClassName); }
public void DragAndDropBlogsWidgetToPage() { 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(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(WidgetName); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); BATFeather.Wrappers().Frontend().CommonWrapper().VerifySelectedAnchorLink(BlogTitle, this.blogExpectedUrl); BATFeather.Wrappers().Frontend().CommonWrapper().VerifySelectedAnchorLink(PostTitle, this.postExpectedUrl); }
public void FilterEventsByCalendar() { BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); BATFeather.Wrappers().Frontend().Events().EventsWrapper().FilterEventsByCalendar(Calendar1Title); this.VerifyEventVisibilityInAllViews(1, 0, 0); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); BATFeather.Wrappers().Frontend().Events().EventsWrapper().FilterEventsByCalendar(Calendar2Title); this.VerifyEventVisibilityInAllViews(0, 1, 0); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); BATFeather.Wrappers().Frontend().Events().EventsWrapper().FilterEventsByCalendar(Calendar3Title); this.VerifyEventVisibilityInAllViews(0, 0, 1); }
public void AddContentBlockWidgetToPageVerifyViewPermissions() { 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(PageTitle); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().SelectExtraOptionForWidget(OperationName); BAT.Wrappers().Backend().Permissions().PermissionsContentWrapper().ClickChangePermissionsButton(PermissionTypes.View); BAT.Wrappers().Backend().Permissions().PermissionsContentWrapper().SelectAndAddRole("Authenticated"); BAT.Wrappers().Backend().Permissions().PermissionsContentWrapper().ClickBackButton(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().WaitUntilReady(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().User().LogOut(); ActiveBrowser.RefreshDomTree(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false, this.Culture); Assert.IsFalse(ActiveBrowser.ContainsText(ContentBlockText), "Content block text was found but it shouldn't"); }
public void BreadcrumbDetailEventItemVirtualNodes() { 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().CommonWrapper().VerifySelectedAnchorLink(EventsTitle, this.expectedUrl); ActiveBrowser.WaitUntilReady(); BATFeather.Wrappers().Frontend().Navigation().NavigationWrapper().VerifyBreadcrumbInFrontend(PageTitle, EventsTitle); BAT.Macros().NavigateTo().Pages(this.Culture); }
public void SetPermissionsToPageBasedOnLayoutFile() { RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain"))); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().DragAndDropWidgetToPlaceholder(WidgetCaption, FirstPlaceHolderId); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().DragAndDropWidgetToPlaceholder(WidgetCaption, SecondPlaceHolderId); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCaption, dropZoneIndex: 0); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SetTextDummyWidget(FirstWidgetText); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ClickSaveButton(); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCaption, dropZoneIndex: 1); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SetTextDummyWidget(SecondWidgetText); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ClickSaveButton(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Wrappers().Backend().Pages().PagesWrapper().GetActionsLink(PageTitle, "Permissions"); this.ChagePermissions(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false); Assert.IsTrue(ActiveBrowser.ContainsText(FirstWidgetText)); Assert.IsTrue(ActiveBrowser.ContainsText(SecondWidgetText)); }
public void ContentBlockWidgetAdvancedSettingsWrapperCssClassProperty() { RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn()); //Verify added Css class in Content Block widget in Page with Hybrid 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().VerifyApplyCssClass(CssClassesToApply); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture); Assert.IsTrue(ActiveBrowser.ContainsText(CssClassesToApply), "Css class was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(ContentBlockText), "Text was not found on the page"); //Verify change css class in Content Block widget in Page with Hybrid 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().ChangeCssClassInAdvancedSettings(CssClassesToApply, CssClassesChange); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), true, this.Culture); Assert.IsTrue(ActiveBrowser.ContainsText(CssClassesChange), "Css class was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(ContentBlockText), "Text was not found on the page"); //Verify added Css class in 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().VerifyApplyCssClass(CssClassesToApply); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsTrue(ActiveBrowser.ContainsText(CssClassesToApply), "Css class was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(ContentBlockText1), "Text was not found on the page"); //Verify change css class in 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().ChangeCssClassInAdvancedSettings(CssClassesToApply, CssClassesChange); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsTrue(ActiveBrowser.ContainsText(CssClassesChange), "Css class was not found on the page"); Assert.IsTrue(ActiveBrowser.ContainsText(ContentBlockText1), "Text was not found on the page"); }
public void AddWidgetToPageBasedOnLayoutWithMultiplePlaceholders() { BAT.Macros().NavigateTo().Pages(); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().DragAndDropWidgetToPlaceholder(WidgetCaption, FirstPlaceHolderId); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().DragAndDropWidgetToPlaceholder(WidgetCaption, SecondPlaceHolderId); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCaption, dropZoneIndex: 0); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SetTextDummyWidget(FirstWidgetText); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ClickSaveButton(); BATFrontend.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCaption, dropZoneIndex: 1); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().SetTextDummyWidget(SecondWidgetText); BATFrontend.Wrappers().Backend().Widgets().WidgetsWrapper().ClickSaveButton(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false); Assert.IsTrue(ActiveBrowser.ContainsText(FirstWidgetText)); Assert.IsTrue(ActiveBrowser.ContainsText(SecondWidgetText)); }
public void AddBlogPostsWidgetToPageOpenSingleItemInExistingPage() { 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(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(WidgetName); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SwitchToSingleItemSettingsTab(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectExistingPage(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ClickSelectButton(); BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().SelectItemsInHierarchicalSelector(SingleItemPage); BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().DoneSelecting(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifySelectedItemsFromHierarchicalSelector(this.selectedItemsFromPageSelector); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); BATFeather.Wrappers().Frontend().CommonWrapper().VerifySelectedAnchorLink(PostTitle, this.expectedUrl); }
public void VerifyTwoCalendarsWidgetsOnPage() { BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().AddWidgetToPlaceHolderPureMvcMode(WidgetName); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetName); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectWhichItemsToDisplay(2); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().ClickSelectButton(); BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().SelectItemsInFlatSelector(Event2Title); BATFeather.Wrappers().Backend().Widgets().SelectorsWrapper().DoneSelecting(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().CheckWidgetContent(WidgetName, Event2Title); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); var EventTitle1 = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetEventTitleInScheduler(event1Id); Assert.AreEqual(EventTitle1, Event1Title); this.VerifyEventVisibilityInCurrentView(event1Id, 1); var EventTitle2 = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetEventTitleInScheduler(event2Id); Assert.AreEqual(EventTitle2, Event2Title); this.VerifyEventVisibilityInCurrentView(event2Id, 2); }
public void VerifyNewsItemsWhenOpenDetailsModeOfDynamicItem() { RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().User().EnsureAdminLoggedIn()); RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain"))); //Verify News Items when open detail mode ot dynamic item in frontend Page with MVC template BAT.Macros().NavigateTo().CustomPage("~/" + PageName.ToLower(), false, this.Culture); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle1)); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle2)); Assert.IsTrue(BATFeather.Wrappers().Frontend().ModuleBuilder().ModuleBuilderWrapper().VerifyDynamicContentPresentOnTheFrontend(this.dynamicItemTitle)); BATFeather.Wrappers().Frontend().CommonWrapper().VerifySelectedAnchorLink(DynamicItemTitle, dynamicItemExpectedUrl); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle1)); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle2)); Assert.IsTrue(BATFeather.Wrappers().Frontend().ModuleBuilder().ModuleBuilderWrapper().VerifyDynamicContentPresentOnTheFrontend(this.dynamicItemTitle)); //Verify News Items when open detail mode ot dynamic item in frontend Page with Hybrid template BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), false, this.Culture); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle1)); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle2)); Assert.IsTrue(BATFeather.Wrappers().Frontend().ModuleBuilder().ModuleBuilderWrapper().VerifyDynamicContentPresentOnTheFrontend(this.dynamicItemTitle)); BATFeather.Wrappers().Frontend().CommonWrapper().VerifySelectedAnchorLink(DynamicItemTitle, dynamicItemExpectedUrl1); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle1)); Assert.IsTrue(BATFeather.Wrappers().Frontend().News().NewsWrapper().IsNewsTitlesPresentOnThePageFrontend(this.newsTitle2)); Assert.IsTrue(BATFeather.Wrappers().Frontend().ModuleBuilder().ModuleBuilderWrapper().VerifyDynamicContentPresentOnTheFrontend(this.dynamicItemTitle)); }
public void VerifyDefaultView_CalendarView() { ////Default Month view RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain"))); BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), MonthSchedulerView); ////Default Week view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(WeekSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); var actualDefaultWeekView = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(); Assert.AreEqual(WeekSchedulerView, actualDefaultWeekView); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), WeekSchedulerView); ////Default Work Week view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector("WorkWeek"); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); var actualDefaultWorkWeekView = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(); Assert.AreEqual(WorkWeekSchedulerView, actualDefaultWorkWeekView); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), WorkWeekSchedulerView); ////Default Day view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(DaySchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); var actualDefaultDayView = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(); Assert.AreEqual(DaySchedulerView, actualDefaultDayView); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), DaySchedulerView); ////Default Agenda view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(AgendaSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); var actualDefaultAgendaView = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(); Assert.AreEqual(AgendaSchedulerView, actualDefaultAgendaView); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), AgendaSchedulerView); ////Default Timeline view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(TimelineSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); var actualDefaultTimelineView = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(); Assert.AreEqual(TimelineSchedulerView, actualDefaultTimelineView); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), TimelineSchedulerView); ////Default Month view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(MonthSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); var actualDefaultMonthView = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(); Assert.AreEqual(MonthSchedulerView, actualDefaultMonthView); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), MonthSchedulerView); }
public void VerifyAllowUserToSwitchViews_CalendarView() { RuntimeSettingsModificator.ExecuteWithClientTimeout(800000, () => BAT.Macros().NavigateTo().CustomPage("~/sitefinity/pages", true, null, new HtmlFindExpression("class=~sfMain"))); ////Default Month view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(MonthSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().VerifyDefaultViewOptionsInCalendar(this.defaultViewOptions); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().UnSelectAllowUsersToSiwtchViewsCheckBoxInCalendarWidget(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassMonthView), MonthSchedulerView + TextVisible); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassMonthView), MonthSchedulerView + TextVisible); ////Default Week view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(WeekSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassWeekView), WeekSchedulerView + TextVisible); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), "Day isn't visibld"); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassWeekView), WeekSchedulerView + TextVisible); ////Default Work Week view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector("WorkWeek"); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassWorkWeekView), WorkWeekSchedulerView + TextVisible); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassWorkWeekView), WorkWeekSchedulerView + TextVisible); ////Default Day view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(DaySchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassDayView), DaySchedulerView + TextVisible); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassDayView), DaySchedulerView + TextVisible); ////Default Agenda view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(AgendaSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassAgendaView), AgendaSchedulerView + TextVisible); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassAgendaView), AgendaSchedulerView + TextVisible); ////Default Timeline view BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectOptionInDefaultCalendarViewSelector(TimelineSchedulerView); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassTimelineView), TimelineSchedulerView + TextVisible); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextNotVisible); Assert.IsFalse(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(TimelineSchedulerView), TimelineSchedulerView + TextNotVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(""), RefreshText + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsTableViewPresent(ClassTimelineView), TimelineSchedulerView + TextVisible); ////Allow user to switch views BAT.Macros().NavigateTo().Pages(this.Culture); BAT.Wrappers().Backend().Pages().PagesWrapper().OpenPageZoneEditor(PageTitle); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().EditWidget(WidgetCalendar); BATFeather.Wrappers().Backend().Pages().PageZoneEditorWrapper().OpenListSettingsView(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SelectAllowUsersToSiwtchViewsCheckBoxInCalendarWidget(); BATFeather.Wrappers().Backend().Widgets().WidgetDesignerWrapper().SaveChanges(); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextVisible); var actualDefaultTimelineView = BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(); Assert.AreEqual(TimelineSchedulerView, actualDefaultTimelineView); BAT.Wrappers().Backend().Pages().PageZoneEditorWrapper().PublishPage(); BAT.Macros().NavigateTo().CustomPage("~/" + PageTitle.ToLower(), true, this.Culture); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(MonthSchedulerView), MonthSchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WeekSchedulerView), WeekSchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(DaySchedulerView), DaySchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(WorkWeekSchedulerView), WorkWeekSchedulerView + TextVisible); Assert.IsTrue(BATFeather.Wrappers().Frontend().Events().EventsWrapper().IsItemPresent(AgendaSchedulerView), AgendaSchedulerView + TextVisible); Assert.AreEqual(BATFeather.Wrappers().Frontend().Events().EventsWrapper().GetSelectedSchedulerView(), TimelineSchedulerView); }
public void LowerCaseAllProps() { Path = Path?.ToLower(); PageTitle = PageTitle?.ToLower(); Referrer = Referrer?.ToLower(); }