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

DataTable not rendering in 3.9.0 #421

Open
AllanJard opened this issue Jan 24, 2025 · 1 comment
Open

DataTable not rendering in 3.9.0 #421

AllanJard opened this issue Jan 24, 2025 · 1 comment

Comments

@AllanJard
Copy link

Environment (please complete the following information)

  • multiple-cucumber-html-reporter: 3.9.0

Describe the bug

The DataTable on the report landing page isn't working - the following error is shown in the console:

Uncaught TypeError: $(...).dataTable is not a function

It looks like commit bd58e2c went a little wobbly. For example the contents of jquery.dataTables.min.js was replaced, not with an update to DataTables core, but rather with the jQuery UI integration for DataTables, which I doubt is what you want since you have Bootstrap loaded on the page. Additionally, the dataTables.bootstrap.min.js file contains CSS.

To Reproduce

Install [email protected] and create a report. The main table on the index page will not be a DataTable.

Expected behavior

A DataTable should be created, like in the readme screenshots.

Additional context

Disclosure, I'm the author for DataTables and a friend let me know they were having problems after updating to 3.9.0.

@AllanJard
Copy link
Author

I was going to send a PR for this, but I don't actually know if you are using Bootstrap 3 or Bootstrap 5. If useCDN is true, then Bootstrap 3 is loaded. But the local bootstrap.min.css appears to contain Bootstrap 5. Should they be insync, or is that intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant