public void P20_1_tc_26290_Reviews_and_ratings_the_Tests() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC26290"); _test.Log(Status.Info, "A New test created"); TestwizardPage.checkin(); CommonSection.Logout(); LoginPage.LoginAs("srlearner103").WithPassword("password").Login(); CommonSection.SearchCatalog(TestTitle + "_TC26290"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC26290"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay_GeneralCourse()); ContentDetailsPage.Click_ReviewTab_GeneralCourse(); Assert.IsFalse(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); ContentDetailsPage.ContentBanner.ClickOpenItembutton(); //ContentDetailsPage.CompleteTest(); ContentDetailsPage.ContentBanner.CloseOpenedTestwindow(); ContentDetailsPage.Click_ReviewTab_GeneralCourse(); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); ContentDetailsPage.GeneralCourse_ReviewsTab.WriteaReview("Title", "For Testing"); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isReviewlistUpdated("Title")); _test.Log(Status.Pass, "User submited review"); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isEditReviewlinkdisplay()); _test.Log(Status.Pass, "Verify user can edit his own review in content edit mode"); ContentDetailsPage.GeneralCourse_ReviewsTab.DeleteReview(); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); _test.Log(Status.Pass, "Verify review deleted and Write a Review button display"); TC60280 = true; }
public void tc_60489_Public_catalog_banner_actions_for_Test() { ContentDetailsPage.clickReturningUserLogin(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC60489"); _test.Log(Status.Info, "A New test created"); TestwizardPage.addPrerequisitetotest(); TestwizardPage.UploadImagetoTest(); TestwizardPage.PublishtoPublishcatalog(); TestwizardPage.checkin(); CommonSection.Logout(); LoginPage.ClickBrowsePublicCatalogLink(); CommonSection.SearchCatalog(TestTitle + "_TC60489"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC60489"); Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay()); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(TestTitle + "_TC60489")); _test.Log(Status.Pass, "Verify Content title is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay()); _test.Log(Status.Pass, "Verify Content type is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay()); _test.Log(Status.Pass, "Verify Image is display on Banner"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay()); }
public void P20_1_tc_26288_Add_Test_to_Cart() { CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC26288"); _test.Log(Status.Info, "A New test created"); TestwizardPage.addCosttoTest("5"); _test.Log(Status.Info, "Upload any Image file to content"); TestwizardPage.checkin(); CommonSection.Logout(); LoginPage.LoginAs("srlearner103").WithPassword("").Login(); CommonSection.SearchCatalog(TestTitle + "_TC26288"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC26288"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay()); _test.Log(Status.Pass, "Verify Add to Cart button display"); ContentDetailsPage.OverviewTab.click_AddtoCart(); Assert.IsTrue(ContentDetailsPage.OverviewTab.AddtoCartportlet.isTestAddedtoCart()); CommonSection.ClickShoppingCart(); ShoppingCartPage.CompletePurchaseProcess(); OrderPage.Click_Purchased_Content(TestTitle + "_TC26288"); Assert.IsTrue(ContentDetailsPage.OverviewTab.Costportlet.isViewOrderlinkDisplay()); _test.Log(Status.Pass, "Verify view order link display on Add to Cart portlet"); ContentDetailsPage.OverviewTab.Costportlet.ClickViewOrderlink(); Assert.IsTrue(OrderDetailsPage.VerifyPurchasedContent(TestTitle + "_TC26288")); TC26378 = true; }
public void tc_60287_Tests_Banner_Actions_View_History_for_requesting_access() { CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle); _test.Log(Status.Info, "A New test created"); TestwizardPage.setApprovalPath(); TestwizardPage.checkin(); CommonSection.SearchCatalog(TestTitle); SearchResultsPage.ClickCourseTitle(TestTitle); Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay()); _test.Log(Status.Pass, "Verify is Request Access button display on Banner"); ContentDetailsPage.AccessApprovalModal.SubmitRequestAccess("ForTest"); _test.Log(Status.Info, "Submit Request Access"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isCancleRequestbuttonDisplay()); _test.Log(Status.Pass, "Verify is Cancle Request Access button display"); ContentDetailsPage.ContentBanner.ClickViewRequestHistory(); Assert.IsTrue(ContentDetailsPage.isHistorywindowopened()); Assert.IsTrue(ContentDetailsPage.Historywin.isfieldsdisplay(TestTitle, "Content type", "status")); Driver.Instance.SelectWindowClose2("History", Meridian_Common.parentwdw); ContentDetailsPage.AccessApprovalModal.SubmitCancelRequestAccess("ForTest"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isRequestAccessbuttondisplay()); _test.Log(Status.Info, "Verify Cancel Request access wotk flow"); TC26286 = true; TC26287 = true; }
public IdleWindow() { InitializeComponent(); testsPage = new TestsPage(); idlePage = new IdlePage(); taskPage = new TaskPage(); var testInfo = Actions.GetTestQuestions(); /// UNTIL NOT RELIZE testInfo.IsComplated if (!testInfo.IsCompleted) /// HERE { MyFrame.Navigate(testsPage); } else { MyFrame.Navigate(idlePage); } testsPage.SkipButton.Click += Button_Skip; idlePage.task1.Click += Button_To_Task; taskPage.backToIdlePageButton.Click += Button_Skip; idlePage.toTestAgain.Click += Button_To_Test_Page; }
public void TestListViewMenuOnItemSelectedNavigatesToNewPage([Values] MenuItemType start, [Values] MenuItemType end) { SelectedItemChangedEventArgs arg = new SelectedItemChangedEventArgs(new HomeMenuItem { Id = end, Title = "Title" }, 0); MainPage mainPage = new MainPageForTest(null); Page startPage = null; Type expected = null; switch (start) { case MenuItemType.Tests: startPage = new TestsPage(null, null, false); expected = typeof(TestsPage); break; case MenuItemType.About: startPage = new AboutPage(false); expected = typeof(AboutPage); break; default: Assert.Fail($" MenuItemType {start} is not supported by this test."); break; } switch (end) { case MenuItemType.Tests: expected = typeof(TestsPage); break; case MenuItemType.About: expected = typeof(AboutPage); break; default: Assert.Fail($" MenuItemType {end} is not supported by this test."); break; } mainPage.Detail = new NavigationPage(startPage); MenuPageForTest page = new MenuPageForTest(mainPage); Task task = page.InvokeListViewMenuOnItemSelected(this, arg); Assert.IsNotNull(task); task.Wait(); Page navPage = (mainPage.Detail as NavigationPage)?.RootPage; Assert.IsNotNull(navPage); Assert.AreEqual(expected, navPage.GetType()); }
public void BeforeTests() { testsPage = new TestsPage(driver); driver.Url = "https://demo-igno.herokuapp.com/"; driver.Manage().Window.Maximize(); //driver.FindElement(By.CssSelector(".close-dialog > .mat-button-wrapper > span")).Click(); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5000); }
public MainWindow() { InitializeComponent(); _12BitLFSR = new _12bitLFSR(this); DecryptorPage = new DecryptorPage(this); EncryptorPage = new EncryptorPage(this); OptionsPage = new OptionsPage(this); TestsPage = new TestsPage(this); UserDefinedLFSR = new UserDefinedLFSR(this); }
public void BeforeTests() { testsPage = new TestsPage(driver); testsPage .AccountButton() .AccountLoginButton() .EmailField("*****@*****.**") .PasswordField("admin123") .AccountLogInINButton(); }
public void TestOnItemSelectedWithSelectedItemTestWithChildTestsPushesTestsPageToStackAndCaches() { NUnitRunner runner = new NUnitRunner("runner-name"); runner.AddTestAssembly(typeof(TestFixtureStubOne).Assembly); ITest firstTestInstance = runner.ExploreTests(); ITest secondTestInstance = runner.ExploreTests(); TestsViewModel firstTest = new TestsViewModel(runner, firstTestInstance); TestsViewModel secondTest = new TestsViewModel(runner, secondTestInstance); Assert.IsTrue(firstTest.Test.IsSuite); Assert.IsTrue(firstTest.Test.HasChildren); Assert.IsTrue(secondTest.Test.IsSuite); Assert.IsTrue(secondTest.Test.HasChildren); SelectedItemChangedEventArgs firstArgs = new SelectedItemChangedEventArgs(firstTest, 0); SelectedItemChangedEventArgs secondArgs = new SelectedItemChangedEventArgs(secondTest, 0); TestsPageForTest page = new TestsPageForTest(runner); // Load first page page.InvokeOnItemSelected(null, firstArgs); Assert.AreEqual(1, page.NavigationStack.Count); TestsPage firstTestsPage = page.NavigationStack.First() as TestsPage; Assert.IsNotNull(firstTestsPage); Assert.AreEqual(firstTest, firstTestsPage.ViewModel); Assert.AreEqual(runner, firstTestsPage.ViewModel.TestRunner); Assert.AreEqual(firstTestInstance, firstTestsPage.ViewModel.Test); // Load second page page.InvokeOnItemSelected(null, secondArgs); Assert.AreEqual(2, page.NavigationStack.Count); TestsPage secondTestsPage = page.NavigationStack[1] as TestsPage; Assert.IsNotNull(secondTestsPage); Assert.AreEqual(secondTest, secondTestsPage.ViewModel); Assert.AreEqual(runner, secondTestsPage.ViewModel.TestRunner); Assert.AreEqual(secondTestInstance, secondTestsPage.ViewModel.Test); // Load first page again IList <Page> expectedStack = new List <Page>(page.NavigationStack); expectedStack.Add(firstTestsPage); page.InvokeOnItemSelected(null, firstArgs); Assert.AreEqual(3, page.NavigationStack.Count); Assert.AreSame(firstTestsPage, page.NavigationStack[2]); CollectionAssert.AreEqual(expectedStack, page.NavigationStack); }
public void TestConstructorWithNUnitRunner([Values] bool isRunnerNull, [Values] bool isTestNull) { NUnitRunner runner = isRunnerNull ? null : new NUnitRunner("runner-name"); TestsViewModel test = isTestNull ? null : new TestsViewModel(runner, new NUnitSuite("suite-name")); TestsPage page = new TestsPage(runner, test, false); Assert.IsNotNull(page.ViewModel); if (!isTestNull) { Assert.AreSame(test, page.ViewModel); } Assert.AreSame(runner, page.ViewModel.TestRunner); Assert.AreSame(test?.Test, page.ViewModel.Test); }
public void TestConstructorWithNUnitRunner([Values] bool isRunnerNull) { NUnitRunner runner = isRunnerNull ? null : new NUnitRunner("runner-name"); MainPage page = new MainPage(runner, false); Assert.IsNotNull(page.Detail); Page detailPage = (page.Detail as NavigationPage)?.RootPage; Assert.IsNotNull(detailPage); TestsPage testsPage = detailPage as TestsPage; Assert.IsNotNull(testsPage); Assert.IsNotNull(page.Master); Assert.IsTrue(page.Master is MenuPage); }
public void P20_1_tc_27131_View_RT_Assignments_for_Test() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC27131"); _test.Log(Status.Info, "A New test created"); TestwizardPage.checkin(); #region cretate TA CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage >> Training Page"); TrainingPage.TrainingAssignments.Click_CreateTrainingAssignment(); _test.Log(Status.Info, "Click Create Training Assignment link from training assignment portlet"); CreateTrainingAssignmentPage.Create(TATitle + "TC27131"); _test.Log(Status.Info, "A new training assignement created as draft"); CreateTrainingAssignmentPage.ContentTab.ClickAddContent(); _test.Log(Status.Info, "Click Add Content"); CreateTrainingAssignmentPage.ContentTab.AddContentModal.AddContent(TestTitle + "_TC27131"); _test.Log(Status.Info, "Content added to training assignment"); CreateTrainingAssignmentPage.AssignessTab.ClickAddAssignees(); _test.Log(Status.Info, "Click Add Assignees button in Assignees tab"); CreateTrainingAssignmentPage.AssignessTab.AddAssignessModal.AddAssigne("learner 101"); _test.Log(Status.Info, "A user added to training assignment"); CreateTrainingAssignmentPage.DueDateTab.ClickChage(); _test.Log(Status.Info, "Click Chage button in Due Date tab"); string previousCompletions = CreateTrainingAssignmentPage.DueDateTab.AssignmentDueDateModal.SetPreviousCompletionsYesandRecurringNo("days"); _test.Log(Status.Info, "Set Previous Completions count and save for Non recurring assignement"); CreateTrainingAssignmentPage.ClickDueDateTab(); _test.Log(Status.Info, "Click Chage button in Due Date tab"); Assert.IsTrue(CreateTrainingAssignmentPage.DueDateTab.VerifyPreviousComplistion(previousCompletions)); _test.Log(Status.Pass, "Verify Copletion count saved properly"); CreateTrainingAssignmentPage.clickAssignButton(); #endregion CommonSection.Logout(); LoginPage.LoginAs("srlearner101").WithPassword("").Login(); CommonSection.SearchCatalog(TestTitle + "_TC27131"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC27131"); ContentDetailsPage.Click_OverviewTab(); Assert.IsTrue(ContentDetailsPage.OverviewTab.isTrainingAssignmentportletDisplay()); Assert.IsTrue(ContentDetailsPage.OverviewTab.TrainingAssignment.isDuedatedisplay()); TC25153 = true; }
public void tc_60082_Test_Overview_Tab_What_is_the_content_about() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC60082"); _test.Log(Status.Info, "A New test created"); TestwizardPage.addCosttoTest("5"); TestwizardPage.checkin(); CommonSection.SearchCatalog(TestTitle + "_TC60082"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC60082"); Assert.IsTrue(ContentDetailsPage.OverviewTab.DescriptionPortletTitle("Description")); Assert.IsTrue(ContentDetailsPage.OverviewTab.isMasteryScoredisplay()); Assert.IsTrue(ContentDetailsPage.OverviewTab.isMaxAttempsdisplay()); Assert.IsTrue(ContentDetailsPage.OverviewTab.isNumberidQuestiondisplay()); _test.Log(Status.Pass, "Verify of Attempts, Mastery Score, Maximum time Allowed options are display"); }
public void tc_60285_Test_Banner_Actions_Course_Info_and_Navigation() { CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC60285"); _test.Log(Status.Info, "A New test created"); TestwizardPage.UploadImagetoTest(); _test.Log(Status.Info, "Upload any Image file to content"); TestwizardPage.checkin(); CommonSection.SearchCatalog(TestTitle + "_TC60285"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC60285"); Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay()); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(TestTitle + "_TC60285")); _test.Log(Status.Pass, "Verify Content title is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay()); _test.Log(Status.Pass, "Verify Content type is display on Banner"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay()); _test.Log(Status.Pass, "Verify Image is display on Banner"); }
public void P20_1_tc_26864_Rate_Test_Transcript() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC26864"); _test.Log(Status.Info, "A New test created"); TestwizardPage.checkin(); CommonSection.Logout(); Driver.CreateNewAccount(); _test.Log(Status.Info, "Create new user account"); LoginPage.LoginAs(Meridian_Common.NewUserId).WithPassword("").Login(); _test.Log(Status.Info, "Login as Learner"); CommonSection.SearchCatalog(TestTitle + "_TC26864"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC26864"); ContentDetailsPage.Click_ReviewTab_GeneralCourse(); Assert.IsFalse(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); ContentDetailsPage.ContentBanner.ClickTakeTest(); ContentDetailsPage.CompleteTest(TestTitle + "_TC26864"); Assert.True(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay()); _test.Log(Status.Pass, "Verify View Certificate Button is displayed"); ContentDetailsPage.Click_ReviewTab_GeneralCourse(); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); _test.Log(Status.Pass, "Verify Write a Review Button is display"); CommonSection.Learn.Transcript(); TranscriptPage.AllTrainingTab.FilterandClickTesttitle(TestTitle + "_TC26864"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(TestTitle + "_TC26864")); ContentDetailsPage.Click_ReviewTab_GeneralCourse(); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isWriteaReviewButtondisplay()); ContentDetailsPage.GeneralCourse_ReviewsTab.WriteaReview("Title", "For Testing"); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isReviewlistUpdated("Title")); _test.Log(Status.Pass, "User submited review"); Assert.IsTrue(ContentDetailsPage.GeneralCourse_ReviewsTab.isEditReviewlinkdisplay()); _test.Log(Status.Pass, "Verify user can edit his own review in content edit mode"); }
public void P20_1_tc_26973_View_Prerequisities_to_Test() { CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC26973"); DocumentPage.ClickButton_CheckIn(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_tc26973"); _test.Log(Status.Info, "A New test created"); TestwizardPage.addPrerequisitetotest(GeneralCourseTitle + "TC26973"); TestwizardPage.checkin(); CommonSection.Logout(); LoginPage.LoginAs("srlearner105").WithPassword("").Login(); CommonSection.SearchCatalog(TestTitle + "_tc26973"); SearchResultsPage.ClickCourseTitle(TestTitle + "_tc26973"); Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay()); _test.Log(Status.Pass, "Verify prerequisite Accordian is Displayed"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue")); _test.Log(Status.Pass, "Verify information"); tc25132 = true; }
public void P20_1_tc_60090_Take_Tests_Related_Surveys() { CommonSection.Logout(); LoginPage.LoginAs("").WithPassword("").Login(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.ClickCreateNew(); TestwizardPage.CreateNewTest(TestTitle + "_TC60090"); _test.Log(Status.Info, "A New test created"); TestwizardPage.checkin(); CommonSection.Administer.ContentManagement.Tests(); TestsPage.searchtest(TestTitle + "_TC60090"); TestsPage.clickOnTestTitle(TestTitle + "_TC60090"); TestwizardPage.AddSurvettoTest("Before Course Start", TestTitle + "_TC60090"); CommonSection.SearchCatalog(TestTitle + "_TC60090"); SearchResultsPage.ClickCourseTitle(TestTitle + "_TC60090"); Assert.IsTrue(ContentDetailsPage.ContentBanner.isTakeTestButtonDisplay()); Assert.IsTrue(ContentDetailsPage.OverviewTab.issurveyPortletisDisplay()); ContentDetailsPage.ContentBanner.ClickTakeTest(); ContentDetailsPage.CompleteTest(TestTitle + "_TC60090"); Assert.IsTrue(ContentDetailsPage.ContentBanner.RequiredSurveymessage("Complete 1 survey(s) to receive your certificate.")); Assert.IsTrue(ContentDetailsPage.ContentBanner.isTakeSurveyButtonDisplay()); ContentDetailsPage.ContentBanner.Click_TakeSurveybutton(); ContentDetailsPage.SurveyPortlet.CompleteSurvey("Before Course Start"); //_test.Log(Status.Info, "Complete Survey"); _test.Log(Status.Info, "Complete Survey"); Assert.True(ContentDetailsPage.ContentBanner.isViewCertificationButtonDisplay()); _test.Log(Status.Pass, "Verify View Certificate Button is displayed"); TC25152 = true; ContentDetailsPage.ContentBanner.clickViewCertificateButton(); Assert.IsTrue(ContentDetailsPage.isCertificateDisplayed()); _test.Log(Status.Pass, "Verify certificate Page is displayed"); Driver.focusParentWindow(); TC26291 = true; }
public void TestNavigateFromMenuNavigatesToNewPage([Values] MenuItemType start, [Values] MenuItemType end, [Values] bool isAndroid) { MainPageForTest page = new MainPageForTest(null); if (isAndroid) { page.DevicePlatform = "Android"; } Page startPage = null; Type expected = null; switch (start) { case MenuItemType.Tests: startPage = new TestsPage(null, null, false); expected = typeof(TestsPage); break; case MenuItemType.About: startPage = new AboutPage(false); expected = typeof(AboutPage); break; default: Assert.Fail($" MenuItemType {start} is not supported by this test."); break; } switch (end) { case MenuItemType.Tests: expected = typeof(TestsPage); break; case MenuItemType.About: expected = typeof(AboutPage); break; default: Assert.Fail($" MenuItemType {end} is not supported by this test."); break; } page.Detail = new NavigationPage(startPage); Task task = page.NavigateFromMenu(end); Assert.IsNotNull(task); task.Wait(); Page currentPage = page.Detail; Page navPage = (page.Detail as NavigationPage)?.RootPage; Assert.IsNotNull(navPage); Assert.AreEqual(expected, navPage.GetType()); task = page.NavigateFromMenu(end); Assert.IsNotNull(task); task.Wait(); navPage = (page.Detail as NavigationPage)?.RootPage; Assert.IsNotNull(navPage); Assert.AreEqual(expected, navPage.GetType()); Assert.AreSame(currentPage, page.Detail); }