Closed (fixed)
Project:
Drupal.org BDD
Version:
7.x-1.x-dev
Component:
Broken site
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
31 Oct 2012 at 13:13 UTC
Updated:
18 Jul 2013 at 02:04 UTC
I moved what used to be casestudy.feature into 2 files:
casestudies_featured.feature and casestudies_community.feature. They are just about navigating around section. Renamed casestudy -> casestudies to be consistent with the tags.
http://drupalcode.org/project/doobie.git/commit/114e554
casestudies_community.feature seems ok.
casestudies_featured.feature needs some edits:
1. "Scenario: View case study page"
needs to check that 8 case studies are present on the page
2. "Scenario Outline: Navigate into featured showcase categories"
needs to check that at least 1 case study is present on the page
Comments
Comment #1
tvn commentedComment #2
kssundar commentedThis is done - http://drupalcode.org/project/doobie.git/commit/f8c2031
Comment #3
tvn commentedThanks. Both files look good to me.
Comment #4
tvn commentedAdjusting title.
Comment #5
kssundar commentedNeeds 7.x update
Comment #6
kssundar commentedPorted to 7.x
casestudies_community.feature - http://drupalcode.org/project/doobie.git/commit/b6e92c7
casestudies_featured.feature - http://drupalcode.org/project/doobie.git/commit/5547726
Comment #7
eliza411 commented@ksbalajisundar, In your opinion, should we be using the sprintf format for exceptions in this project as well as the DrupalExtension, or is the format here consistent?
Comment #8
kssundar commentedI see that most of the exceptions are in the format
throw new Exception("The link '" . $link . "' was not found on the region '" . $region . "'");. Trying to change it to sprintf would be a huge task. As it is consistent here, I prefer not to touch the current format.If a major cleanup task is taken up in future, then it can be changed to sprintf.
Comment #9
eliza411 commentedPerfect. I just wanted to be sure we'd made an explicit decision, and we have, and I can document that.
Comment #10
eliza411 commentedTest appears to be failing properly and the best it can be until D7 Drupal.org is ready for feedback.
Comment #11
eliza411 commentedSorry ... one thing I did see that could be improved here:
The step When I click on a case study image is confusing because that function appears to just click the first link in a case study and doesn't check at all if that is an image or not.
It seems like we could just remove the word image from the step and it would better describe what's happening. We're catching broken site behavior with the tests they way they are now. It *is* important to verify the images are appearing, but that seems like it should be a test of its own.
Comment #12
kssundar commentedUpdated accordingly - http://drupalcode.org/project/doobie.git/commit/43f7721
Comment #13
eliza411 commentedPerfect, thank you! I think this is as ready as we can get it until the D7 version of Drupal.org is ready for feedback.
Comment #14
eliza411 commentedComment #14.0
eliza411 commented.