xowiki-test-procs.tcl

  • last updated 19 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
prefer variable ::acs::rootdir over proc [acs_root_dir]

  1. … 1 more file in changeset.
fix bug: tcl clock format %e returns in current versions single digit values with leading whitespace, which are invalid values for the options field.

Since non of the date-component fields is supposed to contain leading (or trailing) white-space,

this is now trimmed.

  1. … 1 more file in changeset.
add test case for disabled checkbox (should be the same as for non-disabled case)

provide test for p.configure parameter

Don't enforce options validation on disabled fields, demonstrate that this won't allow to insert invalid values in the field

Fix the test, which was not actually reproducing the issue

in order to do so, I had to fix the behavior of acs::test::xpath::get_form_values: we should in fact NOT extract the value of disabled formfield, as a real browser will not send them in the POST request.

  1. … 1 more file in changeset.
Expose behavior:

extend date formfield test to include also a date in a specific format from downstream, set to disabled. Set the day of the month as a number < 10. Show that in this case the validation will complain about an invalid value. This because the field is represented as " 1" rather than the expected "1"

Modernize api

Improve test robustness:

the folder in the test is required, so it might be the case that its state was already tampered with. Change the test to first make sure the state from db and object are consistent, whatever they are, then perform some set/fetch/check tests on 3 arbitrary states

extended regression test

  1. … 1 more file in changeset.
Test reproducing an upstream use case: a compound field made of both regular, and compound field, with the compound field also repeated

This test exposes a bug in the acs::test::xpath::get_form_values proc

list covered test cases

  1. … 2 more files in changeset.
Added convenience function ::xowiki::test::get_content

This function eases testing by just retrieving the content part of a

page, leaving out header and footers of the theme.

  1. … 1 more file in changeset.
cleanup test

use more compact idioms, remove useless code, etc.

  1. … 1 more file in changeset.
fixed test case

returned violation on plain instance

New automated test for a page, including another page, which includes a picture, checking that everything works as expected

generalize locales with a decimal point as comma, extend test with repeated form fields

Bring back de_DE as language in the test

Use double quotes consistently in comment

Extend automated test with usage of a numeric formfield in the context of a compound field, use it_IT as the locale to check against, as upstream de_DE has also the dot separator like en_US

provide test case for the form-field "numeric" with switching the lanuage preferences

Perform a full initialize on both packages to get ::xo::cc initialized

  1. … 1 more file in changeset.
prefer "Package require" over "Package initialize" when possible

  1. … 2 more files in changeset.
adjust code with regression test, which performs literal comparison of rendered content

  1. … 4 more files in changeset.
added test case for form field validation

  1. … 1 more file in changeset.
improve listing of procs covered by regression test

  1. … 2 more files in changeset.
whitespace change

extend regression test

  1. … 1 more file in changeset.
perform proper login for web regression test

Remove redundant 'apm_package_instance_delete'