-
Notifications
You must be signed in to change notification settings - Fork 0
Add checks for ESlint and fix ESlint issues #488
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
Conversation
|
@jjroelofs I have created this new PR on top of your PR #487, so i can request your review once it's ready. |
|
/qa-demo-2x-bs5-tests |
|
/qa-demo-2x-bs5-tests |
|
@Neslee "48 errors and 0 warnings potentially fixable with the |
|
@jjroelofs yes, those are fixed in my local, will push in next commit. |
|
/qa-demo-2x-bs5-tests |
|
/qa-demo-2x-bs5-tests |
@Neslee the QA tests are now expect to completely pass and there are just 10 errors remaining in the editor test suite, the above is one of those that should be fixable. I'm not sure what is up with the missing images, I think I need to still update some code from the test workflow files or something. |
|
/qa-demo-2x-bs5-tests |
|
/qa-demo-2x-bs5-tests |
|
/qa-demo-2x-bs5-tests https://github.com/dxpr/dxpr_theme/actions/runs/8170262836/job/22337373159 |
|
@jjroelofs All errors have been fixed from editor tests, but there are some with timeout and expected true but false |
|
If I run tests on the 6.x branch I get these failures: On your branch I get these: I will manually test the additional failures' related features and also run the tests again to see if it is consistent. |
|
/qa-demo-2x-bs5-tests |
|
@jjroelofs did you find some time to look into this editor test fails, seems like it's running forever. |
|
@jjroelofs just checked now there are 18 editor test failures in 6.x branch - #491 |
|
@Neslee I think the problem is also happening in dxpr_builder repo which uses dxpr_theme:5.x. So, this is probably a problem with the tests themselves, they are new tests. |
jjroelofs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dxpr-theme-header.min.js?s9weip:1 Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Element': '> li' is not a valid selector.
I see that 80% of the work is in dxpr-theme-header.js but since the file is now throwing an error on every page I'll let you fix that first before manually testing your changes. If you haven't already please do manual testing yourself of the header's various functions that you worked on.
dxpr_theme.post_update.php
Outdated
| foreach ($theme_list as $theme) { | ||
| $theme_name = $theme->getName(); | ||
| if ('dxpr_theme' === ($theme->info['base theme'] ?? '') OR 'dxpr_theme' === $theme_name) { | ||
| if ('dxpr_theme' === ($theme->info['base theme'] ?? '') or 'dxpr_theme' === $theme_name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never seen this in PHP, does it even work? I'm pretty sure a lowercase "or" is not in Drupal coding standards. This PR should also not touch any PHP.
|
@jjroelofs I tried a lot to squash commits but i am getting errors and git is throwing me various warnings and making conflicts when I do it |
jjroelofs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, dropdowns are working fine now :)


Linked issues
Solution
Add check, and fix 200+ failures
Checklist