Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
added drag'n'drop tests
Browse files Browse the repository at this point in the history
  • Loading branch information
everzet committed Jul 17, 2011
1 parent b838d58 commit 396e39e
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 2 deletions.
11 changes: 11 additions & 0 deletions tests/Behat/Mink/Driver/JavascriptDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,15 @@ public function testVisibility()
$this->assertFalse($invisible->isVisible());
$this->assertTrue($clicker->isVisible());
}

public function testDragDrop()
{
static::$session->visit(static::$host . '/js_test.php');

$draggable = static::$session->getPage()->find('css', '#draggable');
$droppable = static::$session->getPage()->find('css', '#droppable');

$draggable->dragTo($droppable);
$this->assertEquals('Dropped!', $droppable->find('css', 'p')->getText());
}
}
Loading

0 comments on commit 396e39e

Please sign in to comment.