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

It is possible to remove Meta fragments #5

Open
Karttin opened this issue Jun 7, 2016 · 5 comments
Open

It is possible to remove Meta fragments #5

Karttin opened this issue Jun 7, 2016 · 5 comments

Comments

@Karttin
Copy link

Karttin commented Jun 7, 2016

Hi,

Is it possible to remove meta fragments like the grunt ng html snapshot?

https://www.npmjs.com/package/grunt-ng-html-snapshot#optionsremovemetafragment

Regards
Kartt_in

@KrekkieD
Copy link
Owner

KrekkieD commented Jun 7, 2016

Hi,

Trying to understand what you mean exactly.

The link you provided seems to remove (or not remove) the <meta name="fragment"> elements from the captured html I think?

@Karttin
Copy link
Author

Karttin commented Jun 7, 2016

thats right...

I wanted the meta name=fragment to be remove from captured html? I have 2 separate task doing the same task.s...with grunt ng html snapshot and your protractor snapshot, if yours support removing of then i doesnt need the other one.

@KrekkieD
Copy link
Owner

KrekkieD commented Jun 7, 2016

Looks easy enough to implement. I'll give it a go.

@Karttin
Copy link
Author

Karttin commented Jun 7, 2016

Thanks.. it will help us a lot.

@KrekkieD
Copy link
Owner

KrekkieD commented Jun 7, 2016

Published it in version 1.2.0, please let me know if it works for you. Add the config property source.removeMetaFragments and set it to true, see the readme for an example. Default is false.

I had to patch in a breaking protractor change as well (for fetching the browser name) but tried to be backwards compatible, unfortunately right now I don't have the opportunity to confirm if the backwards compatibility is actually working.

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

No branches or pull requests

2 participants