Sha256: 9afc3d8044ab2aa1d7a0115fcf7388362e5f13fb5d1c0c46ca1d67e1a0085864

Contents?: true

Size: 1.26 KB

Versions: 39

Compression:

Stored size: 1.26 KB

Contents

Feature: 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 'http://localhost:7001/mirage/templates/greeting' with body 'hello' and headers:
      | X-mirage-default | true |
      | X-mirage-method  | POST |
    And I send PUT to 'http://localhost:7001/mirage/templates/leaving' with body 'goodbye'

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

  Scenario: Using the home page to peek at a response
    Given I goto 'http://localhost:7001/mirage'
    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 'http://localhost:7001/mirage/responses/greeting' with request entity
    """
    Yo!
    """
    Given I goto 'http://localhost:7001/mirage'
    When  I click 'track_response_1'
    Then I should see 'Yo!'

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.11 features/server/web_user_interface.feature
mirage-3.0.0.alpha.10 features/server/web_user_interface.feature
mirage-3.0.0.alpha.9 features/server/web_user_interface.feature
mirage-3.0.0.alpha.8 features/server/web_user_interface.feature
mirage-3.0.0.alpha.7 features/server/web_user_interface.feature
mirage-3.0.0.alpha.6 features/server/web_user_interface.feature
mirage-3.0.0.alpha.5 features/server/web_user_interface.feature
mirage-3.0.0.alpha.4 features/server/web_user_interface.feature
mirage-3.0.0.alpha.3 features/server/web_user_interface.feature
mirage-3.0.0.alpha.2 features/server/web_user_interface.feature
mirage-3.0.0.alpha.1 features/server/web_user_interface.feature
mirage-2.4.2 features/server/web_user_interface.feature
mirage-2.4.1 features/server/web_user_interface.feature
mirage-2.4.0 features/server/web_user_interface.feature
mirage-2.3.0 features/server/web_user_interface.feature
mirage-2.2.3 features/server/web_user_interface.feature
mirage-2.2.2 features/server/web_user_interface.feature
mirage-2.1.2 features/server/web_user_interface.feature
mirage-2.0.16 features/server/web_user_interface.feature
mirage-2.0.15 features/server/web_user_interface.feature