ministryofjustice/prison-visits

View on GitHub
smoke_test/steps/check_your_request_page.rb

Summary

Maintainability
A
0 mins
Test Coverage
module SmokeTest
  module Steps
    class CheckYourRequestPage < BaseStep
      PAGE_PATH = '/visit'

      def validate!
        if page.current_path != PAGE_PATH
          fail "expected #{PAGE_PATH}, got #{page.current_path}"
        end
      end

      def complete_step
        click_button 'Send request'
      end
    end
  end
end