Exemple #1
0
        virtual public void BeforeEachTest()
        {
            app = AppInitializer.StartApp(platform);
            app.Screenshot("App Initialized");

            ItemsPage   = new ItemsPage(app, platform);
            NewItemPage = new NewItemPage(app, platform);
        }
        public void AddNewItem()
        {
            //Arrange
            const string itemName        = "Item Name";
            const string itemDescription = "Item Description";

            //Act
            ItemsPage.TapAddToolbarButton();
            NewItemPage.EnterItemName(itemName);
            NewItemPage.EnterItemDescription(itemDescription);
            NewItemPage.TapSaveToolbarButton();

            //Assert
            Assert.IsTrue(ItemsPage.IsPageVisible);
            Assert.IsTrue(app.Query(itemName).Length > 0);
        }