Skip to content
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

fix our js tester #3403

Open
DonnieBLT opened this issue Feb 13, 2025 · 5 comments
Open

fix our js tester #3403

DonnieBLT opened this issue Feb 13, 2025 · 5 comments
Assignees

Comments

@DonnieBLT
Copy link
Collaborator

TypeError: Cannot read properties of null (reading 'classList')

We have this on many pages however our test_views.py script is supposed to catch Javascript errors. Take a look to see why it's not working and please fix it.

@krrish-sehgal
Copy link
Contributor

/assign

Copy link
Contributor

Hello @krrish-sehgal! You've been assigned to OWASP-BLT/BLT issue #3403. You have 24 hours to complete a pull request.

@krrish-sehgal
Copy link
Contributor

krrish-sehgal commented Feb 14, 2025

@DonnieBLT sir , do we have to create a test_view file for this ? that tests out the javascript in the templates ?, as currently I am not able to find such script in the website app.

@DonnieBLT
Copy link
Collaborator Author

I have a commit that adds more comments to the file I’ll be committing that soon

@DonnieBLT
Copy link
Collaborator Author

I believe this line is supposed to catch the errors, but looking at now it seems to only catch syntax errors and maybe other errors are slipping by https://github.com/OWASP-BLT/BLT/blob/main/website/tests_urls.py#L147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants