Removed flaky visual regression tests
@ -26,7 +26,3 @@
|
|||||||
# Files used and generated by flow
|
# Files used and generated by flow
|
||||||
/lib/declarations
|
/lib/declarations
|
||||||
/tmp
|
/tmp
|
||||||
|
|
||||||
# Files generated by visual tests
|
|
||||||
/gemini-report
|
|
||||||
/tests/visual/data
|
|
||||||
|
0
.githooks/commit-msg/skip.sh
Normal file → Executable file
0
.githooks/post-merge/install.sh
Normal file → Executable file
0
.githooks/pre-commit/branch.sh
Normal file → Executable file
0
.githooks/pre-commit/check.sh
Normal file → Executable file
5
.gitignore
vendored
@ -35,11 +35,6 @@
|
|||||||
# Files generated by flow typechecker
|
# Files generated by flow typechecker
|
||||||
/tmp
|
/tmp
|
||||||
|
|
||||||
# Files generated by visual tests
|
|
||||||
/gemini-report
|
|
||||||
/tests/visual/baseline/local
|
|
||||||
/tests/visual/data
|
|
||||||
|
|
||||||
# Distribution files
|
# Distribution files
|
||||||
/dist
|
/dist
|
||||||
/mkdocs_material.egg-info
|
/mkdocs_material.egg-info
|
||||||
|
@ -50,6 +50,6 @@ install:
|
|||||||
- yarn install --ignore-optional
|
- yarn install --ignore-optional
|
||||||
- pip install --user -r requirements.txt
|
- pip install --user -r requirements.txt
|
||||||
|
|
||||||
# Perform build, tests and release
|
# Perform build and release
|
||||||
script:
|
script:
|
||||||
- yarn run travis
|
- yarn run travis
|
||||||
|
@ -38,9 +38,6 @@ const config = {
|
|||||||
build: "material/assets" /* Target directory for assets */
|
build: "material/assets" /* Target directory for assets */
|
||||||
},
|
},
|
||||||
lib: "lib", /* Libraries and tasks */
|
lib: "lib", /* Libraries and tasks */
|
||||||
tests: {
|
|
||||||
visual: "tests/visual" /* Base directory for visual tests */
|
|
||||||
},
|
|
||||||
views: {
|
views: {
|
||||||
src: "src", /* Source directory for views */
|
src: "src", /* Source directory for views */
|
||||||
build: "material" /* Target directory for views */
|
build: "material" /* Target directory for views */
|
||||||
@ -64,9 +61,6 @@ let args = yargs
|
|||||||
.command("help", chalk.grey("display this message"))
|
.command("help", chalk.grey("display this message"))
|
||||||
.command("lint", chalk.grey("lint sources"))
|
.command("lint", chalk.grey("lint sources"))
|
||||||
.command("start", chalk.grey("start development server"))
|
.command("start", chalk.grey("start development server"))
|
||||||
.command("test:visual:run", chalk.grey("run visual tests"))
|
|
||||||
.command("test:visual:session", chalk.grey("start test server"))
|
|
||||||
.command("test:visual:update", chalk.grey("update reference images"))
|
|
||||||
|
|
||||||
/* Options */
|
/* Options */
|
||||||
.group([
|
.group([
|
||||||
@ -109,19 +103,6 @@ let args = yargs
|
|||||||
global: true
|
global: true
|
||||||
})
|
})
|
||||||
|
|
||||||
/* Test options */
|
|
||||||
.group([
|
|
||||||
"grep", "browser"
|
|
||||||
], chalk.yellow("Test Options:"))
|
|
||||||
.option("grep", {
|
|
||||||
describe: chalk.grey("only execute tests matching a regex"),
|
|
||||||
global: true
|
|
||||||
})
|
|
||||||
.option("browser", {
|
|
||||||
describe: chalk.grey("only execute tests for the given browser"),
|
|
||||||
global: true
|
|
||||||
})
|
|
||||||
|
|
||||||
/* Example commands */
|
/* Example commands */
|
||||||
.example("yarn run build")
|
.example("yarn run build")
|
||||||
.example("yarn run build -- --no-optimize")
|
.example("yarn run build -- --no-optimize")
|
||||||
@ -129,20 +110,6 @@ let args = yargs
|
|||||||
.example("yarn run flow")
|
.example("yarn run flow")
|
||||||
.example("yarn run lint")
|
.example("yarn run lint")
|
||||||
.example("yarn run start")
|
.example("yarn run start")
|
||||||
.example("yarn run test:visual:run")
|
|
||||||
.example("yarn run test:visual:run -- --no-clean")
|
|
||||||
.example("yarn run test:visual:run -- --grep nav")
|
|
||||||
.example("yarn run test:visual:run -- --browser ie11")
|
|
||||||
.example("yarn run test:visual:session")
|
|
||||||
.example("yarn run test:visual:update")
|
|
||||||
|
|
||||||
/* Document Environment variables */
|
|
||||||
.epilogue(
|
|
||||||
`${chalk.yellow("Environment:")}\n` +
|
|
||||||
` SAUCE=${chalk.grey("<true|false)>")}\n` +
|
|
||||||
` SAUCE_USERNAME=${chalk.grey("<username>")}\n` +
|
|
||||||
` SAUCE_ACCESS_KEY=${chalk.grey("<key>")}`
|
|
||||||
)
|
|
||||||
|
|
||||||
/* Apply to process.argv */
|
/* Apply to process.argv */
|
||||||
.argv
|
.argv
|
||||||
@ -391,46 +358,6 @@ gulp.task("mkdocs:clean",
|
|||||||
gulp.task("mkdocs:serve",
|
gulp.task("mkdocs:serve",
|
||||||
load("mkdocs/serve"))
|
load("mkdocs/serve"))
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* Visual tests
|
|
||||||
* ------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Generate visual tests
|
|
||||||
*/
|
|
||||||
gulp.task("tests:visual:generate", [
|
|
||||||
args.clean ? "tests:visual:clean" : false,
|
|
||||||
args.clean ? "assets:build" : false,
|
|
||||||
args.clean ? "views:build" : false
|
|
||||||
].filter(t => t),
|
|
||||||
load("tests/visual/generate"))
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Run visual tests
|
|
||||||
*/
|
|
||||||
gulp.task("tests:visual:run", [
|
|
||||||
"tests:visual:generate"
|
|
||||||
], load("tests/visual/run"))
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Update reference images for visual tests
|
|
||||||
*/
|
|
||||||
gulp.task("tests:visual:update",
|
|
||||||
load("tests/visual/update"))
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Clean files generated by visual tests
|
|
||||||
*/
|
|
||||||
gulp.task("tests:visual:clean",
|
|
||||||
load("tests/visual/clean"))
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Open a SauceConnect session for manual testing
|
|
||||||
*/
|
|
||||||
gulp.task("tests:visual:session", [
|
|
||||||
"tests:visual:generate"
|
|
||||||
], load("tests/visual/session"))
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------------
|
/* ----------------------------------------------------------------------------
|
||||||
* Interface
|
* Interface
|
||||||
* ------------------------------------------------------------------------- */
|
* ------------------------------------------------------------------------- */
|
||||||
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
BIN
gemini-report/images/admonition/#bug/@screen/edge~current.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
gemini-report/images/admonition/#bug/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
gemini-report/images/admonition/#bug/@screen/ie11~current.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
gemini-report/images/admonition/#bug/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 535 B |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 467 B |
After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
BIN
gemini-report/images/admonition/#danger/@screen/edge~current.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
gemini-report/images/admonition/#danger/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
gemini-report/images/admonition/#danger/@screen/ie11~current.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
gemini-report/images/admonition/#danger/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 369 B |
After Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 6.2 KiB |
BIN
gemini-report/images/admonition/#failure/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 1.5 KiB |
BIN
gemini-report/images/admonition/#failure/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 569 B |
After Width: | Height: | Size: 617 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
BIN
gemini-report/images/admonition/#note/@screen/edge~current.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
gemini-report/images/admonition/#note/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
BIN
gemini-report/images/admonition/#note/@screen/ie11~current.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
gemini-report/images/admonition/#note/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 6.6 KiB |
BIN
gemini-report/images/admonition/#success/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 467 B |
BIN
gemini-report/images/admonition/#success/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 6.5 KiB |
BIN
gemini-report/images/admonition/#summary/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 467 B |
BIN
gemini-report/images/admonition/#summary/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
BIN
gemini-report/images/admonition/#tip/@screen/edge~current.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
gemini-report/images/admonition/#tip/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
gemini-report/images/admonition/#tip/@screen/ie11~current.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
gemini-report/images/admonition/#tip/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 531 B |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 6.7 KiB |
BIN
gemini-report/images/admonition/#warning/@screen/edge~diff.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 467 B |
BIN
gemini-report/images/admonition/#warning/@screen/ie11~diff.png
Normal file
After Width: | Height: | Size: 517 B |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |