Difference between revisions of "Basic Functions of a Wiki"
| Line 13: | Line 13: | ||
** in edit mode, click the "Show preview" button | ** in edit mode, click the "Show preview" button | ||
** the page shows both the contents of the page in html AND the textarea we're editing | ** the page shows both the contents of the page in html AND the textarea we're editing | ||
| + | |||
==Next Actions== | ==Next Actions== | ||
* editLinkWholePage() needs to verify typing in the textarea | * editLinkWholePage() needs to verify typing in the textarea | ||
| − | * editLinkSection() | + | * editLinkSection() & editLinkWholePage() need to be refactored to eliminate duplication |
| + | * check to see if editURLWholePage() is the same as editLinkWholePage() | ||
| + | ** if not the same (I don't think they're identical), then refactor out all the sameness | ||
| + | * check to see if editURLSection() is the same as editLinkSection() | ||
| + | ** if not the same (I don't think they're identical), then refactor out all the sameness | ||
| + | |||
==Done== | ==Done== | ||
*created files basic_wiki_functions_acceptance_test.sh & BasicWikiFunctionsTest.php | *created files basic_wiki_functions_acceptance_test.sh & BasicWikiFunctionsTest.php | ||
*testEditLinkWholePageIP() & testEditLinkWholePageLogin() both call editLinkWholePage() which does the actual work - the only difference is the login one logs in | *testEditLinkWholePageIP() & testEditLinkWholePageLogin() both call editLinkWholePage() which does the actual work - the only difference is the login one logs in | ||
*testEditLinkSectionIP() & testEditLinkSectionLogin() both call editLinkSection() - same as above | *testEditLinkSectionIP() & testEditLinkSectionLogin() both call editLinkSection() - same as above | ||
| + | |||
[[Category:Acceptance Tests]] | [[Category:Acceptance Tests]] | ||
Revision as of 20:27, 7 March 2007
each test independent of the others? can we test preview or save if edit isn't working?
- edit
- logged in & not logged in, click the "edit" link at the top & "type" the "action=edit" url & click section edit & type section edit url
- verify the textarea exists
- verify the textarea contents are correct
- verify that typing works
- logged in & not logged in, click the "edit" link at the top & "type" the "action=edit" url & click section edit & type section edit url
- save
- in edit mode, click the "Save page" button
- verify that the page saves
- we're now NOT in edit mode
- the contents of the page are what we expect
- preview
- in edit mode, click the "Show preview" button
- the page shows both the contents of the page in html AND the textarea we're editing
Next Actions
- editLinkWholePage() needs to verify typing in the textarea
- editLinkSection() & editLinkWholePage() need to be refactored to eliminate duplication
- check to see if editURLWholePage() is the same as editLinkWholePage()
- if not the same (I don't think they're identical), then refactor out all the sameness
- check to see if editURLSection() is the same as editLinkSection()
- if not the same (I don't think they're identical), then refactor out all the sameness
Done
- created files basic_wiki_functions_acceptance_test.sh & BasicWikiFunctionsTest.php
- testEditLinkWholePageIP() & testEditLinkWholePageLogin() both call editLinkWholePage() which does the actual work - the only difference is the login one logs in
- testEditLinkSectionIP() & testEditLinkSectionLogin() both call editLinkSection() - same as above
