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
Comment #1
adamdicarlo commentedI 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....
Comment #2
eliza411 commentedI 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
Comment #3
eliza411 commentedWorking on the tests for the scenarios here and planning to write more scenarios, which I'll post as I go.
Comment #4
eliza411 commentedMoving into the sandbox where we're working on views tests.
Comment #5
eliza411 commentedThis has changed a lot and is no longer something I'm working on, so unassigning.
Comment #6
eliza411 commentedReview 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.
Comment #7
eliza411 commentedMarketplace tests are in place.