Skip to content

add picture matestack core component #305

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

Merged
merged 1 commit into from
Nov 29, 2019
Merged

add picture matestack core component #305

merged 1 commit into from
Nov 29, 2019

Conversation

marcoroth
Copy link
Collaborator

Closes #206

Issue #206: picture component

Add HTML <picture> tag to core components

Changes

  • Add picture component
  • Add specs
  • Add docs

@marcoroth marcoroth marked this pull request as ready for review November 22, 2019 13:06
Copy link
Collaborator

@bdlb77 bdlb77 left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment on lines +29 to +33
<picture id="my-id" class="my-class"></picture>
HTML

expect(stripped(static_output)).to include(stripped(expected_static_output))
expect(page).to have_xpath("//img[contains(@src,'matestack-logo')]")
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this part work? It's defining and expecting an img-xpath but there's none in the static output?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It should work. The expect on line 33 checks the tag defined on line 16-18.
I couldn't add the expected tag to the expected_static_output variable because the img component generates a different path for the logo on each run.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, thanks a lot for quick clarification mate!

@pascalwengerter pascalwengerter merged commit 59c38cb into matestack:develop Nov 29, 2019
@marcoroth marcoroth deleted the picture_tag branch November 29, 2019 20:44
@jonasjabari jonasjabari added this to the 0.7.4 milestone Feb 10, 2020
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