Wikinews:Dialog/do/test/rollback

This page tests rollback, in which an action request is retracted to restore the page display from which the request was issued. The first several tests exercise primarily different contexts of rollback; later tests exercise particular causes of rollback. Some causes of rollback (such as failure to parse the page to be viewed) are listed but not supported here because they can't be induced under ordinary circumstances.

To initialize the observables — which should then be restored by each rollback test — use action=do&label=this button&verb:button-local-field-verb&page:button-local-field-page&bar1:button-local-field-bar1&bar2:button-local-field-bar2&cols=&rows=&viewxcols=&rows=&Wikinews:Dialog/do/test/rollbackxWikinews:Dialog/do/test/rollbackcols=&rows=&onexcols=&rows=&twox to provide incoming values for the second set of parameters, and manually enter new values into the text boxes. (The button doesn't preserve the contents of the text boxes.)


Parameters and fields

edit
observed expected
Parameter foo1: {{{foo1}}} none
Parameter foo2: {{{foo2}}} none
Parameter bar1: {{{bar1}}} one
Parameter bar2: {{{bar2}}} two
Parameter test {{{test}}}
Field quux1: size=&x
Field quux2: cols=&rows=&x
Reserved parameter ROLLBACK-CLASS {{{ROLLBACK-CLASS}}}
Reserved parameter ROLLBACK-CONDITION {{{ROLLBACK-CONDITION}}}
Reserved parameter ACTIVE-PARAMETERS {{{ACTIVE-PARAMETERS}}}

Tests

edit
test what is tested


contexts of rollback
action=do&label=view missing (delegating)&verb:button-local-field-verb&page:button-local-field-page&foo1:button-local-field-foo1&foo2:button-local-field-foo2&bar1:button-local-field-bar1&bar2:button-local-field-bar2&quux1:button-local-field-quux1&quux2:button-local-field-quux2&cols=&rows=&viewxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistentcols=&rows=&value1xcols=&rows=&value2xcols=&rows=&value3xcols=&rows=&value4xcols=&rows=&value5xcols=&rows=&value6x view of nonexistent page (delegating)
action=do&label=view missing (simple)&verb:button-local-field-verb&page:button-local-field-page&foo1:button-local-field-foo1&foo2:button-local-field-foo2&bar1:button-local-field-bar1&bar2:button-local-field-bar2&quux1:button-local-field-quux1&quux2:button-local-field-quux2&cols=&rows=&viewxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistentcols=&rows=&value1xcols=&rows=&value2xcols=&rows=&value3xcols=&rows=&value4xcols=&rows=&value5xcols=&rows=&value6x view of nonexistent page (non-delegating)
action=do&label=sequence&verb:button-local-field-verb&page:button-local-field-page&count:button-local-field-count&cols=&rows=&viewxcols=&rows=&Wikinews:Dialog/do/test/rollback/sequencexWikinews:Dialog/do/test/rollback/sequencecols=&rows=&0x rollback halts an in-progress sequence
action=do&label=setup passive test&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/passive/formxWikinews:Dialog/do/test/rollback/passive/formcols=&rows=&Wikinews:Dialog/do/test/rollback/passivexWikinews:Dialog/do/test/rollback/passive rollback to passive url: no id, but no query parameters either
Wikinews:Dialog rollback to active url with no associated id
Enter the following url into your browser rollback to unstable url (active, with associated id not in url)
(requires direct entry of url because if embedded it would be delegated)
https://en.wikinews.org/wiki/Wikinews:Dialog/do?verb=view&page=Wikinews:Dialog/do/test/rollback&test=
Enter the following url into your browser inability to rollback from unstable url (different error panel than from stable url)
(requires direct entry of url because if embedded it would be delegated)
https://en.wikinews.org/wiki/Wikinews:Dialog/do?verb=view&page=Wikinews:Dialog/do/test/rollback/nonexistent&test=


causes of rollback
action=do&label=disable&verb:button-local-field-verb&page:button-local-field-page&norollback:button-local-field-norollback&cols=&rows=&viewxcols=&rows=&Wikinews:Dialog/do/test/rollbackxWikinews:Dialog/do/test/rollbackcols=&rows=&xx rollback for these tests
failure when parsing content during view [viewStepThree]
(as of this writing, this error can't be externally induced)

action=do&label=no subject&verb:button-local-field-verb&form:button-local-field-form&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=no form&verb:button-local-field-verb&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=blank subject&verb:button-local-field-verb&subject:button-local-field-subject&form:button-local-field-form&cols=&rows=&editxcols=&rows=&xcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=blank form&verb:button-local-field-verb&subject:button-local-field-subject&form:button-local-field-form&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistentcols=&rows=&x

rejection of malformed edit requests [editStepOne]

action=do&label=bad name&verb:button-local-field-verb&subject:button-local-field-subject&form:button-local-field-form&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistentcols=&rows=&Wikinews:Dialog/do/test/rollback/{{}}x[[:Wikinews:Dialog/do/test/rollback/{{}}]] action=do&label=missing&verb:button-local-field-verb&subject:button-local-field-subject&form:button-local-field-form&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistentcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=unsecured&verb:button-local-field-verb&subject:button-local-field-subject&form:button-local-field-form&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistentcols=&rows=&Wikinews:Dialog/do/test/rollback/form-unsecuredxWikinews:Dialog/do/test/rollback/form-unsecured action=do&label=undesignated&verb:button-local-field-verb&subject:button-local-field-subject&form:button-local-field-form&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistentcols=&rows=&Wikinews:Dialog/do/test/rollback/form-undesignatedxWikinews:Dialog/do/test/rollback/form-undesignated

invalid form [editStepOne, editStepTwo]
failure to determine whether or not subject exists [editStepTwo]
(as of this writing, this error can't be externally induced)

action=do&label=redundant spec&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/form-redundantxWikinews:Dialog/do/test/rollback/form-redundantcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=timestamp, missing&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/form-nullxWikinews:Dialog/do/test/rollback/form-nullcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=create, exists&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/form-create-failxWikinews:Dialog/do/test/rollback/form-create-failcols=&rows=&Wikinews:Dialog/do/test/rollback/subjectxWikinews:Dialog/do/test/rollback/subject

action=do&label=modify, missing&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/form-nocreate-failxWikinews:Dialog/do/test/rollback/form-nocreate-failcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=unknown spec&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/form-badcreationxWikinews:Dialog/do/test/rollback/form-badcreationcols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent action=do&label=no spec&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/form-nospecxWikinews:Dialog/do/test/rollback/form-nospeccols=&rows=&Wikinews:Dialog/do/test/rollback/nonexistentxWikinews:Dialog/do/test/rollback/nonexistent

request mis-specifying subject existence status [editStepThree]
failure when parsing form for authentication [editStepFour]
(as of this writing, this error can't be externally induced)
failure when parsing form for edit content [editStepSix]
(as of this writing, this error can't be externally induced)
While viewing this dialog page, open a second browser tab and use it to
  1. log out of wikimedia,
  2. remove all your wikimedia cookies, and
  3. log back into wikimedia (and then you can close the other tab).

Then come back to this tab and click this button: action=do&label=null edit&verb:button-local-field-verb&form:button-local-field-form&subject:button-local-field-subject&cols=&rows=&editxcols=&rows=&Wikinews:Dialog/do/test/rollback/form-nullxWikinews:Dialog/do/test/rollback/form-nullcols=&rows=&Wikinews:Dialog/do/test/rollback/subjectxWikinews:Dialog/do/test/rollback/subject

failure of the edit operation itself [editStepSeven]
(this tests one way for it to fail; there are others, which as of this writing can't be externally induced)