def test_199(self): """http://litmus.pculture.org/show_test.cgi?id=199 reorder folders in sidebar Litmus Test Title:: 199 - reorder folders in the sidebar Description: 1. Import OPML file of some feeds and folders 2. drag feeds to the folder 3. verify feeds in folder 4. Cleanup """ setAutoWaitTimeout(testvars.timeout) #set the search regions mirolib.quit_miro(self) config.set_def_db_and_prefs() mirolib.restart_miro(confirm=False) time.sleep(10) reg = mirolib.AppRegions() opml_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","folder-test.opml") #1. Add the feeds mirolib.import_opml(self,reg,opml_path) p = mirolib.get_podcasts_region(reg) x = p.find("GEEKY") y = p.find("Featured") dragDrop(x,y) time.sleep(2) p.click("Featured") ror = Region(p.getLastMatch().above(250)) if not ror.exists("Make"): self.fail("GEEKY folder not moved above 'Featured' podcast") #Cleanup - select all the podcasts and delete mirolib.delete_all_podcasts(self,reg)
def test_999reset(self): """fake test to reset db and preferences. """ mirolib.quit_miro(self) config.set_def_db_and_prefs() mirolib.restart_miro(confirm=False) time.sleep(10)
def test_197(self): """http://litmus.pculture.org/show_test.cgi?id=197 drag feeds to a folder Litmus Test Title:: 197 - drag feeds to a folder Description: 1. Import OPML file of some feeds and folders 2. drag feeds to the folder 3. verify feeds in folder 4. Cleanup """ setAutoWaitTimeout(testvars.timeout) #set the search regions mirolib.quit_miro(self) config.set_def_db_and_prefs() mirolib.restart_miro(confirm=False) time.sleep(10) reg = mirolib.AppRegions() opml_path = os.path.join(os.getenv("PCF_TEST_HOME"),"Miro","TestData","folder-test2.opml") folder = "Best Feeds" feedlist = ["Vimeo", "BirchboxTV"] #1. Add the feeds mirolib.import_opml(self,reg,opml_path) p = mirolib.get_podcasts_region(reg) for feed in feedlist: x = p.find(feed) y = p.find(folder) dragDrop(x,y) time.sleep(2) feed_match = mirolib.click_podcast(self,reg,folder) rightClick(Location(feed_match)) if exists("Update",2): click(getLastMatch()) for feed in feedlist: mirolib.tab_search(self,reg,title=feed,confirm_present=True) #cleanup mirolib.delete_all_podcasts(self,reg)