-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates of namespaces and composer.json #8
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
BehatQAToolsExtension | ||
===================== | ||
BehatExtension | ||
============== |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "qa-tools/behat-extension-example", | ||
"license": "BSD-3-Clause", | ||
"require": { | ||
"php": ">=5.3.1", | ||
"qa-tools/qa-tools": "~1.0@dev", | ||
"qa-tools/behat-extension": "~1.0@dev", | ||
"mindplay/annotations": "~1.2@dev", | ||
"behat/mink": "~1.5@dev", | ||
"behat/mink-selenium2-driver": "~1.1@dev" | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Look on whole I recommend putting as close to reality versions here as possible:
|
||
"repositories": [ | ||
{ | ||
"type": "vcs", | ||
"url": "https://github.com/qa-tools/behat-extension" | ||
} | ||
], | ||
"autoload-dev": { | ||
"psr-0": { | ||
"pages": "" | ||
} | ||
}, | ||
"config": { | ||
"bin-dir": "bin/" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* @copyright Michael Geppert <[email protected]> | ||
*/ | ||
|
||
namespace QATools\behat\pages; | ||
namespace pages; | ||
|
||
|
||
use QATools\QATools\HtmlElements\TypifiedPage; | ||
|
@@ -17,7 +17,7 @@ | |
/** | ||
* Class TestPage | ||
* | ||
* @page-url('http://test.qa-tools.io/tests/aik099/QATools/HtmlElementsLive/Element/') | ||
* @page-url('/example/fixtures/') | ||
*/ | ||
class TestPage extends TypifiedPage | ||
{ | ||
|
@@ -26,7 +26,7 @@ class TestPage extends TypifiedPage | |
* Input elements. | ||
* | ||
* @var WebElement | ||
* @find-by('css' => '[name*=test]') | ||
* @find-by('css' => 'input[name*=test]') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thats an CSS attribute selector, it just says that the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. |
||
*/ | ||
protected $inputs; | ||
|
||
|
@@ -38,10 +38,11 @@ class TestPage extends TypifiedPage | |
public function enter() | ||
{ | ||
$this->inputs->click(); | ||
} | ||
|
||
foreach ( $this->inputs as $input ) { | ||
$input->click(); | ||
} | ||
public function waitFor($timeout, $callback) | ||
{ | ||
return ; | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact this is better, since we're testing same website that is accessed via MinkExtension, but have 2 different
base_url
settings which in fact can point to same direction.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one isn't done. If you have any objects, then feel free to express them.