From a27c0b3c69c9180e5d47a1655bd15369e9da6ccb Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 29 Oct 2014 20:36:26 +0100
Subject: [PATCH] fixup! fixup! test: modify functional test for recent full
 text catalog.

---
 ...ingZuite_createAccountingTransactionListSalesAndPayments.xml | 2 +-
 .../erp5_accounting_ui_test/AccountingZuite_reset.xml           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionListSalesAndPayments.xml b/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionListSalesAndPayments.xml
index c35e5884fb..3f973fb2a2 100644
--- a/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionListSalesAndPayments.xml
+++ b/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionListSalesAndPayments.xml
@@ -107,7 +107,7 @@ euro_resource = getCurrencyByReference(\'EUR\')\n
 def getBankAccountByTitle(title):\n
   document_list = [x.getObject().getRelativeUrl() for x in\n
     portal.portal_catalog(portal_type=\'Bank Account\',\n
-                          title=SimpleQuery(title=\'Dummy Product for testing\', comparison_operator=\'=\'))]\n
+                          title=SimpleQuery(title=title, comparison_operator=\'=\'))]\n
   assert len(document_list) == 1, \\\n
       \'%d Bank Account with title "%s"\' % (len(document_list), title)\n
   return document_list[0]\n
diff --git a/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml b/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
index a45a056360..e310984696 100644
--- a/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
+++ b/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
@@ -130,7 +130,7 @@ stool.setSelectionColumns(\'account_module_selection\',\n
 \n
 # delete the "dummy account" we create in test_account_gap_parallel_list_field\n
 dummy_account_list = portal.account_module.searchFolder(\n
-  title=SimpleQuery(title=\'Dummy Product for testing\', comparison_operator=\'=\'))\n
+  title=SimpleQuery(title=\'Dummy Account for UI Test\', comparison_operator=\'=\'))\n
 if dummy_account_list:\n
   portal.account_module.manage_delObjects([dummy_account_list[0].getId()])\n
 \n
-- 
GitLab