merged/spec/features/merged/page_spec.rb

24 lines
474 B
Ruby
Raw Normal View History

require 'rails_helper'
RSpec.feature "Pages", type: :feature do
describe "GET /pages" do
it "returns http success" do
visit "/merged/pages"
expect(page).to have_title("Dummy")
expect(page).to have_text("Pages")
end
2022-12-16 15:50:56 +01:00
it "has an index page" do
visit "/merged/pages"
click_on ("index")
end
2022-12-16 15:50:56 +01:00
it "edit page works " do
visit "/merged/pages"
within("#index") do
click_on ("Edit")
end
end
end
end