diff --git a/source/api/cypress-api/browser.md b/source/api/cypress-api/browser.md index 14af0a3618..0f4cdde617 100644 --- a/source/api/cypress-api/browser.md +++ b/source/api/cypress-api/browser.md @@ -55,11 +55,11 @@ it('has correct Chrome specific css property', function () { }) ``` -### Screenshot only in headless environment +### Screenshot only in headless browser ```javascript Cypress.Commands.overwrite('screenshot', (originalFn, subject, name, options) => { - // only take screenshots in headless environment + // only take screenshots in headless browser if (Cypress.browser.isHeadless) { // return the original screenshot function return originalFn(subject, name, options) @@ -68,7 +68,7 @@ Cypress.Commands.overwrite('screenshot', (originalFn, subject, name, options) => return cy.log('No screenshot taken when headed') }) -// only takes in headless environment +// only takes in headless browser cy.screenshot() ``` diff --git a/source/guides/guides/continuous-integration.md b/source/guides/guides/continuous-integration.md index a7811ce701..a2d794a8c6 100644 --- a/source/guides/guides/continuous-integration.md +++ b/source/guides/guides/continuous-integration.md @@ -615,7 +615,7 @@ Second, set the X11 address in an environment variable export DISPLAY=:99 ``` -Start headless Cypress as usual +Start Cypress as usual ```shell npx cypress run diff --git a/source/guides/references/best-practices.md b/source/guides/references/best-practices.md index d18dd30f81..180997947e 100644 --- a/source/guides/references/best-practices.md +++ b/source/guides/references/best-practices.md @@ -541,7 +541,7 @@ cy.get('table tr').should('have.length', 2) {% endnote %} {% note success %} -{% fa fa-check-circle green %} **Best Practice:** Start a web server prior to running Cypress in the Test Runner or headless mode. +{% fa fa-check-circle green %} **Best Practice:** Start a web server prior to running Cypress. {% endnote %} We do NOT recommend trying to start your back end web server from within Cypress.