From d339027a6ba6324314d54661e96ab91c45f0ab16 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Wed, 8 Jun 2011 16:02:54 +0300 Subject: [PATCH] Add testing for type in PDF navigation. --- .../erp5_km_zuite/testCheckPDFThumbnail.xml | 48 ++++++++++++------- bt5/erp5_km_ui_test/bt/revision | 2 +- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCheckPDFThumbnail.xml b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCheckPDFThumbnail.xml index 6d370364cc..c711050b42 100644 --- a/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCheckPDFThumbnail.xml +++ b/bt5/erp5_km_ui_test/PathTemplateItem/portal_tests/erp5_km_zuite/testCheckPDFThumbnail.xml @@ -206,13 +206,13 @@ <!-- Go to PDF default big preview -->\n <tr>\n <td>clickAndWait</td>\n - <td>//tr[@class="listbox-data-line-1 DataB"]/td/a/img[@title=\'Thumbnail\']</td>\n + <td>//tr[@class="listbox-data-line-1 DataB"]/td/div/a/img[@title=\'Thumbnail\']</td>\n <td></td>\n </tr>\n <tr>\n - <td>verifyTextPresent</td>\n - <td>2 / 16</td>\n - <td></td>\n + <td>verifyValue</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>2</td>\n </tr>\n <tr>\n <td>verifyElementPresent</td>\n @@ -247,9 +247,9 @@ <td></td>\n </tr>\n <tr>\n - <td>verifyTextPresent</td>\n - <td>3 / 16</td>\n - <td></td>\n + <td>verifyValue</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>3</td>\n </tr>\n <tr>\n <td>clickAndWait</td>\n @@ -257,9 +257,9 @@ <td></td>\n </tr>\n <tr>\n - <td>verifyTextPresent</td>\n - <td>1 / 16</td>\n - <td></td>\n + <td>verifyValue</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>1</td>\n </tr>\n <tr>\n <td>clickAndWait</td>\n @@ -267,9 +267,9 @@ <td></td>\n </tr>\n <tr>\n - <td>verifyTextPresent</td>\n - <td>16 / 16</td>\n - <td></td>\n + <td>verifyValue</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>16</td>\n </tr>\n <tr>\n <td>clickAndWait</td>\n @@ -277,9 +277,25 @@ <td></td>\n </tr>\n <tr>\n - <td>verifyTextPresent</td>\n - <td>1 / 16</td>\n - <td></td>\n + <td>verifyValue</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>1</td>\n +</tr>\n +<!-- Type in test -->\n +<tr>\n + <td>type</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>5</td>\n +</tr>\n +<tr>\n + <td>keyPressAndWait</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>\\13</td>\n +</tr>\n +<tr>\n + <td>verifyValue</td>\n + <td>//input[@name="pdf_selection_index"]</td>\n + <td>5</td>\n </tr>\n \n <tal:block metal:use-macro="here/KMZuite_CommonTemplate/macros/deleteKMWebSite" />\n diff --git a/bt5/erp5_km_ui_test/bt/revision b/bt5/erp5_km_ui_test/bt/revision index 2bab4226fc..147ea53ba1 100644 --- a/bt5/erp5_km_ui_test/bt/revision +++ b/bt5/erp5_km_ui_test/bt/revision @@ -1 +1 @@ -157 \ No newline at end of file +158 \ No newline at end of file -- 2.30.9