Sha256: d0f1ea1a1619d64914c4f0f7ec442c5fa76ff0e1484fc4bdc136429b15eb9e14

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

Feature: Web interface
  Mirage's home page allows you to see what response are currently being hosted.
  From this page you can:
  - Peek at a responses content
  - Track the response to see if a request has been made to it

#TODO tests needed for displaying pattern and delay values and http method

  Background: There are already a couple of responses hosted on he Mirage server
    Given I send PUT to '/templates/greeting' with body 'hello' and headers:
      | X-mirage-default | true |
      | X-mirage-method  | POST |
    And I send PUT to '/templates/leaving' with body 'goodbye'

  Scenario: Using the home page to see what response are being hosted
    Given I goto ''
    Then I should see 'greeting/*'
    Then I should see 'leaving'

  Scenario: Using the home page to peek at a response
    Given I goto ''
    When  I click 'peek_response_1'
    Then I should see 'hello'

  Scenario: Using the home page to track if a request has been made
    Given I send POST to '/responses/greeting' with request entity
    """
    Yo!
    """
    Given I goto ''
    When  I click 'track_response_1'
    Then I should see 'Yo!'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.17 features/web_user_interface.feature
mirage-3.0.0.alpha.16 features/web_user_interface.feature
mirage-3.0.0.alpha.15 features/web_user_interface.feature
mirage-3.0.0.alpha.14 features/web_user_interface.feature
mirage-3.0.0.alpha.13 features/web_user_interface.feature
mirage-3.0.0.alpha.12 features/web_user_interface.feature