diff --git a/packages/server/test/support/fixtures/projects/issue-15901/index.html b/packages/driver/cypress/fixtures/utf8-post.html similarity index 100% rename from packages/server/test/support/fixtures/projects/issue-15901/index.html rename to packages/driver/cypress/fixtures/utf8-post.html diff --git a/packages/driver/cypress/integration/commands/net_stubbing_spec.ts b/packages/driver/cypress/integration/commands/net_stubbing_spec.ts index 1103051c6589..ae468225ab53 100644 --- a/packages/driver/cypress/integration/commands/net_stubbing_spec.ts +++ b/packages/driver/cypress/integration/commands/net_stubbing_spec.ts @@ -1316,6 +1316,12 @@ describe('network stubbing', { retries: { runMode: 2, openMode: 0 } }, function .then(() => testDelay()).wait('@get') }) + // @see https://github.com/cypress-io/cypress/issues/15901 + it('can intercept utf-8 request bodies without crashing', function () { + cy.intercept('POST', 'http://localhost:5000/api/sample') + cy.visit('/fixtures/utf8-post.html') + }) + context('request events', function () { context('can end response', () => { for (const eventName of ['before:response', 'response']) { diff --git a/packages/server/test/e2e/7_issue_15901_spec.js b/packages/server/test/e2e/7_issue_15901_spec.js deleted file mode 100644 index 6b24c00cf482..000000000000 --- a/packages/server/test/e2e/7_issue_15901_spec.js +++ /dev/null @@ -1,14 +0,0 @@ -const e2e = require('../support/helpers/e2e').default -const Fixtures = require('../support/helpers/fixtures') - -// https://github.com/cypress-io/cypress/issues/15901 -describe('issue 15901', () => { - e2e.setup() - - it('does not crash', function () { - return e2e.exec(this, { - project: Fixtures.projectPath('issue-15901'), - expectedExitCode: 0, - }) - }) -}) diff --git a/packages/server/test/support/fixtures/projects/issue-15901/cypress.json b/packages/server/test/support/fixtures/projects/issue-15901/cypress.json deleted file mode 100644 index 597a3fdf3e78..000000000000 --- a/packages/server/test/support/fixtures/projects/issue-15901/cypress.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "fixturesFolder": false, - "supportFile": false, - "pluginsFile": false, - "video": false -} diff --git a/packages/server/test/support/fixtures/projects/issue-15901/cypress/integration/spec.js b/packages/server/test/support/fixtures/projects/issue-15901/cypress/integration/spec.js deleted file mode 100644 index c989469df4db..000000000000 --- a/packages/server/test/support/fixtures/projects/issue-15901/cypress/integration/spec.js +++ /dev/null @@ -1,5 +0,0 @@ -// @see https://github.com/cypress-io/cypress/issues/15901 -it('does not crash', () => { - cy.intercept('POST', 'http://localhost:5000/api/sample') - cy.visit('index.html') -})