AngularCommunity / angular-missions

Platform to plan missions inside the angular community
MIT License
28 stars 1 forks source link

📅 Chat: Creating Harnesses (Feb24th, 7pm UTC 2021) #5

Open willi84 opened 3 years ago

willi84 commented 3 years ago

Using harnesses is straightforward, creating them is hard. See issue feat(@angular/cdk/testing): Component Harness Feedback · Issue #20871 · angular/components Host: Younes Jaaidi

February 24th, 2021, 7PM UTC

(Younes: can that be a wednesday? I initially suggested the 25th but the 24th works better for me)

Invitees

Event: https://calendar.google.com/event?action=TEMPLATE&tmeid=NjBjNnRybnNqamRvdTM0YTRvdjI5ODk5bjkgYjRvamFhajlib2E4Y2tkZWp1ZXBzbzI0NGdAZw&tmsrc=b4ojaaj9boa8ckdejuepso244g%40group.calendar.google.com

yjaaidi commented 3 years ago

Thanks Robert for regrouping all of this here. Let's go for Feb 24th 7pm UTC

yjaaidi commented 3 years ago

@mmalerba would you like to join?

willi84 commented 3 years ago

if I have time, sure. can you give me ur email to share the appointment with u?

mmalerba commented 3 years ago

sure, I'd be interested: mmalerba@google.com

willi84 commented 3 years ago

gosh. sorry for the invitation problem, but google is duplicating my appointments :-/

julianobrasil commented 3 years ago

Hey, I'd like to attend to this one too: juliano.brasil@gmail.com

signuspl commented 3 years ago

I am interested: signus.pl@gmail.com

yjaaidi commented 3 years ago

Here is the link to the related issue https://github.com/angular/components/issues/20871

Splaktar commented 3 years ago

Meeting Notes

Splaktar commented 3 years ago

From Lars:

Reproducing ZURB Foundation's own tests for the Tabs component with component harnesses.

Unit tests

End-to-end tests:

Page object with harness:

e2e test with harness but no page object

LayZeeDK commented 3 years ago

Support for waitForTasksOutsideAngular in ProtractorHarnessEnvironment is work in progress: https://github.com/angular/components/pull/20351

LayZeeDK commented 3 years ago

@mmalerba here's the repo where I experienced flakiness when using the Angular Material Select component as mentioned in Create a component harness for your tests with Angular CDK > Slight differences.

Custom component harness: https://github.com/LayZeeDK/ngx-component-harnesses/blob/master/src/app/favorite-ocean-creature/favorite-ocean-creature.harness.ts

Unit test suite: https://github.com/LayZeeDK/ngx-component-harnesses/blob/master/src/app/favorite-ocean-creature/favorite-ocean-creature.spec.ts

End-to-end test suite: https://github.com/LayZeeDK/ngx-component-harnesses/blob/master/e2e/src/app.e2e-spec.ts

For the end-to-end tests, the BrowserAnimationsModule is used since it's testing an actual application. Approximately every other test run, I would experience a timing issue where the end-to-end tests would fail, probably when waiting for the dropdown appearance animation to finish. This repo is using Angular Material and CDK 9.0, so I'm not sure whether it's still an issue.

praveeno commented 3 years ago

how can i join these calls, calender link is blank for me

yjaaidi commented 3 years ago

Hi @praveeno, you can just post your email here or DM me on Twitter and https://twitter.com/yjaaidi/status/1364895370107637765 we'll add you to the next session.

yjaaidi commented 3 years ago

Here comes a new version of cypress-harness that allows harness reuse & chaining. This solves the following issues: ✅ fixes: trying to figure out a better, more simple API with less boilerplate ✅ fixes: there are also some challenges with inferring the return type of methods. Could be caused by intersection.

cypress-harness-code