feat: init playwright#44
Conversation
Features
Continuous Integration
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
✅ Deploy Preview for builder69 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
anttibull
left a comment
There was a problem hiding this comment.
думаю краще перейментувати комміт і pr в test/playwright
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| /test-results/ |
There was a problem hiding this comment.
| /test-results/ | |
| /test-results/ |
| "version": "0.1.0", | ||
| "private": false, | ||
| "dependencies": { | ||
| "@playwright/test": "^1.22.2", |
There was a problem hiding this comment.
думаю це в дев депенденсі краще буде
| @@ -0,0 +1,12 @@ | |||
| import { test, expect } from "@playwright/test"; | |||
|
|
|||
There was a problem hiding this comment.
я би це обернув в describe, також треба додати тайтл до теста, test нічого не описує що тест робить
| await expect(page.locator("text=Learn React")).toHaveAttribute( | ||
| "href", | ||
| "https://reactjs.org" | ||
| ); |
There was a problem hiding this comment.
я би ще додав тест щоб перевірити що лінка правильна і кнопка робоча, при переході ми попадаємо в доку
There was a problem hiding this comment.
трошки не розумію, що означає лінка правильна
Типу зробити перевірку, що:
- кнопка не disabled
- при кліку ми переходимо на нову сторінку з url ="https://reactjs.org"?
There was a problem hiding this comment.
я трохи незрозуміло написав: при кліку ми переходимо на нову сторінку з url ="https://reactjs.org/"? цього вистачить, так як якшо ми попадемо на https://reactjs.org/, то кнопка вже enabled і лінка значить правильна
| @@ -0,0 +1,22 @@ | |||
| name: Playwright Tests | |||
There was a problem hiding this comment.
в принципі цей файл можеш видалить, так як цей конфіг треба буде рефакторить і зараз він не працює
db559a9 to
c662380
Compare
* feat: init playwright * ci(playwright): add running e2e tests * ci: add wait netlify gh action Co-authored-by: parovozik <[email protected]>
69eeb9f to
2a13895
Compare
No description provided.