Sha256: b71b60959cfab5381d822b6f5d92354c5be1eb54108a8af2e7791990512d02bf
Contents?: true
Size: 1.01 KB
Versions: 8
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require "spec_helper" describe "Edit a page", type: :feature do include_context "feature admin" let(:feature) { create(:feature, manifest_name: "pages", participatory_process: participatory_process) } let(:manifest_name) { "pages" } describe "admin page" do before do create(:page, feature: feature, body: body) visit_feature_admin end let(:body) do { "en" => "<p>Content</p>", "ca" => "<p>Contingut</p>", "es" => "<p>Contenido</p>" } end it "updates the page" do new_body = { en: "<p>New body</p>", ca: "<p>Nou cos</p>", es: "<p>Nuevo cuerpo</p>" } within "form.edit_page" do fill_in_i18n_editor(:page_body, "#page-body-tabs", new_body) find("*[type=submit]").click end within ".callout-wrapper" do expect(page).to have_content("successfully") end visit_feature expect(page).to have_content("New body") end end end
Version data entries
8 entries across 8 versions & 1 rubygems