Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Feature/protractor #518

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
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
34 changes: 10 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,38 +153,24 @@ If manual deployment is needed, use the following. Only do this on the develop b

The featured post is managed in the ButterCMS portal. To make a post featured, it must be given a tag of 'featured'. The actual featured post will be the most recently published post with the featured tag. Currently, this post will also appear in the regular list of posts.

## Cypress Integration
## Protractor Testing

This project uses Cypress for front end testing.
This project uses Protractor for front end testing.
It is neccesary to install protractor for tests.

It is neccesary to install Cypress for test writing
```
npm install cypress --save-dev
npm install protractor
```
This will install Cypress locally as a dev dependency

### Opening Cypress
### Run Test

To launch Cypress Test Runner, the next command is needed
```
npx cypress open
```
### Github Integration

Cypress provides a Dashboard, it is neccesary for the integration.

1.- Go to organization switcher and choose your organization.

2.- Click on the project you wish to integrate
Protractor uses a command for test running. It is neccesary to have a file with all the specs for test running. The file is called conf.js

3.- Go to project settings

4.- Click install Cypress Github app

5.- Select repositary you wish to integrate

6.- Done
To run a test the next command is needed.

```
protractor protractor/conf.js
```

## Deployment
```
Expand Down
31 changes: 0 additions & 31 deletions cypress/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/cypress.json

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/fixtures/example.json

This file was deleted.

5 changes: 0 additions & 5 deletions cypress/fixtures/profile.json

This file was deleted.

Binary file removed cypress/fixtures/test_resume.pdf
Binary file not shown.
232 changes: 0 additions & 232 deletions cypress/fixtures/users.json

This file was deleted.

Loading