Skip to content

Commit

Permalink
NS-48 Fix port issue. Remove cypress examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mbielech committed Nov 4, 2020
1 parent 5465fd1 commit cf302d3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.idea/*
*/cypress.env.json
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ yarn-debug.log*
yarn-error.log*
.vscode
.env
cypress.env.json
Empty file added frontend/cypress.env.json
Empty file.
4 changes: 3 additions & 1 deletion frontend/cypress.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"baseUrl": "https://localhost:3000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

context("Example", () => {
beforeEach(() => {
cy.visit("localhost:3002");
cy.visit(`${Cypress.env("baseUrl")}`);
});

describe("File button", () => {
Expand Down
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint \"src/**/*.ts*\""
"lint": "eslint \"src/**/*.ts*\"",
"cypress:open": "cypress open"
},
"devDependencies": {
"@types/react": "^16.9.46",
Expand Down

0 comments on commit cf302d3

Please sign in to comment.