Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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"]
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
# Freefeed Acceptance Tests

## Run locally
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 work on writing new ones. Change `baseUrl` in `cypress.json` if you want to work with your local dev server.
2. `yarn cypress:run` to run the headless test suite.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В маркдауне пункты в нумерованных списках начинаются с 1.

3. `yarn cypress:open` to open Cypress app and run tests manually or work on writing new ones. Change `baseUrl` in `cypress.json` if you want to work with your local dev server.

## 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

Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/browsing/anonymous.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('Anonymous user can browse', () => {
it('Visits main page and sees a weclome page with a signup link', () => {
it('Visits main page and sees a welcome page with a signup link', () => {
cy.visit('/');

cy.get('header')
Expand Down