Skip to content

Commit

Permalink
MDL-79062 behat: Add number type when guessing field type
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 2, 2023
1 parent ad4736b commit 4b30206
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/behat/behat_field_manager.php
Expand Up @@ -159,13 +159,12 @@ public static function guess_field_type(NodeElement $fieldnode, Session $session
case 'password':
case 'email':
case 'file':
case 'number':
return 'text';
case 'checkbox':
return 'checkbox';
break;
case 'radio':
return 'radio';
break;
default:
// Here we return false because all text-based
// fields should be included in the first switch case.
Expand Down

0 comments on commit 4b30206

Please sign in to comment.