Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cucumber feature for taking screenshots of important pages #3797

Merged
merged 1 commit into from
Dec 17, 2012

Conversation

Raven24
Copy link
Member

@Raven24 Raven24 commented Dec 10, 2012

dunno, if we even want this in the current form,
but for now at least it's something to think about.

The idea is: we keep 'reference screenshots' and cucumber scenarios to generate them.
everytime a bigger stylesheet change is made, we can generate 'comparison screenshots' and see, if anything changed, that wasn't supposed to.

... not sure we want to keep the reference images in git, though?

@jhass
Copy link
Member

jhass commented Dec 10, 2012

+1 for pulling such a functionality in, -1 on having the images in git.

Lets just write a workflow to use this, like, make your changes, checkout develop, generate images, checkout your branch generate images, compare.

@screenshot_path.mkpath unless @screenshot_path.exist?
end

def take_screenshot(name, path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd prefer to specify here if a reference or comparison screenshot is taken, the current behaviour, although it's the DRYer approach, is a bit too much, "you have to know how it works" for my personal taste since ensure_screenshot_location sounds like ensure_screenshot_location_exists to me and less like a setter to me. This does resemble in the actual feature, if you ignore the scenario description, the difference between the two seems totally opaque to me. Maybe incorporate it into the name, so the names would be like reference/stream and current/activity etc.

@jhass
Copy link
Member

jhass commented Dec 10, 2012

Maybe also add a rake task to generate the actual diffs? :)

@Raven24
Copy link
Member Author

Raven24 commented Dec 17, 2012

ok, I updated the PR.
also:
first draft of a wiki page describing the usage

@jhass
Copy link
Member

jhass commented Dec 17, 2012

Amazing, I'd call it good to go, just an advertisement in the changelog would be nice IMO :)

- for before/after comparisons,
including rake tasks for easily generating the images from command line
jhass added a commit that referenced this pull request Dec 17, 2012
add cucumber feature for taking screenshots of important pages
@jhass jhass merged commit 760ff95 into diaspora:develop Dec 17, 2012
@Raven24 Raven24 deleted the screenshots branch December 19, 2012 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants