Steps definitions related with admin presets.
Author: | Sylvain Revenu | Pimenko |
Copyright: | 2021 Pimenko <support@pimenko.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 130 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files lib/behat/behat_base.php lib/behat/behat_field_manager.php |
behat_admin_presets:: (2 methods):
following_in_the_should_download_between_and_bytes()
download_file_from_link_within_node()
Class: behat_admin_presets - X-Ref
Steps definitions related with admin presets.following_in_the_should_download_between_and_bytes(string $link, string $selectortype,string $nodeelement, string $nodeselectortype, int $minexpectedsize, int $maxexpectedsize) X-Ref |
Downloads the file from a specific link on the page and checks the size is in a given range. Only works if the link has an href attribute. Javascript downloads are not supported. Currently, the href must be an absolute URL. The range includes the endpoints. That is, a 10 byte file in considered to be between "5" and "10" bytes, and between "10" and "20" bytes. param: string $link the text of the link. param: string $selectortype The type of what we look for param: string $nodeelement Element we look in param: string $nodeselectortype The type of selector where we look in param: int $minexpectedsize the minimum expected file size in bytes. param: int $maxexpectedsize the maximum expected file size in bytes. return: void |
download_file_from_link_within_node(string $selectortype, string $link,string $nodeselectortype, string $nodeelement) X-Ref |
No description |