404 - Not Found
See original GitHub issueCurrent behavior:
When I execute cypress open
and run my spec, I get
Sorry, we could not load:
/
404 - Not Found
However, in the command line the same test works
I was restructuring my tests but before the restructuring I recall this working
Cypress Version on my mac
Cypress package version: 3.2.0
Cypress binary version: 3.2.0
Cypress version inside my docker container
Cypress package version: 3.2.0
Cypress binary version: 3.2.0
My structure now looks like
βββ cypress
βΒ Β βββ README.md
βΒ Β βββ cypress.json
βΒ Β βββ cypress.schema.json
βΒ Β βββ examples
βΒ Β βΒ Β βββ integration
βΒ Β βΒ Β βββ examples
βΒ Β βΒ Β βββ actions.spec.js
βΒ Β βΒ Β βββ aliasing.spec.js
βΒ Β βΒ Β βββ assertions.spec.js
βΒ Β βΒ Β βββ connectors.spec.js
βΒ Β βΒ Β βββ cookies.spec.js
βΒ Β βΒ Β βββ cypress_api.spec.js
βΒ Β βΒ Β βββ files.spec.js
βΒ Β βΒ Β βββ local_storage.spec.js
βΒ Β βΒ Β βββ location.spec.js
βΒ Β βΒ Β βββ misc.spec.js
βΒ Β βΒ Β βββ navigation.spec.js
βΒ Β βΒ Β βββ network_requests.spec.js
βΒ Β βΒ Β βββ querying.spec.js
βΒ Β βΒ Β βββ spies_stubs_clocks.spec.js
βΒ Β βΒ Β βββ traversal.spec.js
βΒ Β βΒ Β βββ utilities.spec.js
βΒ Β βΒ Β βββ viewport.spec.js
βΒ Β βΒ Β βββ waiting.spec.js
βΒ Β βΒ Β βββ window.spec.js
βΒ Β βββ fixtures
βΒ Β βΒ Β βββ example.json
βΒ Β βββ integration
βΒ Β βΒ Β βββ project-name
βΒ Β βΒ Β βββ cart
βΒ Β βΒ Β βΒ Β βββ gift_card.spec.js
βΒ Β βΒ Β βΒ Β βββ index.spec.js
βΒ Β βΒ Β βΒ Β βββ remove_item.spec.js
βΒ Β βΒ Β βΒ Β βββ update_qty.spec.js
βΒ Β βΒ Β βΒ Β βββ voucher.spec.js
βΒ Β βΒ Β βββ catalogsearch
βΒ Β βΒ Β βΒ Β βββ search.spec.js
βΒ Β βΒ Β βββ category
βΒ Β βΒ Β βΒ Β βββ filter.spec.js
βΒ Β βΒ Β βΒ Β βββ view.spec.js
βΒ Β βΒ Β βββ checkout
βΒ Β βΒ Β βΒ Β βββ index.spec.js
βΒ Β βΒ Β βΒ Β βββ place_order.spec.js
βΒ Β βΒ Β βΒ Β βββ select_payment_method.spec.js
βΒ Β βΒ Β βΒ Β βββ select_shipping_method.spec.js
βΒ Β βΒ Β βββ customer
βΒ Β βΒ Β βΒ Β βββ account
βΒ Β βΒ Β βΒ Β βββ login.spec.js
βΒ Β βΒ Β βΒ Β βββ register.spec.js
βΒ Β βΒ Β βΒ Β βββ summitclub
βΒ Β βΒ Β βββ homepage
βΒ Β βΒ Β βΒ Β βββ index.spec.js
βΒ Β βΒ Β βββ product
βΒ Β βΒ Β βββ view.spec.js
βΒ Β βββ node_modules
βΒ Β βΒ Β βββ xvfb
βΒ Β βΒ Β βββ LICENSE
βΒ Β βΒ Β βββ README.md
βΒ Β βΒ Β βββ index.js
βΒ Β βΒ Β βββ package.json
βΒ Β βββ package-lock.json
βΒ Β βββ plugins
βΒ Β βΒ Β βββ index.js
βΒ Β βββ screenshots
βΒ Β βββ support
βΒ Β βΒ Β βββ commands.js
βΒ Β βΒ Β βββ index.d.ts
βΒ Β βΒ Β βββ index.js
βΒ Β βββ tsconfig.json
βΒ Β βββ videos
βΒ Β βββ project-name
βΒ Β βββ homepage
βΒ Β βββ index.spec.js.mp4
βββ cypress.json
βββ docker-compose.yml
My test looks like
/// <reference types="Cypress" />
// print out env
Cypress.env()
// start the test
describe('homepage', () => {
beforeEach('', () => {
cy.visit('/')
})
// check for the header
it('has header', () => {
cy.contains('header', 'Shop')
})
// check for store selector
// it('', () => {
//
// })
// check for ...
});
My cypress.json looks like
{
"baseUrl": "https://www.domain.com/",
"fixturesFolder": "fixtures",
"integrationFolder": "integration",
"screenshotsFolder": "screenshots",
"videosFolder": "videos",
"pluginsFile": "plugins/index.js",
"supportFile": "support/index.js",
"env": {}
}
Desired behavior:
My test should run as expected
Steps to reproduce: (app code and test code)
Execute cypress open
Run test
I run a mac
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Error 404 not found - What does it mean & how to fix it!
Something along the lines of '404 Not Found'. A 404 error is the standardized HTTP status code. The message is sent from the...
Read more >404 Page Not Found Error: What It Is and How to Fix It
A 404 error is an HTTP status code that means that the page you were trying to reach on a website couldn't be...
Read more >HTTP 404 - Wikipedia
In computer network communications, the HTTP 404, 404 not found, 404, 404 error, page not found or file not found error message is...
Read more >Error 404: 4 Ways to Fix It
404 not found is a HTTP status code error that indicates the specific page you are trying to visit is non-existent. Usually, it...
Read more >What Does Error 404 Not Found Mean?
A 404 error is when a website's server can't find the page you're trying to access via a hyperlink or typing a URL...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can always see the actual resolved configuration in the Settings panel of the Test Runner. The labels are listed in order of priority (ones lower in list take precedent over higher ones) https://on.cypress.io/configuration#Resolved-Configuration
Had a similar issue with 404 and not found with a server using github actions to test; however, I had no endpoint on β/β of the server so cypress was failing. Once I added an endpoint on β/β of the server GitHub Actions worked seamlessly. Here is the pull request I was having issues with.