diff --git a/README.md b/README.md index 1db16b8..c62223d 100644 --- a/README.md +++ b/README.md @@ -544,9 +544,7 @@ It's based on the `vendor/bin/behat -di @cms` output. Then /^the "(?P(?:[^"]|\\")*)" checkbox should not be checked$/ - Checks, that checkbox with specified in|name|label|value is unchecked. - Given /^(?:|I )attach the file "(?P[^"]*)" to "(?P(?:[^"]|\\")*)" with HTML5$/ - - When /^I fill in the "(?P([^"]*))" HTML field with "(?P([^"]*))"$/ + When /^I fill in the "(?P([^"]*))" HTML field with "(?P([^"]*))"$/ When /^I fill in "(?P([^"]*))" for the "(?P([^"]*))" HTML field$/ @@ -604,8 +602,6 @@ It's based on the `vendor/bin/behat -di @cms` output. Then /^I should see the CMS$/ - Then /^I should see a "([^"]*)" notice$/ - Then /^I should see a "([^"]*)" message$/ Given /^I should see a "([^"]*)" button in CMS Content Toolbar$/ diff --git a/src/Context/BasicContext.php b/src/Context/BasicContext.php index 49335a8..1ca9843 100644 --- a/src/Context/BasicContext.php +++ b/src/Context/BasicContext.php @@ -2,7 +2,6 @@ namespace SilverStripe\BehatExtension\Context; -use SilverStripe\Dev\Deprecation; use Exception; use InvalidArgumentException; use Behat\Behat\Context\Context; @@ -619,31 +618,6 @@ JS; return $driver->getWebDriver(); } - /** - * @Given /^(?:|I )attach the file "(?P[^"]*)" to "(?P(?:[^"]|\\")*)" with HTML5$/ - * @param string $field - * @param string $path - * @return Call\Given - * - * @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 = <<getSession()->executeScript($js); - $this->getSession()->wait(1000); - - return $this->getMainContext()->attachFileToField($field, $path); - } - /** * Select an individual input from within a group, matched by the top-most label. *