Skip to content

Commit e6aa8c7

Browse files
committed
A few small notes.
1 parent 3a5d5d9 commit e6aa8c7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ To run e2e tests:
120120

121121
1. navigate to `/test/e2e` and run `npm install`
122122
1. from the root directory, run `mix test.e2e` - (THIS WILL WIPE YOUR LOCAL DB AND RESET IT)
123+
1. If this command fails, you can run `mix ecto.reset && mix phx.server`, again, this will WIPE YOUR LOCAL DB AND RESET IT.
123124
1. in a new terminal, navigate to `/test/e2e` and run `npm run test:ui`
124125

125126
### Troubleshooting E2E tests
126127

127128
Sometimes e2e tests will fail due to network calls that are actually being made. For example, calling Google Maps to fetch addresses when creating a campaign.
128129

129-
130130
Often, the best thing you can do is re-run the failed individual tests and see if they pass. If not, you may need to go and tweak the delays of certain statements in the test, for example:
131131

132132
```js

test/e2e/all.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test.describe('Login and Logout', () => {
4040
test.describe('Programs', () => {
4141

4242

43-
// TODO: something about this is failing on a fresh db.
43+
// NOTE: something about this is sometimes fails on a fresh db.
4444
test('Can create and edit program', async ({ page }) => {
4545
await doLogin(page) // only needs to run once per describe block
4646
await page.goto('http://localhost:4000/programs');

0 commit comments

Comments
 (0)