Skip to content

Commit

Permalink
Fix xpath for 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Apr 23, 2024
1 parent 3ff078d commit 238103c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/FunctionalJavascript/IntegerWeightTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ public function testIntegerWeightSelector() {
$this->assertSession()->pageTextNotContains('You have unsaved changes.');

// Drag and drop 'Item 1' over 'Item 2'.
$dragged = $this->xpath("//tr[@class='draggable'][1]//a[@class='tabledrag-handle']")[0];
$target = $this->xpath("//tr[@class='draggable'][2]//a[@class='tabledrag-handle']")[0];
$dragged = $this->xpath("//tr[contains(@class, 'draggable')][1]//a[contains(@class, 'tabledrag-handle')]")[0];
$target = $this->xpath("//tr[contains(@class, 'draggable')][2]//a[contains(@class, 'tabledrag-handle')]")[0];
$dragged->dragTo($target);

// Pause for javascript to do it's thing.
Expand Down

0 comments on commit 238103c

Please sign in to comment.