Merge pull request #3691 from NoelDeMartin/MOBILE-4270

MOBILE-4270: Fix Behat tests
main
Dani Palou 2023-05-25 09:59:24 +02:00 committed by GitHub
commit eef7606783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export class AddonModForumPushClickHandlerService implements CorePushNotificatio
return CoreUtils.isTrueOrOne(notification.notif)
&& notification.moodlecomponent == 'mod_forum'
&& notification.name == 'posts'
&& !!(notification.contexturl || notification.customdata?.postid);
&& !!(notification.contexturl || notification.customdata?.discussionid);
}
/**

View File

@ -2,6 +2,8 @@
Feature: Test signup in app
I need basic signup functionality to work
# These scenarios are duplicated from main because the error message about
# non alpha-numeric characters has changed.
Background:
Given the following config values are set as admin:
| registerauth | email |
@ -27,7 +29,7 @@ Feature: Test signup in app
| Email address | u1@u1.com |
| Email (again) | u1@u1.com |
| First name | User |
| Surname | Test |
| Last name | Test |
| City/town | Barcelona |
| Country | Spain |
And I press "Create my new account" in the app