diff --git a/.eslintrc.js b/.eslintrc.js index 72a2859..f7fefa4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { { files: [ './.eslintrc.js', + './.percy.js', './.prettierrc.js', './.stylelintrc.js', './.template-lintrc.js', diff --git a/.percy.js b/.percy.js index da8df7c..dec6f6e 100644 --- a/.percy.js +++ b/.percy.js @@ -1,25 +1,22 @@ module.exports = { version: 2, snapshot: { - widths: [ - 375, - 1280 - ], + widths: [375, 1280], minHeight: 1024, percyCSS: '', - disableShadowDOM: false + disableShadowDOM: false, }, discovery: { allowedHostnames: [], disallowedHostnames: [], - networkIdleTimeout: 100 + networkIdleTimeout: 100, }, upload: { files: '**/*.{png,jpg,jpeg}', ignore: '', - stripExtensions: false - } -} + stripExtensions: false, + }, +}; diff --git a/tests/acceptance/visual-test.ts b/tests/acceptance/visual-test.ts index be5107d..a284438 100644 --- a/tests/acceptance/visual-test.ts +++ b/tests/acceptance/visual-test.ts @@ -13,20 +13,6 @@ module('Acceptance | visual', function (hooks) { mockFontManager(this.owner); }); - // const testIdx = 38; - // test(`visual test #${testIdx + 1}`, async function (assert) { - // const settings = new TextMakerSettings(testsSettings[testIdx]); - // const settingsQP = settings.serialize(); - // // Load test settings through QP - // await visit(`/en-us/generator?modelSettings=${settingsQP}`); - - // await percySnapshot(`visual test #${testIdx + 1}`); - // assert.true(true); - // await new Promise(function (resolve) { - // setTimeout(resolve, 5000); - // }); - // }); - for (let testIdx = 0; testIdx < testsSettings.length; testIdx++) { test(`visual test #${testIdx + 1}`, async function (assert) { const settings = new TextMakerSettings(testsSettings[testIdx]);