-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request testcafe-community#27 from testcafe-community/next
Tag v1.2.6 to `@latest`
- Loading branch information
Showing
34 changed files
with
60,864 additions
and
27,287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ node_modules | |
coverage | ||
dist | ||
yarn.lock | ||
|
||
__cache__ |
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 was deleted.
Oops, something went wrong.
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,29 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module", | ||
"project": "tsconfig.eslint.json" | ||
}, | ||
"extends": "plugin:@typescript-eslint/recommended", | ||
"plugins": ["@typescript-eslint"] | ||
}, | ||
{ | ||
"files": ["*.test.{ts,js}"], | ||
"extends": ["plugin:testcafe-community/recommended"], | ||
"plugins": ["testcafe-community"] | ||
} | ||
], | ||
"rules": {} | ||
} |
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,17 @@ | ||
# Example Package | ||
|
||
This folder is a barebones webpage that has TestCafe journey tests for | ||
validation. This package represents the ESLint configuration | ||
[.eslintrc.json](./.eslintrc.json) needed to import the | ||
`eslint-plugin-testcafe-community` plugin and evaluate a file. | ||
|
||
The journey test is expected to have at least one example of all invalid | ||
configurations to exemplify how the `testcafe-community` plugin will identify | ||
the poor programming patterns in TestCafe test suites. | ||
|
||
## Integration | ||
|
||
See [`example.serial-test.ts`](../tests/example.serial-test.ts) for the higher | ||
level integration test which relies upon this example package configuration. The | ||
`jest` test runner will evaluate the validity of the testcafe-community plugin's | ||
integration with ESLint and its effectiveness. |
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,20 @@ | ||
|
||
import path from "path"; | ||
import { ClientFunction, Selector } from "testcafe"; | ||
|
||
const getBrowserURL = ClientFunction(() => document.location.href); | ||
|
||
fixture("MyHTMLPage") | ||
.page(`file://${path.join(__dirname, "src", "index.html")}`); | ||
|
||
// Lint Error: noOnly, noIdenticalTitle | ||
test.only("Page loads and displays hello world", async (t: TestController) => { | ||
await t.expect(getBrowserURL()).match(/file:\/\/.+\/src\/index.html/); | ||
await t.expect(Selector("p").withText("Hello World")).ok(); | ||
}); | ||
|
||
// Lint Error: noSkip, noIdenticalTitle, expectExpect | ||
test.skip("Page loads and displays hello world", async (t: TestController) => { | ||
// Lint Error: noDebug | ||
t.debug() | ||
}) |
Empty file.
Oops, something went wrong.