Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Capybara Test Helper - Snippet for Sublime Text
# frozen_string_literal: true
class $1TestHelper < CapybaraTestHelper
# Selectors: Semantic aliases for elements, a very useful abstraction.
# Getters: A convenient way to get related data or nested elements.
# Actions: Encapsulate complex actions to provide a cleaner interface.
# Assertions: Allow to check on element properties while keeping it DRY.
# Background: Helpers to add/modify/delete data in the database or session.
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.