Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.gitignore
Dockerfile
README.md
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
.DS_Store
screenshots
cypress/fixtures/*
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM cypress/included:6.4.0
ADD ./ /app/
WORKDIR /app
RUN npm update caniuse-lite browserslist
RUN yarn
ENTRYPOINT ["cypress"]
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
# Freefeed Acceptance Tests

1. `yarn` to install Cypress (https://cypress.io).
1. `yarn cypress:run` to run the headless test suite.
1. `yarn cypress:open` to open Cypress app and run tests manually or write new ones.
## Run locally

- `yarn` to install Cypress (https://cypress.io).

- `yarn cypress:run` to run the headless test suite.

- `yarn cypress:open` to open Cypress app and run tests manually or write new ones.

Note: by default the tests are running against your local [development server](https://github.com/FreeFeed/freefeed-server), so it should be installed and running when your run the test suite. You can change the target server by modifying `"baseUrl"`, `"backendUrl"` and `"authTokenLocalStorageName"` in `./cypress.json` config file.

## Run in docker


```bash

docker build -t tests:local .

docker run tests:local run

```
Mount subfolder from current folder for screenshots

```bash

docker run -v ${PWD}/screenshots:/app/cypress/screenshots tests:local run

```

### Useful links

- https://docs.cypress.io/guides/getting-started/writing-your-first-test.html
Expand Down