Sha256: 35e45d77b8ec633b3ebed3a12e42624c786ae70d0f6976509edeacc8eaa18fd6
Contents?: true
Size: 721 Bytes
Versions: 30
Compression:
Stored size: 721 Bytes
Contents
require "rails_helper" describe "the signin process", js: true do init_site it "create new category" do admin_sign_in visit "#{cama_root_relative_path}/admin/post_type/2/categories" within("#form-category") do fill_in 'category_name', :with => 'Test cat' fill_in 'category_slug', :with => 'test-cat' end click_button 'Submit' expect(page).to have_css('.alert-success') end it "create edit category" do admin_sign_in visit "#{cama_root_relative_path}/admin/post_type/2/categories/6/edit" within("#form-category") do fill_in 'category_name', :with => 'Test cat update' end click_button 'Submit' expect(page).to have_css('.alert-success') end end
Version data entries
30 entries across 30 versions & 2 rubygems