Commit numbers - Check that commit numbers are lower than in d.o.
Links: Number - Link should go to commit
Links: username - Link should go to profile
Links project name (full project) - Link should go to profile
Links: project name (sandbox) - Link should go to project node
Links: file name - Link should go to file repo viewer
Links: diff - Link should go to diff from previous version

Comments

pradeeprkara’s picture

Issue tags: +sprint 3

tagging for sprint 3

kssundar’s picture

Assigned: Unassigned » kssundar

Taking 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.

kssundar’s picture

Status: Active » Needs review

Actually need some clarification for the above points.

eliza411’s picture

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.
[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.

kssundar’s picture

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

Cannot 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?

senpai’s picture

Assigned: kssundar » sdboyer

Assigning 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?

kssundar’s picture

Assigned: sdboyer » kssundar
StatusFileSize
new4.86 KB

Assuming

Links: Number - Link should go to commit

to be the 'date' link, the feature has been created and attached is the patch for the same. Please review and share your thoughts.

kssundar’s picture

StatusFileSize
new5.33 KB

Attached is the updated patch. Removed print statement and added a new case.

NOTE: This feature requires a user to be logged in. Change the username in the feature file before running.

eliza411’s picture

Status: Needs review » Needs work

Please review the Given/When/Then structures in the .feature file
http://drupal.org/node/1578324#important

kssundar’s picture

Status: Needs work » Needs review
StatusFileSize
new6.1 KB

Attached is the updated patch with some improvements to the step definition.

All scenarios will pass if the authenticated user has made some commits.

eliza411’s picture

Assigned: kssundar » eliza411
Status: Needs review » Needs work

The 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.

kssundar’s picture

Yes, 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.

kssundar’s picture

Title: User commits » User commits (user_commitlog.feature)

Changing title to include feature file name.

pradeeprkara’s picture

Issue tags: +sprint 4

tagging for sprint 4

kssundar’s picture

Should we postpone this until #1742962: [meta] Create data for tests is fixed ?

eliza411’s picture

Status: Needs work » Postponed

Yes, i think postponing this is appropriate. Marking as such.

eliza411’s picture

Assigned: eliza411 » Unassigned

Unassigning. Still postponed afaik.

eliza411’s picture

Status: Postponed » Needs work

Since we're going to be creating data in background steps, this can probably be revisited now.

kssundar’s picture

Assigned: Unassigned » kssundar
Issue tags: +sprint 6

tagging

kssundar’s picture

Issue tags: -sprint 6 +sprint 7

re-tagging

kssundar’s picture

Assigned: kssundar » eliza411
Status: Needs work » Needs review

Updated feature to create data and then test over the same. Committed here - http://drupalcode.org/project/doobie.git/commit/c8681dd

kssundar’s picture

eliza411’s picture

Assigned: eliza411 » Unassigned
Status: Needs review » Needs work

This 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 repository

And then combining the scenario with the one which follows, since it contains only the "then" section anyway.

eliza411’s picture

Issue tags: +dependent scenarios

tagging

eliza411’s picture

Also throwing fatal errors:

  Background:                          # features/project/user_commitlog.feature:6
    Given I am logged in as "git user" # FeatureContext::iAmLoggedInAs()
    And I follow "Your Dashboard"      # FeatureContext::clickLink()
    And I follow "Your Commits"        # FeatureContext::clickLink()

  @gitrepo
  Scenario: Git User creates a project                             # features/project/user_commitlog.feature:12
    Given I am at "/node/add/project-project"                      # FeatureContext::iAmAt()
    And I create a "module"                                        # FeatureContext::iCreateA()
PHP Fatal error:  Call to a member function getAttribute() on a non-object in /home/melissa/doobie/features/bootstrap/FeatureContext.php on line 351
kssundar’s picture

Issue tags: +sprint 8

Lets discuss about "dependent scenarios" if we get time after the demo today

kssundar’s picture

Assigned: Unassigned » eliza411
Status: Needs work » Needs review

Feature updated and committed here - http://drupalcode.org/project/doobie.git/commit/85319d7

eliza411’s picture

Component: Feature/Scenarios » Step definitions

Great. 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

eliza411’s picture

Assigned: eliza411 » Unassigned

Unassigning

jhedstrom’s picture

Status: Needs review » Reviewed & tested by the community

#1781464: Return exception if access is denied or page is not found was committed. These tests look good and are passing.

eliza411’s picture

Status: Reviewed & tested by the community » Fixed

merged into master

eliza411’s picture

Component: Step definitions » Failing test
Status: Fixed » Needs work

This 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:13

kssundar’s picture

Assigned: Unassigned » kssundar
Status: Needs work » Needs review

Could not replicate issue. It passed consistently for me. Even ran it immediately after clearing cache, and it passed without any timeout or errors.

eliza411’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +retest after next build

This 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.

kssundar’s picture

Version: » 7.x-1.x-dev
Component: Failing test » Test needs update
Status: Reviewed & tested by the community » Patch (to be ported)
Issue tags: +sprint 18

Need 7.x update

kssundar’s picture

Status: Patch (to be ported) » Needs review
eliza411’s picture

Status: Needs review » Reviewed & tested by the community

We've done as much as we can with this until D7 Drupal.org is ready for feedback.

eliza411’s picture

Status: Reviewed & tested by the community » Closed (fixed)