-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display typescript sourcemaps, display docsUrl conditionally (#7301)
- Loading branch information
1 parent
6960f7c
commit 3558479
Showing
7 changed files
with
127 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...es/server/test/support/fixtures/projects/e2e/cypress/integration/various_failures_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* This tests various failure scenarios where an error and code frame is displayed | ||
* It does this by having a test fail and then a subsequent test run that | ||
* tests the appearance of the command log | ||
* Because of this, the test order is important | ||
* There should be the same number of failing tests as there are passing | ||
* tests, because each failure has a verification test (e.g. 11 fail, 11 pass) | ||
*/ | ||
|
||
// simple example of typescript types | ||
type Foo = { | ||
something: string | ||
} | ||
|
||
import { fail, setup, verify } from '../support/util' | ||
|
||
setup({ verifyStackLineIsSpecFile: true }) | ||
|
||
context('validation errors', function () { | ||
describe('from cypress with docsUrl', function () { | ||
beforeEach(() => { | ||
Cypress.config('isInteractive', true) | ||
}) | ||
|
||
fail(this, () => { | ||
cy.viewport() | ||
}) | ||
|
||
verify(this, { | ||
line: 26, // this only has 1 test, so we can be specific | ||
column: 10, | ||
verifyDocsLearnMore: 'https://on.cypress.io/viewport', | ||
message: 'can only accept a string preset or', | ||
stack: ['throwErrBadArgs', 'From Your Spec Code:'], | ||
}) | ||
}) | ||
|
||
describe('from cypress without docsUrl', function () { | ||
beforeEach(() => { | ||
Cypress.config('isInteractive', false) | ||
}) | ||
|
||
fail(this, () => { | ||
cy.viewport() | ||
}) | ||
|
||
verify(this, { | ||
line: 44, // this only has 1 test, so we can be specific | ||
column: 10, | ||
verifyDocsContent: 'https://on.cypress.io/viewport', | ||
message: 'can only accept a string preset or', | ||
stack: ['throwErrBadArgs', 'From Your Spec Code:'], | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3558479
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.3558479
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppVeyor has built the
win32 x64
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.Instructions are included below, depending on the shell you are using.
In Command Prompt (
cmd.exe
):In PowerShell:
In Git Bash:
Using
cross-env
:If the above commands do not work for you, you can also try using
cross-env
:3558479
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.