@@ -0,0 +1,2412 @@
+from pytest import fixture%0A%0Afrom .shared import wait%0Afrom .shared import get_listing_create_form%0Afrom .test_proposal import proposal%0A%0A%0Adef show_proposal_comments(proposal):%0A    proposal.find_by_css('a').first.click()%0A    proposal.find_by_css('button').last.click()%0A%0A%0Adef create(listing, content):%0A    %22%22%22Create a new Comment.%22%22%22%0A    form = get_listing_create_form(listing)%0A    form.find_by_css('textarea').first.fill(content)%0A    form.find_by_css('input%5Btype=%22submit%22%5D').first.click()%0A%0A%0Adef edit(comment, content):%0A    comment.find_by_css('a')%5B-2%5D.click()%0A    comment.find_by_css('textarea').first.fill(content)%0A    comment.find_by_css('a')%5B-3%5D.click()%0A    wait(lambda: len(comment.find_by_css('a')) == 2)%0A%0A%0A@fixture%0Adef comment(browser, server_sample, proposal):%0A    show_proposal_comments(proposal)%0A    column = '.moving-column-content2'%0A    listing = browser.browser.find_by_css(column + ' .listing').first%0A    create(listing, 'comment1')%0A%0A    browser.browser.is_element_present_by_css(column + ' .listing-element')%0A    element = listing.find_by_css('.listing-element')%0A    wait(lambda: element.text)%0A%0A    return element%0A%0A%0Adef test_create(browser, proposal):%0A    show_proposal_comments(proposal)%0A    column = '.moving-column-content2'%0A    listing = browser.browser.find_by_css(column + ' .listing').first%0A%0A    create(listing, 'somecomment')%0A%0A    assert browser.browser.is_element_present_by_css(%0A        column + ' .listing-element')%0A    element = listing.find_by_css('.listing-element')%0A    assert wait(lambda: element.text)%0A%0A    assert element.find_by_css('.comment-content').text == 'somecomment'%0A%0A%0Adef test_reply(browser, comment):%0A    column = '.moving-column-content2'%0A    listing = comment.find_by_css('.listing').first%0A    create(listing, 'somereply')%0A%0A    assert browser.browser.is_element_present_by_css(%0A        column + ' .listing-element .listing-element')%0A    element = listing.find_by_css('.listing-element')%0A    assert wait(lambda: element.text)%0A%0A    assert element.find_by_css('.comment-content').text == 'somereply'%0A%0A%0Adef test_edit(browser, comment):%0A    edit(comment, 'edited')%0A    assert comment.find_by_css('.comment-content').text == 'edited'%0A%0A    browser.reload()%0A%0A    proposal = browser.find_by_css('.listing-element')%0A    show_proposal_comments(proposal)%0A    assert len(browser.find_by_css('.comment-content')) == 1%0A    assert browser.find_by_css('.comment-content').text == 'edited'%0A

add acceptance test