# From anywherepage.find('.dashboard_root_link a').click# to a root actionpage.find('[data-model=blog~post] a').click# to any model index# From any collection actionpage.find('.new_collection_link a').click# to another collection action# From any member actionpage.find('.edit_member_link a').click# to another member action# From the dashboardpage.find('.blog_post_links .index_collection_link a').click# to any collection action# From the index page of a modelpage.find('.blog_post_row[1] .show_member_link a').click# to any row's member action
Assert the content
expect(page.find('#blog_post_title')).tohave_content'Blog Post Title'# of an edit/new form inputexpect(page.find('.blog_post_row[1] .title_field').tohave_content'Blog Post Title'# of an index table row cellexpect(page.find('.alert')).tohave_content'Post successfully created'# of a flash message