-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue/12342/js test driver removal #12406
Issue/12342/js test driver removal #12406
Conversation
Removed transtale-test.js from jsTestDriver suite.
@ishakhsuvarov @magento-engcom-team are we still using lib/web/mage/translate-inline.js Couldn't find any usage into the magento 2 and those tests are hard to deal with since that'd involve DOM inclusions. Without jasmine-jquery it'd be hard. |
Removed accordion.js and index.html for jsTestDriver test.
Ok @omiroshnichenko will do so. |
@KarlDeux Im have already rewritten decorate-test.js. Is it be ok if I will make commit to your branch? |
@omiroshnichenko sure thing! I'm fixing now accordion and finishing collapsible. |
Removed transtale-test.js from jsTestDriver suite.
Removed accordion.js and index.html for jsTestDriver test.
(cherry picked from commit b3fedbc)
…al' into issue/12342/JSTestDriver-removal # Conflicts: # dev/tests/js/jasmine/tests/lib/mage/accordion.test.js
@omiroshnichenko looks like decorate test are failing:
|
@KarlDeux My fault. Fixed. |
Fixed enable method. It was not enabling and activating the collapsible. This was detected on Jasmine unit testing. Minor repositioning to this.options.disabled on disable method for consistency purposes with enable method.
Had to apply some changes to lib/web/mage/collapsible.js in order to be testable. |
- Added translate-inline.test.js and removed JsTestDriver equivalent.
- Added calendar.test.js and removed JsTestDriver equivalent.
- Fix translate-inline.test.js, save original ajax
- Fix loader.test.js and removed JsTestDriver equivalent.
- Added suggest.test.js and removed JsTestDriver equivalent. - Added tree-suggest.test.js and removed JsTestDriver equivalent.
- Added tabs.test.js and removed JsTestDriver equivalent.
@KarlDeux Maybe I can help you with validation test? |
…12342/JSTestDriver-removal
@KarlDeux If you busy, I can start work on validation-test? |
@omiroshnichenko hey! I was out for vacations, just commited the file as I have it (still needs work). Feel free to finish it :) |
@KarlDeux Ohhh!!! I just finished all test and ready to commit. Maybe I will make force push if you do not mind? |
Sure @omiroshnichenko ! go for it! |
- Added validation.test.js and removed JsTestDriver equivalent. - Fix unstable tests.
…12342/JSTestDriver-removal
- Fix timeout dropdown close.
- Fix jstree override.
…12342/JSTestDriver-removal
- Fix validation.
@omiroshnichenko guess we're done right? Shall I squash it all or do you want to do so? |
@KarlDeux Going to merge it as is, don't see any problem in keeping history for this amount of work done 👍 |
Fixes #12342
Refactoring and creation of Jasmine Unit testing.
Removed JSTestDriver.
Description
Currently Magento is using 2 different sets of tools for the JavaScript Testing:
JSTestDriver, which is considered legacy and is not supported anymore by the core team.
Jasmine, which was introduced to replace JSTestDriver. All new JS tests are implemented using it and executed in multiple CI environments, including public Travis CI and Magento's in-house CICD infrastructure.
To remove legacy framework it is required to reimplement remaining tests using Jasmine, and completely remove JSTestDriver support afterwards.
Fixed Issues (if relevant)
Manual testing scenarios
$ npm install
.$ php bin/magento setup:static-content:deploy -f
.$ grunt spec:
.All the tests should pass.
List of JS which require attention:
Contribution checklist