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

chore: add example of puppeteer #265

Merged
merged 1 commit into from
Jan 24, 2018
Merged

chore: add example of puppeteer #265

merged 1 commit into from
Jan 24, 2018

Conversation

JustinBeckwith
Copy link
Contributor

This was super fun! Adds an example of using puppeteer to do automated testing of an OAuth2 workflow with Google Sign in. Addresses #225.

@JustinBeckwith JustinBeckwith requested review from ofrobots and a team January 23, 2018 06:39
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2018
@codecov-io
Copy link

codecov-io commented Jan 23, 2018

Codecov Report

Merging #265 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #265   +/-   ##
=======================================
  Coverage   93.91%   93.91%           
=======================================
  Files          13       13           
  Lines         838      838           
  Branches      182      182           
=======================================
  Hits          787      787           
  Misses         51       51

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29c6963...6ac5d70. Read the comment docs.

@@ -0,0 +1,117 @@
// Copyright 2018, Google, Inc.

This comment was marked as spam.

This comment was marked as spam.


function getAuthenticatedClient() {
let browser = null;
return new Promise((resolve, reject) => {

This comment was marked as spam.

This comment was marked as spam.

.waitForSelector('#password input[type="password"]', { visible: true });
console.log('typing password...');
await page.type('#password input[type="password"]', config.password, {
delay: 100

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants