| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Trac
Revision: 7091
Author: ecarter
Date: 20 May 2008 23:06:36
Diff at Trac: http://trac.edgewall.org/changeset/7091
Changes:Trunk: Merge component removal test from 0.11-stable
Files:| ... | ...@@ -74,5 +74,5 @@ | |
| 74 | 74 | |
| 75 | 75 | <py:choose> |
| 76 | <form py:when="components" method="POST"> | |
| 76 | <form py:when="components" name="component_table" method="POST"> | |
| 77 | 77 | <table class="listing" id="complist"> |
| 78 | 78 | <thead> |
| ... | ...@@ -33,4 +33,16 @@ | |
| 33 | 33 | |
| 34 | 34 | |
| 35 | class TestAdminComponentRemoval(FunctionalTwillTestCaseSetup): | |
| 36 | def runTest(self): | |
| 37 | """Admin remove component""" | |
| 38 | name = "RemovalComponent" | |
| 39 | self._tester.create_component(name) | |
| 40 | component_url = self._tester.url + "/admin/ticket/components" | |
| 41 | tc.go(component_url) | |
| 42 | tc.formvalue('component_table', 'sel', name) | |
| 43 | tc.submit('remove') | |
| 44 | tc.notfind(name) | |
| 45 | ||
| 46 | ||
| 35 | 47 | class TestAdminMilestone(FunctionalTwillTestCaseSetup): |
| 36 | 48 | def runTest(self): |
| ... | ...@@ -594,4 +606,5 @@ | |
| 594 | 606 | suite.addTest(TestAdminComponent()) |
| 595 | 607 | suite.addTest(TestAdminComponentDuplicates()) |
| 608 | suite.addTest(TestAdminComponentRemoval()) | |
| 596 | 609 | suite.addTest(TestAdminMilestone()) |
| 597 | 610 | suite.addTest(TestAdminMilestoneSpace()) |