nextcloud/apps
Daniel Calviño Sánchez 24abfd8869 Wait for the promise to be fulfilled before running the next test
In Jasmine 2.5 the "it" function takes an optional parameter that should
be called when the async work is completed (returning a promise was
introduced in Jasmine 2.7, so it is not supported yet in the tests). If
the parameter is not declared then the next test is executed without
waiting for the asynchronous work in the previous one to finish, which
could cause that asynchronous work to finish while a different test is
being run.

Note that if that happens the test could still work as expected if it
relied only in local variables. However, in the case of the successful
revert tests, the stubs being checked are not the ones created when that
test was initialized, but the ones created when the next test, the
failed revert test, was initialized and the previous variables were
replaced (although the model itself calls the proper stubs, as they are
set through parameters in function calls).

Besides all that, the checks in the failed revert test were never
executed due to a different problem which will be fixed in the next
commit.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-10-25 12:25:41 +02:00
..
accessibility Merge pull request #11533 from nextcloud/accessibility-cache-fixes 2018-10-24 15:04:29 +02:00
admin_audit Use numeric placeholders if there are multiple, so that RTL languages can operate better 2018-10-09 14:32:14 +02:00
cloud_federation_api Update version requirements and versions of shipped apps 2018-09-05 14:27:06 +02:00
comments [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
dav [tx-robot] updated from transifex 2018-10-25 00:13:01 +00:00
encryption skip already encrypted files on encrypt all command 2018-10-24 16:53:39 +02:00
federatedfilesharing [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
federation Add missing variable declarations 2018-10-19 20:17:55 +02:00
files Merge pull request #11573 from nextcloud/gridview-table 2018-10-24 15:31:23 +02:00
files_external Merge pull request #11573 from nextcloud/gridview-table 2018-10-24 15:31:23 +02:00
files_sharing Merge pull request #11573 from nextcloud/gridview-table 2018-10-24 15:31:23 +02:00
files_trashbin Merge pull request #11573 from nextcloud/gridview-table 2018-10-24 15:31:23 +02:00
files_versions Wait for the promise to be fulfilled before running the next test 2018-10-25 12:25:41 +02:00
lookup_server_connector Do not try to contact lookup server without internet connection or URL 2018-10-18 17:49:28 +02:00
oauth2 [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
provisioning_api Get l10n within NewUserMailHelper to ensure it always uses the new user's language. 2018-10-15 19:01:46 +02:00
sharebymail [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
systemtags [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
testing Update version requirements and versions of shipped apps 2018-09-05 14:27:06 +02:00
theming Remove replace call which does not replace anything 2018-10-24 14:53:52 +02:00
twofactor_backupcodes [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
updatenotification [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
user_ldap [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00
workflowengine [tx-robot] updated from transifex 2018-10-23 14:54:28 +00:00