@@ -889,9 +889,10 @@ Then(/^the checkbox "([^"]*)?" is not checked$/, function (checkbox) {
889889 * Wait a specific number of seconds.
890890 * Example: When I wait 1 second
891891 * Example: When I wait 5 seconds
892+ * Example: When I wait 3s
892893 *
893894 */
894- When ( / ^ ( I | w e ) * w a i t ( \d * ) s e c o n d ( s ) * $ / , function ( pronoundCase , number , withS ) {
895+ When ( / ^ ( I | w e ) * w a i t ( \d * ) ( s e c o n d ) * ( s ) * $ / , function ( pronoundCase , number , withWord , withS ) {
895896 var waitTime = number * 1000 ;
896897 return browser . pause ( waitTime ) ;
897898} ) ;
@@ -901,7 +902,7 @@ When(/^(I|we)* wait (\d*) second(s)*$/, function (pronoundCase, number, withS) {
901902 * Example: When I wait max of 6 seconds
902903 *
903904 */
904- When ( / ^ ( I | w e ) * w a i t m a x o f ( \d * ) s e c o n d ( s ) * $ / , function ( pronoundCase , number , withS ) {
905+ When ( / ^ ( I | w e ) * w a i t m a x o f ( \d * ) ( s e c o n d ) * ( s ) * $ / , function ( pronoundCase , number , withWord , withS ) {
905906 var waitTime = number * 1000 ;
906907 return browser . waitForElementPresent ( 'body' , waitTime ) ;
907908} ) ;
@@ -912,7 +913,7 @@ When(/^(I|we)* wait max of (\d*) second(s)*$/, function (pronoundCase, number, w
912913 * Example: When I wait 5 minutes
913914 *
914915 */
915- When ( / ^ ( I | w e ) * w a i t ( \d * ) m i n u t e ( s ) * $ / , function ( pronoundCase , number , withS ) {
916+ When ( / ^ ( I | w e ) * w a i t ( \d * ) ( m i n u t e ) * ( m ) * $ / , function ( pronoundCase , number , withWord , withM ) {
916917 var waitTime = number * 1000 * 60 ;
917918 return browser . pause ( waitTime ) ;
918919} ) ;
@@ -922,7 +923,7 @@ When(/^(I|we)* wait (\d*) minute(s)*$/, function (pronoundCase, number, withS) {
922923 * Example: When I wait max of 6 minutes
923924 *
924925 */
925- When ( / ^ ( I | w e ) * w a i t m a x o f ( \d * ) m i n u t e ( s ) * $ / , function ( pronoundCase , number , withS ) {
926+ When ( / ^ ( I | w e ) * w a i t m a x o f ( \d * ) ( m i n u t e ) * ( m ) * $ / , function ( pronoundCase , number , withWord , withM ) {
926927 var waitTime = number * 1000 * 60 ;
927928 return browser . waitForElementPresent ( 'body' , waitTime ) ;
928929} ) ;
0 commit comments