add selenium test for dropping a view
authorioguix <ioguix>
Fri, 14 Dec 2007 15:14:43 +0000 (15:14 +0000)
committerioguix <ioguix>
Fri, 14 Dec 2007 15:14:43 +0000 (15:14 +0000)
selenium/tests/TestSuite.html
selenium/tests/create_view.php

index 6108ae2b8adc839136c23b5651837721d17eae5c..cf9075bcc7935f6c8d92c2a63c9bd4caa1c80688 100644 (file)
@@ -36,7 +36,7 @@
        <td><a href="drop_column.php">Drop column</a></td>
 </tr>
 <tr>
-       <td><a href="create_view.php">Create/Alter View</a></td>
+       <td><a href="create_view.php">Create/Alter/Drop a view</a></td>
 </tr>
 <tr>
        <td><a href="create_index.php">Create index</a></td>
index 586e38176cb48f5485f7d6105f62b27a22f7cbd3..a64fd1f5ae4178d9949fb2414710c6dcb5f8b39d 100644 (file)
@@ -7,7 +7,7 @@
 <body>
 <table cellpadding="1" cellspacing="1" border="1">
 <thead>
-<tr><td rowspan="1" colspan="3">Create/Alter a view</td></tr>
+<tr><td rowspan="1" colspan="3">Create/Alter/Drop a view</td></tr>
 </thead><tbody>
 <?php include('login.php') ?>
 <!-- CREATE -->
        <td>//tr/td[1]/a[text()='student_promo']/../../td[2]</td>
        <td><?php echo $admin_user ?></td>
 </tr>
-
+<!-- drop view -->
+<tr>
+       <td>clickAndWait</td>
+       <td>//tr/td/a[text()='student_promo']/../../td/a[text()='<?php echo $lang['strdrop'] ?>']</td>
+       <td></td>
+</tr>
+<tr>
+       <td>clickAndWait</td>
+       <td>drop</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertText</td>
+       <td>//p[@class='message']</td>
+       <td><?php echo $lang['strviewdropped'] ?></td>
+</tr>
 <?php include('logout.php'); ?>
 </tbody></table>
 </body>