? ? Pending

User tests: Successful: Unsuccessful:

avatar dneukirchen
dneukirchen
8 Feb 2018

Summary of Changes

The current tests are useless (they dont fail) and make it hard to debug failing tests.

Testing Instructions

  1. change expectations so that the tests should fail i.e. instead of
    expect($("#system-message-container")).toBeEmpty(); use expect($("#system-message-container")).not.toBeEmpty(); in calendar/spec.js line 205
  2. run tests => tests do not fail
  3. apply this patch and change expectation again
  4. run tests => tests fail (as expected)

Expected result

working tests

Actual result

useless tests

Documentation Changes Required

@astridx
https://docs.joomla.org/JavaScript_Tests_for_Joomla4 (code sample also has the error)

avatar dneukirchen dneukirchen - open - 8 Feb 2018
avatar dneukirchen dneukirchen - change - 8 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Feb 2018
Category JavaScript Unit Tests
avatar dneukirchen dneukirchen - change - 8 Feb 2018
The description was changed
avatar dneukirchen dneukirchen - edited - 8 Feb 2018
avatar dneukirchen dneukirchen - change - 8 Feb 2018
The description was changed
avatar dneukirchen dneukirchen - edited - 8 Feb 2018
avatar dgt41
dgt41 - comment - 8 Feb 2018

@rdeutz are you around the green merge button?

avatar astridx
astridx - comment - 8 Feb 2018

I fetched this branch and run the tests via
node_modules/karma/bin/karma start karma.conf.js --single-run > log.log
No error in the log.log

avatar rdeutz rdeutz - change - 8 Feb 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-02-08 17:35:15
Closed_By rdeutz
Labels Added: ? ?
avatar rdeutz rdeutz - close - 8 Feb 2018
avatar rdeutz rdeutz - merge - 8 Feb 2018

Add a Comment

Login with GitHub to post a comment