lnug / speakers

Open an issue to submit a talk
https://github.com/lnug/speakers
44 stars 7 forks source link

End-to-end testing Single Page Apps and APIs with Cucumber.js & Puppeteer #125

Closed paulbjensen closed 6 years ago

paulbjensen commented 6 years ago

Developing web applications as separate front end and back end parts is a common practice, but brings with it the challenge of how to test those parts together in an end-to-end fashion.

In this talk, I will show you a strategy for being able to test your web application with Cucumber.js and Puppeteer, a library for running Google Chrome in headless mode. We'll also explore how to handle things like seeding the database for the API before running tests, how to select elements in the DOM via Cucumber step definitions, and how to do this in a nice fashion using Node 8's async/await feature.

My name is Paul Jensen, I'm the author of Manning's Cross Platform Desktop Applications, and I'm the Lead Innovation Engineer at Starcount. My twitter handle is paulbjensen.

admataz commented 6 years ago

Hi @paulbjensen - great to have you back - and thanks for the talk proposal. I've always liked Cucumber, for getting clarity on features. I think it will be great to hear your approach here... and particularly how node developers can use cucumber.js - will you cover anything on best approaches/options for setting up test-runners? I used cucumber with webdriver.io on a job - would be interested to hear how you set things up too.

You know the drill because you've done this before, but members have asked us to formalise the agreement with speakers a little:

So just checking:

@lnug/organisers - any thoughts/seconders on this proposal?

Dates: We are working out our upcoming schedules for 2018 - I can guarantee an available slots April 25th, May 23rd and June 27th - and possibly February 28th and March 28th (I'm needing to confirm some details)

Any preferences - considering your other talk proposal too - may be good to spread them out?

jkbits1 commented 6 years ago

@admataz @paulbjensen I've used a different setup for functional testing recently, so very interested to see how these choices compare. Seconded 👍 😄

paulbjensen commented 6 years ago

Hi,

Thanks. I agree to the talk length and the code of conduct. I will make sure to cover the bits about Cucumber practices and options (e.g. how to DRY to steps in Cucumber files), and cover how to use alternative options to Puppeteer (for testing browsers other than Chrome).

As for schedule, I'm flexible to slot options.

admataz commented 6 years ago

Thanks @paulbjensen - I've put you in for April 25th - I hope that still suits?

paulbjensen commented 6 years ago

That’s fine by me.

On 18 Jan 2018, at 16:48, Adam Davis notifications@github.com wrote:

Thanks @paulbjensen https://github.com/paulbjensen - I've put you in for April 25th - I hope that still suits?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lnug/speakers/issues/125#issuecomment-358707428, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAPAAyZT3xASN4uexYROTuTdaU8tFGZks5tL3XWgaJpZM4RUkNV.

admataz commented 6 years ago

Hi @paulbjensen

Just confirming you're all good for Wednesday?

Note we are not at Makers this month!!

The venue is: Conde Nast Adelphi Building, 1-10 John Adam St Level 9 · London The nearest Tube stations are Embankment and Charing Cross

I will be there from about 6pm to get things set up - your name will be at security. If you arrive before me please ask for Michelle Garret.

See you there!

paulbjensen commented 6 years ago

yes

On 23 Apr 2018, at 21:25, Adam Davis notifications@github.com wrote:

Hi @paulbjensen https://github.com/paulbjensen Just confirming you're all good for Wednesday?

Note we are not at Makers this month!!

The venue is: Conde Nast Adelphi Building, 1-10 John Adam St Level 9 · London The nearest Tube stations are Embankment and Charing Cross

I will be there from about 6pm to get things set up - your name will be at security. If you arrive before me please ask for Michelle Garret.

See you there!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lnug/speakers/issues/125#issuecomment-383711034, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAPAGOlIZ_1dio18Gn2Yi1mgFqcnApGks5trjjUgaJpZM4RUkNV.

admataz commented 6 years ago

Hi @paulbjensen - thanks again for your talk last week - lots of good feedback. I hope you had a good evening. Please let me know if you have any feedback from the speaker perspective...

I've just uploaded the videos from the night - you can find them here: https://www.youtube.com/playlist?list=PLam_80-FY3vTu3eOUOavEepvDLHVAy_sZ

paulbjensen commented 6 years ago

Thanks @admataz, yeah it was a great night, I look forward to the next one.

On that note, I see there's only 1 talk lined up so far for this month's event. Is there another talk on the cards that's not in this repo?

admataz commented 6 years ago

Hi @paulbjensen - yes - there is still a slot available - I'm putting out word

paulbjensen commented 6 years ago

Cool.

If no one else comes up with a proposal in time, I am willing to provide a backup proposal to potentially fill that slot.

admataz commented 6 years ago

thanks - that would be awesome

paulbjensen commented 6 years ago

Cool. I will drum up some proposals. If they're good and no one comes forward with a proposal for this month, we can slot one in.

paulbjensen commented 6 years ago

Added a proposal https://github.com/lnug/speakers/issues/137