Feature: Use Marketplace Preview to find services
  In order to find a Drupal service provider
  As any user
  I want to filter by various categories to find a provider right for me

  Scenario: Browse to the Marketplace preview page
    Given: I am on the Drupal.org home page
    When: I click on Marketplace
    Then: I should see a link called "Marketplace preview"

  Scenario: See a paged list of unfiltered service providers
    Given: I am on the Marketplace page
    When: I click on Marketplace preview
    Then: I should see a list of unfiltered service providers
    And: I should see lists of categories by which to filter service providers

Comments

adamdicarlo’s picture

I wonder if "As any user" doesn't really make sense for BDD tests? It implies the test should be run over, basically, every combination of roles, right? Is there some standard way for handling this in the implementation? I can't imagine how a "asAnyUser" method could accomplish that iteration....

eliza411’s picture

I think and anonymous connection and a test as an authenticated user with no additional roles would cover "as any user" adequately where Drupal is concerned.

When there are more complex role requirements, I imagine that tables like the ones described at http://docs.behat.org/guides/1.gherkin.html#tables could come in handy. I'm still trying to distinguish between these and Scenario Outlines, so I'm not totally sure how these fit in. I'm mostly struggling with these because I see a lot of procedural examples in the Behat docs that seem, generally speaking, at odds with the best practices described at https://github.com/cucumber/cucumber/wiki/Cucumber-Backgrounder

eliza411’s picture

Component: Feature/Scenarios » Tests
Assigned: Unassigned » eliza411

Working on the tests for the scenarios here and planning to write more scenarios, which I'll post as I go.

eliza411’s picture

Project: Drupal.org BDD » Drupal.org Testing (.phar)
Component: Tests » Code

Moving into the sandbox where we're working on views tests.

eliza411’s picture

Assigned: eliza411 » Unassigned

This has changed a lot and is no longer something I'm working on, so unassigning.

eliza411’s picture

Issue tags: +sprint 1

Review for standards and see if we can't use the generic steps that test the shape of the data returned instead of (or in addition to) specific data.

eliza411’s picture

Status: Active » Fixed

Marketplace tests are in place.

Automatically closed -- issue fixed for 2 weeks with no activity.