• last updated 18 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
file includelet-test-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./includelet-test-procs.tcl
Extend the test for the case where all links should be expanded

This tests also exposes issued with the sorting

Extend test to start enforcing that the expected number of links is rendered and that the sorting is correct

This will expose that already in this simple case, we have that "100" comes before "2"

Basic test where we render the ToC includelet

This test currently fails because of a bug concerning the ul_class variable

file tree-procs.tcl was initially added on branch oacs-5-10.

Also allow to specify the page order

Allow to specify the content when requiring the page

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

updated list of tested functions

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. … 1 more file 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.

whitespace changes

cleanup test

use more compact idioms, remove useless code, etc.

added a test for checking the results of the preview of test-items

Since the preview workflow requires a multiple redirects, xowiki::test::edit_form_page

requires a new flag refetch to actually turn off automatic refetching of the result

page, since this does not give us access to the redirect location returned by

the edit command.

  1. … 3 more files in changeset.
include item_id in result dict of ::xowiki::test::create_form_page

this makes it possible to perform further checks without refetch by name

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

added "@see" to deprecated proc

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