TheoryOfNekomata
1e914ad467
Complete documentation
Document previously undocumented classes and functions.
1 year ago
TheoryOfNekomata
1ace316763
Add fieldset handling
Any fieldset ancestor that is disabled is now checked for an input's
disabled state.
1 year ago
TheoryOfNekomata
7efbb33f81
Add input type image to ignored input types
The image input type is just a graphical submit button.
1 year ago
TheoryOfNekomata
1505606ad7
Choose null instead of empty string for value
The value attribute of fields expect a string. We use a sentinel value
to clear the field.
1 year ago
TheoryOfNekomata
0843513772
Add ability to set disabled element values
Add options for getFormValues, setFormValues, and clearFormValues to allow managing of values for disabled elements.
1 year ago
TheoryOfNekomata
e465109d74
Implement clearFormValues, improve test syntax
The clearFormValues method is implemented to be able to clear form
values for selected fields.
Tests are now separated from pre-submit to querying the submitter.
1 year ago
TheoryOfNekomata
484fbb2b7e
Update documentation
Specify options to their respective input types.
1 year ago
TheoryOfNekomata
26ec3a2f9c
Cover all input types
Include all input types for testing.
1 year ago
TheoryOfNekomata
cb5872e28f
Implement edge cases for inputs
Add behavior for dirname, isindex, _charset_ scenarios.
1 year ago
TheoryOfNekomata
1319146c72
Update tests
Improve test syntax.
1 year ago
TheoryOfNekomata
7a2ea6b690
Minor refactor
Isolate generic input setting value to its own function.
1 year ago
TheoryOfNekomata
5fa727bf45
Make coverage 100%
Include all tests for the primary functions as well as the utilities.
1 year ago
TheoryOfNekomata
e793049356
Update supported input types
Make input type handling more comprehensive.
1 year ago
TheoryOfNekomata
23433c32d4
Remove uncovered lines
Only keep lines that are testable.
1 year ago
TheoryOfNekomata
2089f146ef
Update tests, fix multiple value setting
Make tests more comprehensive.
1 year ago
TheoryOfNekomata
972a65271e
Add date tests, duplicates
Include tests for duplicate values, as well as comprehensive date tests.
1 year ago
TheoryOfNekomata
1ae8e04f57
Update counting
Reduce complexity in code by un-nesting ternary statements.
1 year ago
TheoryOfNekomata
48166877e4
Add support for multiple values
Correctly set fields when they are arrays.
1 year ago
TheoryOfNekomata
53a8fa4767
Update tsdoc
Indicate partial values can be passed in setFormValues().
1 year ago
TheoryOfNekomata
fdcdf1ddf3
Refactor code
Make error messages more user-friendly. Also remove magic constants
within functions.
1 year ago
TheoryOfNekomata
05499e5fdb
Update tests
Include month and week input types.
1 year ago
TheoryOfNekomata
cc3aa1df91
Switch to pridepack, add setFormValues
Implement setFormValues for easy setting of fields.
Also migrated to pridepack because tsdx is already unmaintained.
1 year ago
TheoryOfNekomata
d67aaa9c84
Fix logic for file input
Use correct logic.
3 years ago
TheoryOfNekomata
1495659990
Organize code
Switch order in appearance of definitions.
3 years ago
TheoryOfNekomata
67bd13e7ae
Structure tests, document methods
The tests do not depend on separate files for loading templates. This is
for the layouts to be defined alongside the tests for easier updates.
The methods have been refactored and documented for ease of use of the
consumers.
3 years ago
TheoryOfNekomata
118147836f
Restructure tests, add other scenarios
Handle selects, as well as file uploads.
3 years ago
TheoryOfNekomata
3b46b67247
Unify tests
Attempt to unify tests for Jest and Cypress.
3 years ago
TheoryOfNekomata
d6553006a1
Organize tests
Both the JSDOM and the Cypress tests are organized.
3 years ago
TheoryOfNekomata
dcda8ddfb2
Implement cypress
This commit adds Cypress for testing the library against a real DOM.
3 years ago
TheoryOfNekomata
90d921ff68
Implement tests
Use custom JSDOM apart from Jest's built-in JSDOM instance because
we need to test different kinds of documents.
We will need to address problems with types, e.g. for `RadioNodeList`
because the runner could not find its declaration (for both our custom
and built-in JSDOM instances).
3 years ago
TheoryOfNekomata
01b1fca79f
Initial commit
Add files from TSDX.
3 years ago