Closed (fixed)
Project:
Drupal.org BDD
Version:
7.x-1.x-dev
Component:
Test needs update
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
31 Jul 2012 at 17:24 UTC
Updated:
19 Jul 2013 at 15:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
pradeeprkara commentedtagging for sprint 3
Comment #2
kssundar commentedTaking this up.
Page: http://drupal.org/user/%uid%/track/code
My comments inline:
Commit numbers - Check that commit numbers are lower than in d.o.
[Sundar]: Should we count the total number of commits in this page? Because, the total commits number is not displayed in this page.
Links: Number - Link should go to commit
[Sundar]: Not sure where to look for this. Please provide more information.
Links: username - Link should go to profile
[Sundar]: Clear
Links project name (full project) - Link should go to profile
[Sundar]: I think this should link to the project node and not the user profile. Please clarify.
Links: project name (sandbox) - Link should go to project node
[Sundar]: Clear
Links: file name - Link should go to file repo viewer
[Sundar]: I think this is the 8 character hash. Please clarify.
Links: diff - Link should go to diff from previous version
[Sundar]: No diff links found in commit screens. Discarding this item.
Comment #3
kssundar commentedActually need some clarification for the above points.
Comment #4
eliza411 commentedCommit numbers - Check that commit numbers are lower than in d.o.
[Sundar]: Should we count the total number of commits in this page? Because, the total commits number is not displayed in this page.
[Melissa]: The per-project commit numbers are on the user profile page, not the Your commits tab so this check belongs with that page and not with this issue.
Links: Number - Link should go to commit
[Sundar]: Not sure where to look for this. Please provide more information.
[Melissa]: Date goes to the individual commit record
Links project name (full project) - Link should go to profile
[Sundar]: I think this should link to the project node and not the user profile. Please clarify.
[Melissa]: You're correct, project name should link to project
Links: file name - Link should go to file repo viewer
[Sundar]: I think this is the 8 character hash. Please clarify.
[Melissa]: Correct again
Links: diff - Link should go to diff from previous version
[Sundar]: No diff links found in commit screens. Discarding this item.
[Melissa]: Yep, discard.
Comment #5
kssundar commentedCannot find Number Links on "Your commits" page. Commit Numbers are present in profile page and project page. Also, the numbers are never linked, they are plain text. Am I missing something here?
Comment #6
senpai commentedAssigning to @sdboyer for an answer on what, exactly, "Links: Number - Link should go to commit" means. What's the clickable part, and where does it go?
Comment #7
kssundar commentedAssuming
to be the 'date' link, the feature has been created and attached is the patch for the same. Please review and share your thoughts.
Comment #8
kssundar commentedAttached is the updated patch. Removed print statement and added a new case.
Comment #9
eliza411 commentedPlease review the Given/When/Then structures in the .feature file
http://drupal.org/node/1578324#important
Comment #10
kssundar commentedAttached is the updated patch with some improvements to the step definition.
All scenarios will pass if the authenticated user has made some commits.
Comment #11
eliza411 commentedThe pre-made user used for these tests, site user, should never have any commits as they are set up explicitly *not* to have agreed to the terms of service. It seems like we need to set up a user who has actually made commits in order to validly see that commits are appearing.
I'm assigning this to look into more closely tomorrow.
Comment #12
kssundar commentedYes, when I was testing I used my own login id and wrote those scripts. We can create another user and do some commits as you suggested.
Comment #13
kssundar commentedChanging title to include feature file name.
Comment #14
pradeeprkara commentedtagging for sprint 4
Comment #15
kssundar commentedShould we postpone this until #1742962: [meta] Create data for tests is fixed ?
Comment #16
eliza411 commentedYes, i think postponing this is appropriate. Marking as such.
Comment #17
eliza411 commentedUnassigning. Still postponed afaik.
Comment #18
eliza411 commentedSince we're going to be creating data in background steps, this can probably be revisited now.
Comment #19
kssundar commentedtagging
Comment #20
kssundar commentedre-tagging
Comment #21
kssundar commentedUpdated feature to create data and then test over the same. Committed here - http://drupalcode.org/project/doobie.git/commit/c8681dd
Comment #22
kssundar commentedMissed to commit a function - http://drupalcode.org/project/doobie.git/commit/ae332e1
Comment #23
eliza411 commentedThis is similar to #1706806: Edit profile (SSH keys) (edit_profile_sshkey.feature)
a) data set up should happen in the Given to avoid dependent scenarios
b) each scenario should have one (and only one) for given, when, and then. This can be achieved by rewriting the pushes to be part of the When steps (which they really are)
And I push a commit to the repositoryAnd then combining the scenario with the one which follows, since it contains only the "then" section anyway.
Comment #24
eliza411 commentedtagging
Comment #25
eliza411 commentedAlso throwing fatal errors:
Comment #26
kssundar commentedLets discuss about "dependent scenarios" if we get time after the demo today
Comment #27
kssundar commentedFeature updated and committed here - http://drupalcode.org/project/doobie.git/commit/85319d7
Comment #28
eliza411 commentedGreat. No fatal errors, so this is ready to move forward.
I questioned briefly whether the feature should be an authenticated user or a contributor, but a user should and does still see his or her contributions even if they no longer consent to the terms of service so it seems right as-is.
An aside: I've opened a separate issue in the DrupalExtension for the built-in steps on "I am at/on" and "I visit"; if these a page exist but Drupal denies access, I'd sure appreciate having that information displayed instead of having the subsequent step fail. #1781464: Return exception if access is denied or page is not found
Comment #29
eliza411 commentedUnassigning
Comment #30
jhedstrom#1781464: Return exception if access is denied or page is not found was committed. These tests look good and are passing.
Comment #31
eliza411 commentedmerged into master
Comment #32
eliza411 commentedThis test is failing in the following scenario when run cold and succeeding every time thereafter until some unknown period of time has passed. Sadly, I don't have the error text. This might be a good candidate for the warm up step. I'll try to reproduce the error and we can go from there.
Scenario: Git User creates a project # features/git/user_commitlog.feature:13Comment #33
kssundar commentedCould not replicate issue. It passed consistently for me. Even ran it immediately after clearing cache, and it passed without any timeout or errors.
Comment #34
eliza411 commentedThis failed for sdboyer on the bddtest server, too, so I know something is up. I don't doubt that you can't reproduce because these errors are frustratingly erratic. This is tagged as flaky on the scenario, and I'll leave it that way.
I've tagged it for retest after next build and will be working with it as I work with the other erratic failures, but I think this is bigger than the single issue and possibly not something the test can be adjusted to account for.
Comment #35
kssundar commentedNeed 7.x update
Comment #36
kssundar commentedUpdated in 7.x - http://drupalcode.org/project/doobie.git/commit/b4194e0
Comment #37
eliza411 commentedWe've done as much as we can with this until D7 Drupal.org is ready for feedback.
Comment #38
eliza411 commented