test1
smfLoginAndWait 0
open /smf/index.php?action=admin;area=modsettings;sa=hidecontent
check id=post_hc_plugin_checked
type id=post_hidecontent_plugin_default_value 100
clickAndWait css=#button_logout > a.firstlevel > span.last.firstlevel
smfLoginAndWait 1
clickAndWait link=General Discussion
clickAndWait css=a.button_strip_new_topic.active > span
type name=subject user1 post 1
click id=message
type id=message unhidden text

hidden text
click id=BBCBox_message_button_1_21
check id=hidecontent_plugin_post
assertValue id=hidecontent_plugin_input_post_count 100
click id=hidecontent_submit_button
assertValue id=message unhidden text

[hide post=100]hidden text[/hide]
click name=preview
assertElementPresent xpath=(//div[@id='preview_body']//div[contains(concat(' ', @class, ' '), 'unhiddenbox')])
clickAndWait css=#post_confirm_buttons > input.button_submit
clickAndWait link=user1 post 1
assertElementPresent xpath=(//div[contains(concat(' ', @class, ' '), 'unhiddenbox')])
clickAndWait css=#button_logout > a.firstlevel > span.last.firstlevel
smfLoginAndWait 2
clickAndWait link=General Discussion
clickAndWait link=user1 post 1
assertElementNotPresent xpath=(//div[contains(concat(' ', @class, ' '), 'unhiddenbox')])
assertElementPresent xpath=(//div[contains(concat(' ', @class, ' '), 'errorbox')])
clickAndWait css=#button_logout > a.firstlevel > span.last.firstlevel