grainger-illinois / CTCast

Apache License 2.0
0 stars 0 forks source link

Create Playwright test case to check if Link Encoder is properly working #31

Closed romerorisa closed 1 year ago

angrave commented 1 year ago

github action build fails on macos- 2022-10-28T19:24:40.8256870Z 1) basic_tests.spec.ts:157:1 › Sends Text Correctly ============================================== 2022-10-28T19:24:40.8257530Z 2022-10-28T19:24:40.8258970Z Test timeout of 30000ms exceeded. 2022-10-28T19:24:40.8260080Z 2022-10-28T19:24:40.8260980Z locator.click: Timeout 30000ms exceeded. 2022-10-28T19:24:40.8262540Z =========================== logs =========================== 2022-10-28T19:24:40.8263550Z waiting for selector "button:has-text("Submit")" 2022-10-28T19:24:40.8265030Z selector resolved to visible <button tabindex="0" type="submit" id="zoompost" class="…>… 2022-10-28T19:24:40.8266250Z attempting click action 2022-10-28T19:24:40.8267520Z waiting for element to be visible, enabled and stable 2022-10-28T19:24:40.8268670Z element is visible, enabled and stable 2022-10-28T19:24:40.8269480Z scrolling into view if needed 2022-10-28T19:24:40.8270650Z done scrolling 2022-10-28T19:24:40.8271410Z performing click action 2022-10-28T19:24:40.8273480Z ============================================================ 2022-10-28T19:24:40.8314630Z 2022-10-28T19:24:40.8314830Z 176 | expect(s2).toBe("hello") 2022-10-28T19:24:40.8315690Z 177 | const r = window.locator('button:has-text("Submit")') 2022-10-28T19:24:40.8316460Z > 178 | await r.click() 2022-10-28T19:24:40.8318130Z | ^ 2022-10-28T19:24:40.8318910Z 179 | //await (window.waitForTimeout(2000)) 2022-10-28T19:24:40.8319780Z 180 | //console.log('done') 2022-10-28T19:24:40.8320560Z 181 |

romerorisa commented 1 year ago

I think this is a common issue that I faced when I was implementing the initial Playwright test case. Consider looking more into the Electron Playwright Helpers, which uses the .exe of the app instead of using the electron app itself. https://github.com/spaceagetv/electron-playwright-helpers

angrave commented 1 year ago

Ooops I posted the above build log in the wrong issue.

romerorisa commented 1 year ago

Closing this to open a new one