Skip to content

Commit

Permalink
Stabilize selenium test
Browse files Browse the repository at this point in the history
  • Loading branch information
MantasVaitkunas committed Jul 21, 2016
1 parent e2e45ae commit e42d155
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Acceptance/Admin/CreatingItemsAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,8 @@ public function testCreateProductMedia()
$this->type("mediaDesc", "media file [EN]_šÄßüл");
$this->type("mediaUrl", "https://www.youtube.com/watch?v=iQ69Hv8WP_g");
$this->clickAndWait("save");
// Needed because of sorting. It adds 2 records at the same time and it's hard to compare in which place is first record.
sleep(1);
$this->assertEquals("media file [EN]_šÄßüл", $this->getValue("//fieldset[@title='Media URLs']/table/tbody/tr[1]/td[3]/input"));
$this->selectAndWait("test_editlanguage", "label=Deutsch");
$this->assertEquals("", $this->getValue("//fieldset[@title='Media URLs']/table/tbody/tr[1]/td[3]/input"));
Expand Down

0 comments on commit e42d155

Please sign in to comment.