Adds support for previewing modifications on redmine's wiki pages.
Status: draft (needs further work to be really useful)
This commit is contained in:
parent
94a1fff7fa
commit
e3f46ac751
4 changed files with 28 additions and 0 deletions
|
|
@ -30,5 +30,11 @@ class WikiEditPage(BasePage):
|
|||
self.browser['content[comments]'] = message.encode('utf-8')
|
||||
self.browser.submit()
|
||||
|
||||
def get_authenticity_token(self):
|
||||
wiki_form = select(self.document.getroot(), 'form#wiki_form', 1)
|
||||
return wiki_form.xpath('div/input')[0].get('value')
|
||||
|
||||
|
||||
|
||||
class WikiPage(BasePage):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue