Ejemplo n.º 1
0
        public void launchUnitWorkflow()
        {
            testPOMLogIn();
            MapPageLeo mapPageLeo = new MapPageLeo(driver);

            MenuTabsPage menuTabsPage = mapPageLeo.openMenu();

            Assert.IsTrue(menuTabsPage.IsDisplayed);
            LaunchUnitWorkflowPage  launchUnitWorkflowPage  = menuTabsPage.openLaunchUnitWorkflowPage();
            UnitWorkflowDetailsPage unitWorkflowDetailsPage = launchUnitWorkflowPage.ClickOnLaunchButtonOfSelectedUnitWorkflow();

            unitWorkflowDetailsPage.EnterNameOfUnitWorkflow();
            unitWorkflowDetailsPage.SelectPropertiesAndDate();
            SelectUnitPage selectUnitPage = unitWorkflowDetailsPage.ClickLaunchButton();

            selectUnitPage.FilterUnits();
            UnitWorkflowTasksPage unitWorkflowTasksPage = selectUnitPage.SelectUnitsandClickLaunch();

            Assert.IsTrue(unitWorkflowTasksPage.IsDisplayed);
            UnitFilterPage unitFilterPage = unitWorkflowTasksPage.ClickOnFilterBy();

            Assert.IsTrue(unitFilterPage.IsDisplayed);
            unitFilterPage.EnterUnitNumberAndBuildingAndPressFilterButton();
            Assert.IsTrue(unitWorkflowTasksPage.IsDisplayed);
            Assert.IsTrue(unitWorkflowTasksPage.FilterDisplayCorectResults);
        }
Ejemplo n.º 2
0
        public void setOfflinePropertiesAndSave()
        {
            testPOMLogIn();
            MapPageLeo mapPageLeo = new MapPageLeo(driver);

            MenuTabsPage menuTabsPage = mapPageLeo.openMenu();

            Assert.IsTrue(menuTabsPage.IsDisplayed);
            SetOfflineProperiesPage setOfflineProperiesPage = menuTabsPage.openSetOfflinePropertiesPage();

            setOfflineProperiesPage.ClickAcceptConnectionWaringButtonIfPresent();
            setOfflineProperiesPage.SelectPropertiesToBeSyncked();
            setOfflineProperiesPage.ClickSaveButton();
            Assert.IsTrue(mapPageLeo.isDisplayedAfterSynckingProperiesFromOfflinePage);
        }
Ejemplo n.º 3
0
        public void skipDFandCompleteTask()
        {
            testPOMLogIn();
            MapPageLeo mapPageLeo = new MapPageLeo(driver);

            MenuTabsPage menuTabsPage = mapPageLeo.openMenu();

            Assert.IsTrue(menuTabsPage.IsDisplayed);
            PropertyTasksPage propertyTasksPage = menuTabsPage.openTasksPage();

            Assert.IsTrue(propertyTasksPage.IsDisplayed);

            DynamicFormPage dynamicFormPage = propertyTasksPage.tapOnDFiconOnTask();

            dynamicFormPage.tapOnSkipButtonAndCompleteTask();
            Assert.IsTrue(dynamicFormPage.taskIsCompleted);
        }