Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley committed Mar 27, 2024
1 parent c67f9c8 commit 360fc83
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,31 +87,37 @@ for example:
0004_data_20200501_1345
```

### Running BDD tests
## Running BDD tests

## Run BDD front end from host machine
### Run BDD front end from host machine

Make sure you are running the chrome container:

```bash
docker compose up -d chrome
```

And you have built the frontend assets:

```bash
npm run bdd
```

## SSH into web container
### SSH into web container

```bash
docker compose exec web bash
```

## Run BDD tests
### Run BDD tests

```bash
python manage.py behave --settings=config.settings.bdd
```

## Notes

In order to get the node docker container working, this guide was followed: https://jdlm.info/articles/2019/09/06/lessons-building-node-app-docker.html

## Managing user permissions
### Managing user permissions

4 management commands have been added to make dealing with user cost centre easier:

Expand Down
1 change: 0 additions & 1 deletion features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def before_feature(context, feature):
# NOTE: This has not been tested recently and might need changing to work.
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
options.add_argument("--disable-dev-shm-usage")
context.browser = webdriver.Chrome(options=options)

context.browser.implicitly_wait(5)
Expand Down

0 comments on commit 360fc83

Please sign in to comment.