mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
API Update deprecations
This commit is contained in:
parent
6a0185d477
commit
5c6b9756fb
@ -2,6 +2,7 @@
|
||||
|
||||
namespace SilverStripe\BehatExtension\Context;
|
||||
|
||||
use SilverStripe\Dev\Deprecation;
|
||||
use Exception;
|
||||
use InvalidArgumentException;
|
||||
use Behat\Behat\Context\Context;
|
||||
@ -624,10 +625,11 @@ JS;
|
||||
* @param string $path
|
||||
* @return Call\Given
|
||||
*
|
||||
* @deprecated 4.5..5.0 Use iAttachTheFileToTheField() instead
|
||||
* @deprecated 4.5.0 Use iAttachTheFileToTheField() instead
|
||||
*/
|
||||
public function iAttachTheFileTo($field, $path)
|
||||
{
|
||||
Deprecation::notice('4.5.0', 'Use iAttachTheFileToTheField() instead');
|
||||
// Remove wrapped button styling to make input field accessible to Selenium
|
||||
$js = <<<JS
|
||||
let input = jQuery('[name="$field"]');
|
||||
|
Loading…
Reference in New Issue
Block a user