TestCafe
作業ログ
Getting Startedを参考にしていく
testcafe chrome test1.js
Macの場合画面収録の許可が必要

t.expectを使って実行したら、かわりにselector.existsを使えるというサジェストが出てきた。親切。
You passed a Selector object to 't.expect()'.
If you want to check that a matched element exists, pass the 'selector.exists' value instead.
8 | .typeText('input[name=password]', 'user1password')
9 | // .click(Selector('span').withText('Login'))
10 | .click('.MuiButton-root')
11 |
12 | await t.expect(Selector('h6').innerText).eql('Top')
> 13 | t.click(Selector('div').withText('data: 5')).expect(
14 | Selector('div').withText('hello: 5'),
15 | )
16 |
17 | await t.click('.MuiButton-root').expect(Selector('h6').innerText).eql('Login')
18 |})
React Selectorがある
セレクタまわり
timeoutの指定ができて、結構待ってくれる
解決してない
DevExpress/testcafe-actionを使うとlocalhostにつながってない?
https://github.com/megos/spa-e2e-sandbox/runs/1672566407?check_suite_focus=true