? ? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
13 Dec 2019

PR for #27148

Makes sure that a button is a type=button
aria-hidden on the icon
Correct cursor on hover

avatar brianteeman brianteeman - open - 13 Dec 2019
avatar brianteeman brianteeman - change - 13 Dec 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Dec 2019
Category Administration com_media
avatar Quy Quy - test_item - 13 Dec 2019 - Tested successfully
avatar Quy
Quy - comment - 13 Dec 2019

I have tested this item successfully on 5b27520


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27251.

avatar ChristineWk ChristineWk - test_item - 13 Dec 2019 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 13 Dec 2019

I have tested this item successfully on 5b27520


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27251.

avatar Quy Quy - change - 13 Dec 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 13 Dec 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27251.

avatar Quy Quy - change - 13 Dec 2019
Labels Added: ?
avatar Quy Quy - change - 14 Dec 2019
Labels Added: ?
avatar Quy
Quy - comment - 30 Dec 2019

@HLeithner Can you please merge as checks constantly failed? Thanks.

avatar HLeithner
HLeithner - comment - 30 Dec 2019

The test has to fail because this pr changes the markup and the test can't press the button anylonger...

So whats the reason to change this from span to button? and shouldn't the joomla-toolbar-button simulate button @ggppdk or what do I miss?

avatar Quy
Quy - comment - 30 Dec 2019

This PR changes the markup to be consistent with other toolbar buttons in order to display the hover cursor as a hand and not an arrow.

avatar HLeithner
HLeithner - comment - 30 Dec 2019

Then the test has to be adapted... shouldn't be too hard but don't have time to look at it sorry maybe @Hackwar can have a look?

avatar brianteeman
brianteeman - comment - 30 Dec 2019

These failures can't be related to any changes here


[Selenium browser Logs]
--
666 | 00:24:47.537 SEVERE - http://localhost/test-install/media/layouts/js/joomla/html/batch/batch-language.min.js?6d89747421e0b9c3cc781287dd5b01dd 0:391 Uncaught TypeError: Cannot read property 'addEventListener' of undefined
667 | 00:24:48.192 SEVERE - http://localhost/test-install/media/layouts/js/joomla/html/batch/batch-language.min.js?6d89747421e0b9c3cc781287dd5b01dd 0:391 Uncaught TypeError: Cannot read property 'addEventListener' of undefined
668 | 00:24:53.810 SEVERE - http://localhost/test-install/media/layouts/js/joomla/html/batch/batch-language.min.js?6d89747421e0b9c3cc781287dd5b01dd 0:391 Uncaught TypeError: Cannot read property 'addEventListener' of undefined


avatar joomla-cms-bot joomla-cms-bot - change - 30 Dec 2019
Category Administration com_media Administration com_media Unit Tests
avatar brianteeman
brianteeman - comment - 30 Dec 2019

Hopefully the tests are now updated correctly and will pass

avatar Quy Quy - change - 30 Dec 2019
Labels Added: ?
avatar brianteeman
brianteeman - comment - 31 Dec 2019

My attempt at guessing the fix to the tests failed. @puneet0191 @Hackwar any help greatly appreciated. PS it does seem odd that the test named uploading files seems to be all about deleting files

avatar wilsonge
wilsonge - comment - 4 Jan 2020

I can confirm the tests is replicating real life. If I click on the delete toolbar item and then click on delete again in the modal that appears. The item is not actually deleted.

avatar brianteeman
brianteeman - comment - 4 Jan 2020

my bad - you are right - this vue js is beyond me :(

avatar joomla-cms-bot joomla-cms-bot - change - 4 Jan 2020
Category Administration com_media Unit Tests Administration com_media
avatar brianteeman
brianteeman - comment - 4 Jan 2020

The other buttons still work with this change and I just don't see the difference

avatar wilsonge
wilsonge - comment - 4 Jan 2020

The act of clicking the delete toolbar button is de-selecting the items. Not 100% sure why but I guess it's related to the active click area (or similar)

avatar brianteeman brianteeman - change - 5 Jan 2020
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 5 Jan 2020

Hopefully it will pass the tests now

avatar wilsonge
wilsonge - comment - 5 Jan 2020

I think you still need the selector change too in the tests

avatar joomla-cms-bot joomla-cms-bot - change - 5 Jan 2020
Category Administration com_media Administration com_media Unit Tests
avatar brianteeman brianteeman - change - 5 Jan 2020
Labels Added: ?
avatar brianteeman
brianteeman - comment - 5 Jan 2020

@wilsonge it's still failing but with the usual timeout error - its not even getting as far as the relevant test. Dam these flaky tests are annoying

avatar brianteeman
brianteeman - comment - 5 Jan 2020

Woohoo - tests all pass now

avatar wilsonge wilsonge - close - 7 Jan 2020
avatar wilsonge wilsonge - merge - 7 Jan 2020
avatar wilsonge wilsonge - change - 7 Jan 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-01-07 20:02:50
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 7 Jan 2020

Yay! Thanks!

avatar brianteeman
brianteeman - comment - 7 Jan 2020

thanks - got their in the end

avatar wilsonge
wilsonge - comment - 8 Jan 2020

got their

What have you done with the real Brian :P

avatar brianteeman
brianteeman - comment - 8 Jan 2020

he is teaching me to spell

Add a Comment

Login with GitHub to post a comment