[REM] correctly rename and remove wiki
[odoo/odoo.git] / addons / document_page / test / document_page_test00.yml
1 -
2     In order to test the document_page in OpenERP, I create a new document page type on Select Display Method Tree
3 -
4     !record {model: document.page.type, id: wiki_groups_wikigrouptest0}:
5       method: tree
6       name: Wiki Group Test
7       notes: I can Generate New Group for Select Display method = Tree.
8 -
9     Now I will create new Doucment page and assign Group test to this page
10 -
11     !record {model: document.page, id: wiki_wiki_openerpwikiediting0}:
12       name: OpenERP Wiki Test
13       content: '=The Open ERP wiki=
14
15       The Open ERP wiki allows you to manage your enterprise contents using wiki
16
17       restructured texts. This module provides a collaborative way to manage internal
18
19       FAQs, quality manuals, technical references, etc.'
20
21 -
22     Now I will update the wikipage with other text
23 -
24     !record {model: document.page, id: wiki_wiki_openerpwikiediting0}:
25       content: '=The Open ERP wiki=
26
27       The Open ERP wiki allows you to manage your enterprise contents using wiki
28
29       restructured texts. This module provides a collaborative way to manage internal
30
31       FAQs, quality manuals, technical references, etc.
32       
33       Wiki text can easily be edited
34       '
35 -
36     I check the page history for the current page by clicking on "Page History".After that find difference between history.
37 -
38     !python {model: wizard.document.page.history.show_diff}: |
39       hist_obj = model.pool.get('document.page.history')
40       ids = hist_obj.search(cr, uid, [('document_id', '=', ref("wiki_wiki_openerpwikiediting0"))])
41       model.get_diff(cr, uid, {'active_ids': ids[:] })
42 -
43     I create a new Document page type on the Given Home Page
44 -
45     !record {model: document.page.type, id: wiki_groups_wikigroupediting0}:
46       name: Wiki Group Editing
47       home: document_page.wiki_wiki_quickstart0
48 -
49     I Open the page for click on  "Open Document Page" button.
50 -
51     !python {model: document.page.type}: |
52       self.open_document_page(cr, uid, [ref("wiki_groups_wikigroupediting0")], context)
53 -
54     In order to create a menu I will create wizard data
55 -
56     !record {model: document.page.type, id: document_page.wiki_groups_wikiformatting0}:
57       home: document_page.wiki_wiki_main
58 -
59     I create a Menu by clicking on "create menu" button.
60 -
61     !record {model: document.page.create.menu, id: wiki_create_menu_0}:
62       menu_name: Wiki Test menu
63       menu_parent_id: base.menu_base_partner
64 -
65     I fill in the form and create the menu
66 -
67     !python {model: document.page.create.menu}: |
68       ids = self.search(cr, uid, [])
69       self.document_page_menu_create(cr, uid, ids, context)
70
71