Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change localhost port for cypress tests and document how its used #257

Merged
merged 2 commits into from
Sep 30, 2018

Conversation

BrianSipple
Copy link
Contributor

I still want to try and get acceptance tests working with live reloading, but in the meantime, I was able to make a few tweaks to the Cypress configuration and the way we're documenting it.

package.json Show resolved Hide resolved
@@ -7,7 +7,7 @@ describe('Shepherd Acceptance Tests', () => {
beforeEach(() => {
Shepherd = null;

cy.visit('http://localhost:8080/test/dummy/', {
Copy link
Member

Choose a reason for hiding this comment

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

I think we had to manually set this here, rather than using baseURL to make sure that things worked for both the demo app and the test app.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I'm following. Do you mean running the demo app with yarn start? It doesn't seem like that would interfere with cy

Copy link
Member

Choose a reason for hiding this comment

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

There was some reason we needed the full path before. I don't remember why.

Copy link
Member

Choose a reason for hiding this comment

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

I think it was to support the demo app, what we deploy for the demo.

Copy link
Member

Choose a reason for hiding this comment

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

We can merge and see if the demo still looks good

"test:cy:ci": "yarn test:build && start-server-and-test start-test-server http://localhost:8080 cy:run",
"test:cy:watch": "start-server-and-test start-test-server http://localhost:8080 cy:open",
"test:cy:ci": "yarn test:build && start-server-and-test start-test-server http://localhost:9002 cy:run",
"test:cy:watch": "yarn test:build && start-server-and-test start-test-server http://localhost:9002 cy:open",
Copy link
Member

Choose a reason for hiding this comment

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

Do you think if we ran yarn watch here, instead of yarn test:build it would rebuild the assets? I think this was supposed to be live reloading, but not sure how it was supposed to work.

@RobbieTheWagner RobbieTheWagner merged commit 0216334 into master Sep 30, 2018
@RobbieTheWagner RobbieTheWagner deleted the fix-build branch September 30, 2018 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants