kberov / Ado

Ado - framework for web projects on Mojolicious | Note! Now I work on a replacement - https://github.com/kberov/Slovo
Other
32 stars 9 forks source link

Tests fail with Mojolicious 7 #106

Closed eserte closed 7 years ago

eserte commented 8 years ago

My smokers report the following failure, probably only if Mojolicious 7.00 is installed:

#   Failed test 'exact match for selector "\#authbar .item:nth-child(1)"'
#   at t/plugin/auth-01.t line 11.
#          got: '
#         Sign in
#         
#       '
#     expected: 'Sign in'

#   Failed test 'exact match for selector "\#authbar .simple.dropdown a.item:nth-child(1)"'
#   at t/plugin/auth-01.t line 11.
#          got: '
#              Ado
#           '
#     expected: 'Ado'

#   Failed test 'exact match for selector "\#authbar .modal form\#login_form .ui.header:nth-child(1)"'
#   at t/plugin/auth-01.t line 11.
#          got: '
#     Sign in
#     '
#     expected: 'Sign in'

#   Failed test 'exact match for selector "form\#login_form .ui.header:nth-child(1)"'
#   at t/plugin/auth-01.t line 22.
#          got: '
#     Sign in
#     '
#     expected: 'Sign in'

#   Failed test 'exact match for selector "\#error_login"'
#   at t/plugin/auth-01.t line 75.
#          got: '
#       Wrong credentials! Please try again!'
#     expected: 'Wrong credentials! Please try again!'

#   Failed test 'exact match for selector "\#error_login_name"'
#   at t/plugin/auth-01.t line 75.
#          got: '
#           No such user 'alabala'!
#         '
#     expected: 'No such user 'alabala'!'
# Looks like you failed 6 tests of 36.
t/plugin/auth-01.t ............... 
Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/36 subtests 
eserte commented 8 years ago

Another distribution of yours is possibly also affected by Mojolicious 7: BEROV/Ado-Plugin-Site-0.06.tar.gz I'll check later.

eserte commented 8 years ago

Probably this change is relevant: https://metacpan.org/source/SRI/Mojolicious-7.0/Changes#L8

kberov commented 7 years ago

Yes @eserte . this change was the problem. Thank you! Fixed some time ago. Updated now to Mojolicious 7.11. Sorry for the late update.