Add export extension test HTML pages for Cypress tests#574
Conversation
3fde107 to
be770ed
Compare
There was a problem hiding this comment.
Pull request overview
Adds a set of HTML fixtures under for-tests/ to exercise the Bootstrap Table export extension in Cypress E2E scenarios.
Changes:
- Added 12 export-focused HTML test pages covering
showExport,exportTypes,exportDataType, events, filename customization, footer export, column force options, and theexportTable()method. - Introduced simple per-page datasets and minimal UI hooks (e.g., button trigger, window flags) to support E2E assertions.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| for-tests/extensions/export/export-showExport.html | Fixture for validating showExport renders export UI. |
| for-tests/extensions/export/export-customTypes.html | Fixture for validating multiple exportTypes values. |
| for-tests/extensions/export/export-singleType.html | Fixture for single export type UI behavior (button vs dropdown). |
| for-tests/extensions/export/export-stringTypes.html | Fixture intended to validate exportTypes provided in string form. |
| for-tests/extensions/export/export-dataType-all.html | Fixture for validating exportDataType: 'all' with pagination. |
| for-tests/extensions/export/export-dataType-selected.html | Fixture for validating exportDataType: 'selected' with checkbox selection. |
| for-tests/extensions/export/export-events.html | Fixture for validating export lifecycle events (export-started, export-saved). |
| for-tests/extensions/export/export-fileName-function.html | Fixture for validating exportOptions.fileName as a function. |
| for-tests/extensions/export/export-footer.html | Fixture for validating exportFooter: true includes <tfoot> content. |
| for-tests/extensions/export/export-forceExport.html | Fixture for validating data-force-export exports hidden columns. |
| for-tests/extensions/export/export-forceHide.html | Fixture for validating data-force-hide excludes columns from export. |
| for-tests/extensions/export/export-method.html | Fixture for validating programmatic export via exportTable() method. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
be770ed to
4fb820f
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2aa42cf to
2e618f8
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add 12 test HTML files for export extension options - Test showExport, exportTypes, exportDataType, exportFooter, etc. - Test column options: forceExport, forceHide - Test events: export-started, export-saved - Test methods: exportTable() - Test exportOptions.fileName as function
2e618f8 to
596a1c6
Compare
Description
Add 12 HTML test pages for the export extension to support Cypress E2E testing.
Each page includes the required
tableExport.jquery.plugindependency and follows the existinginit()pattern used across the project.Test pages added
export-showExport— Test showExport option to display export buttonexport-customTypes— Test exportTypes with multiple supported typesexport-singleType— Test single export type (button vs dropdown)export-multipleTypes— Test exportTypes with multiple types (partial list)export-dataType-all— Test exportDataType=all with paginationexport-dataType-selected— Test exportDataType=selected with checkbox selectionexport-events— Test export-started and export-saved eventsexport-fileName-function— Test exportOptions.fileName as functionexport-footer— Test exportFooter=true to include table footerexport-forceExport— Test forceExport column option to export hidden columnsexport-forceHide— Test forceHide column option to hide columns from exportexport-method— Test exportTable() method for programmatic exportRelated
Corresponding Cypress tests are in bootstrap-table repo:
cypress/e2e/extensions/export/