wix-incubator / protractor-browser-logs Goto Github PK
View Code? Open in Web Editor NEWProvides tools for asserting browser logs inside protractor tests
License: MIT License
Provides tools for asserting browser logs inside protractor tests
License: MIT License
Use the same requirements as the protractor has, because it's a protractor enhancement tool
If multiple warning or severe level messages appear over the browser console, logs.verify() returns only last/latest message. It would be great if you extend the function to return all warning and severe level messages instead of returning only one message.
(I will do it)
As a user it is not clear which are the differencies with protractor-console-plugin.
In particular it should be great if the documentation could explain:
please allow us to define our own test-fail method to overwrite the following snippet:
throw new Error('UNEXPECTED MESSAGE: ' + JSON.stringify({
level: actual.level.name,
message: actual.message
}));
Your library is being tested during development of an app that I'm working on. Due to the license missing, it is unclear how people can use the software.
Can you select a license and add it to the project?
I can't use the version 1.0.10 for the foreseable future as we have our whole infrastructure on 0.12. There's no old version available.
I'm submitting a patch, if it could be integrated in a off-numbered version it'd be great, until we move on to node 4/5.
It seems like this thing eats up my console.log/console.warn etc
I would have preferred seeing all those logs as I do using the protractor-console plugin. Currently I have to comment out protractor-browser-logs to be able to debug using console.log
From what I see browser.manage().logs().get('browser') is "eating" up the logs so when protractor-browser-logs fires before protractor-console then there's nothing to log anymore.
We have a need to capture all browser console logs for each test scenario. However, due to the design of console logs in the driver, when they are read, they are no longer available on follow-on reads. So, using protractor-browser-logs and having the need to log all console logs causes an issue. However, it is easy to fix.
I recommend exposing the logs() function to the constructor function. This will allow me to accomplish both tasks and may be helpful to others with similar constraints. If team is happy with this idea, I can put together a PR for the fix.
It seems that this package could be refactored, so it would work with either protractor or a console
streams (stdout
or stderr
).
That way it could work also with Node/enzyme component tests.
It could be a separate open-source project.
I've seen test-console
, but is does not offer assertion utils.
Any thoughts before I give it a try?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.