This commit is contained in:
2025-11-07 13:34:32 -08:00
commit 1e8c5a972b
436 changed files with 11000 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
require "application_system_test_case"
class EditPageTest < ApplicationSystemTestCase
setup do
sign_in "kevin@37signals.com"
end
test "edit page" do
visit edit_book_page_url(books(:handbook), leaves(:welcome_page))
assert_selector "house-md"
fill_house_editor "page[body]", with: "Welcome to the handbook! This is the **first** page."
click_button "Save"
assert_selector ".house-md-content", text: "Welcome to the handbook! This is the **first** page."
assert_selector ".house-md-content strong", text: "first"
end
end