// Check modification of a news.
$this->clickAndWait("link=News");
- $this->click("//a[contains(@href, '" . ROOT . "/news/admin/?group_id=6')]");
+ $this->click("//a[contains(@href, '" . ROOT . "/news/admin/?group_id=7')]");
$this->waitForPageToLoad("30000");
$this->clickAndWait("link=Second news");
$this->type("details", "This is another text (corrected)");
$this->clickAndWait("link=Test3");
$this->assertTextPresent("Special ' chars \"");
$this->clickAndWait("link=News");
- $this->click("//a[contains(@href, '". ROOT . "/news/admin/?group_id=6')]");
+ $this->click("//a[contains(@href, '". ROOT . "/news/admin/?group_id=7')]");
$this->waitForPageToLoad("30000");
$this->clickAndWait("link=Test3");
- $this->click("document.forms[2].status[1]");
+ $this->click("//form[@id='newsadminform']//input[@name='status' and @value=4]");
$this->clickAndWait("submit");
}