Example #1
0
    def test_29(self):
        """http://litmus.pculture.org/show_test.cgi?id=29 add site from miro site.

        1. Open Awesome website
        2. click one-click subscribe link for revver
        3. Verify site added
        4. Cleanup
        """       
        reg = mirolib.AppRegions()

        
        site_url = "http://pculture.org/feeds_test/subscription-test-guide.html"
        site = "Awesome"
        site2 = "Revver"
        mirolib.add_source_from_tab(self,reg,site_url)
        mirolib.click_last_source(self,reg)
        reg.t.find("Subscribe")
        reg.t.click("Subscribe")
        time.sleep(4)
        p = mirolib.get_sources_region(reg)
	if p.exists("http://rev",3) or \
           p.exists("revver",3):
            print "revver site added"
        else:
            self.fail("revver site not added to sidebar")                        
        mirolib.delete_site(self,reg,site)
        mirolib.delete_site(self,reg,"revver")
Example #2
0
    def test_321(self):
        """http://litmus.pculture.org/show_test.cgi?id=321 delete slow to load site.

        1. Add slow feed as a source
        2. delete it before is loads
        """
        site_url = "http://pculture.org/feeds_test/slowsite.php"
        site = "pculture"
        alt_site = "Miro Guide"
        
        setAutoWaitTimeout(60)                
        reg = mirolib.AppRegions()

        mirolib.add_source_from_tab(self,reg,site_url)
        mirolib.click_last_source(self,reg)
        type(Key.DELETE)
        type(Key.ENTER)
        mirolib.handle_crash_dialog(self,db=False,test=False)
Example #3
0
    def test_194(self):
        """http://litmus.pculture.org/show_test.cgi?id=194 site with non-utf-8 chars.

        1. Add http://diziizle.net/
        2. Verify added
        3. Restart and verify still there
        4. Cleanup
        """
        
        site_url = "http://diziizle.net/"
        site = "diziizle"
        setAutoWaitTimeout(60)                
        reg = mirolib.AppRegions()
        mirolib.add_source_from_tab(self,reg,site_url)
        mirolib.click_last_source(self,reg)
        reg.m.find(testvars.dizizle_logo)
        mirolib.quit_miro(self,reg)
        mirolib.restart_miro()
        mirolib.click_last_source(self,reg)
        self.assertTrue(reg.m.exists(testvars.dizizle_logo))    
        mirolib.delete_site(self,reg,site)