microsoft / fluentui-contrib

Monorepo for contributor extension packages to Fluent UI
MIT License
31 stars 35 forks source link

chore(react-tree-grid): adds playwright component tests #100

Closed bsunderhus closed 8 months ago

bsunderhus commented 9 months ago
  1. adds playwright component test configuration
  2. adds playwright test for TreeGrid keyboard/click behaviours
Hotell commented 9 months ago

once this lands to main https://github.com/microsoft/fluentui-contrib/pull/102

Hotell commented 9 months ago

we need to discuss file name patterns, because with current setup if project would use jest and pw component test, the only distinction ATM is .test vs .spec but jest actually invokes also .spec which would explode.

with cypress we use *.cy.* suffix, maybe we can do similar for playwright, something like .pw.tsx etc

bsunderhus commented 9 months ago

once this lands to main #102

  • re-generate pw config

@Hotell,

Trying to follow up on this, I'm getting some errors while trying to test locally

image

I went to main branch and regenerated the playwright configuration and a spec test, and this happens whenever I try to run component-test

Hotell commented 9 months ago

ups, while in rush I created invalid options generation dictionary

fix https://github.com/microsoft/fluentui-contrib/pull/116