Commit 65dc3807 authored by Jérome Perrin's avatar Jérome Perrin

corporate_identity_test: adjust test for new "Export as Chapter" action

Since 206a8e25 (erp5_officejs: new OfficeJS Slideshow Editor application,
2020-07-06) this test runs with erp5_run_my_doc installed, and the first export
action for Web Page is no longer "Export as SlideShow" but "Export as Chapter".
This is an action which is here since a long time in erp5_run_my_doc, but since
erp5_run_my_doc was not installed in this test it was not impacting this test.

Adjust the tests so that they don't assume that the first export action is
"Export as SlideShow" but are more independent on which is the first action.

Also, all actions have a new index, so places where we select the action by
index no longer work. Instead of updating the indexes, select by label which
should be more future proof.
parent ce233f79
......@@ -157,15 +157,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......@@ -428,15 +423,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......@@ -758,15 +748,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......@@ -1026,15 +1011,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......@@ -1253,15 +1233,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......@@ -1515,15 +1490,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......@@ -1862,15 +1832,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......@@ -2120,15 +2085,10 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
......
......@@ -152,19 +152,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=2</td>
<td>label=Export as Leaflet</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -414,19 +409,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=2</td>
<td>label=Export as Leaflet</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -698,19 +688,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=2</td>
<td>label=Export as Leaflet</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -937,19 +922,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=2</td>
<td>label=Export as Leaflet</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -1199,19 +1179,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=2</td>
<td>label=Export as Leaflet</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -1480,19 +1455,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=2</td>
<td>label=Export as Leaflet</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......
......@@ -152,19 +152,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>label=Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -414,19 +409,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -681,19 +671,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>label=Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -988,19 +973,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>label=Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -1229,19 +1209,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>label=Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -1485,19 +1460,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>label=Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -1741,19 +1711,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>label=Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -2032,19 +1997,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=1</td>
<td>label=Export as Letter</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......
......@@ -152,19 +152,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=4</td>
<td>label=Export as Press Release</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -414,19 +409,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=4</td>
<td>label=Export as Press Release</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -660,19 +650,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=4</td>
<td>label=Export as Press Release</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......@@ -921,19 +906,14 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>index=4</td>
<td>label=Export as Press Release</td>
</tr>
<tr>
<td>waitForTextPresent</td>
......
......@@ -122,10 +122,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......@@ -323,10 +328,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......@@ -564,10 +574,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......@@ -765,10 +780,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......@@ -1012,10 +1032,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......@@ -1264,10 +1289,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......@@ -1511,10 +1541,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......@@ -1769,10 +1804,15 @@ Note:
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//button[@class="import_export"]</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>name=select_dialog</td>
<td>label=Export as SlideShow</td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Export Slideshow</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment