diff --git a/.github/workflows/playwright_pre.yml b/.github/workflows/playwright_pre.yml index 8f87be24..fd91a1b4 100644 --- a/.github/workflows/playwright_pre.yml +++ b/.github/workflows/playwright_pre.yml @@ -1,7 +1,7 @@ name: Penpot Regression Tests on PRE env on: schedule: ## run tests each Thursday at 6:00am UTC - - cron: '00 6 * * 4' + - cron: '00 6 * * 1-5' workflow_dispatch: jobs: @@ -23,6 +23,7 @@ jobs: BASE_URL: ${{ secrets.BASE_URL }} LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }} LOGIN_PWD: ${{ secrets.LOGIN_PWD }} + GITHUB_RUN_ID: ${{ github.run.id }} run: npx playwright test --project=chrome -gv 'PERF' - name: Upload Playwright Report uses: actions/upload-artifact@v3 @@ -31,3 +32,10 @@ jobs: name: playwright-report-chromium path: playwright-report/ retention-days: 30 + - name: Send mattermost Message + env: + CHANNEL_ID: ${{ secrets.CHANNEL_ID }} + LOGIN_ID_MATTERMOST: ${{ secrets.LOGIN_ID_MATTERMOST }} + PASSWORD_MATTERMOST: ${{ secrets.PASSWORD_MATTERMOST }} + if: always() + run: npx ts-node -e "require('./helpers/mattermost.helper.js').sendMessage()" diff --git a/helpers/mattermost.helper.js b/helpers/mattermost.helper.js new file mode 100644 index 00000000..87c2ba6e --- /dev/null +++ b/helpers/mattermost.helper.js @@ -0,0 +1,88 @@ +const axios = require('axios'); +const { readResultsFromFile } = require('./saveTestResults'); +// const fs = require('fs') +// const FormData = require('form-data'); + + +const baseUrl = 'https://chat.kaleidos.net/api/v4'; +const channel_id = `${process.env.CHANNEL_ID}`; + + async function getToken() { + const url = `${baseUrl}/users/login`; + const requestBody = {"login_id":`${process.env.LOGIN_ID_MATTERMOST}`,"password":`${process.env.PASSWORD_MATTERMOST}`}; + + try { + const response = await axios.post(url, requestBody, { + headers: { 'Content-Type': 'application/json' } + }); + return response.headers['token']; + } catch (error) { + console.error('Error:', error); + return null; + } + } + +// async function uploadFile() { +// const url = `${baseUrl}/files`; +// +// const token = await getToken(); +// +// const fileBuffer = fs.readFileSync('playwright-report.zip'); +// const filename = 'playwright-report.zip'; +// +// +// +// const formData = new FormData(); +// formData.append('channel_id', channel_id); +// formData.append('files', fileBuffer, { filename }); +// +// +// try { +// const response = await axios.post(url, formData, { +// headers: { +// 'Content-Type': 'multipart/form-data', +// Authorization: `Bearer ${token}`, +// }, +// }); +// +// console.log('Ответ сервера:', response.data); +// return response.data; +// } catch (error) { +// console.error('Ошибка загрузки файла:', error); +// return null; +// } +// } + +async function sendMessage() { + const url = `${baseUrl}/posts`; + const token = await getToken(); + + // await uploadFile() + function roundNumber(num) { + return Math.round(num * 100) / 100; + } + const results = await readResultsFromFile() + const messageWithLink = + `**Total Tests** : **${results.Passed+results.Failed+results.Flaky}** :person_doing_cartwheel: **Success Percentage:** **${roundNumber(results.PercentPassed)}%** + :white_check_mark: Success: ${results.Passed} + :x: Failure: ${results.Failed} + :ballot_box_with_check: Flaky: ${results.Flaky} + :cat2: GitRun: https://github.com/penpot/penpotqa/actions/runs/${process.env.GITHUB_RUN_ID}`; + const requestBody = { channel_id: channel_id, message: messageWithLink }; + + try { + const response = await axios.post(url, requestBody, { + headers: { + 'Content-Type': 'application/json', + 'Authorization': `Bearer ${token}` + } + }); + + return response.data; + } catch (error) { + console.error('Error:', error); + return null; + } + } + +module.exports = { sendMessage }; diff --git a/helpers/saveTestResults.js b/helpers/saveTestResults.js new file mode 100644 index 00000000..621e33c8 --- /dev/null +++ b/helpers/saveTestResults.js @@ -0,0 +1,55 @@ +const fs = require('fs'); + +async function readResultsFromFile() { + try { + return JSON.parse(fs.readFileSync('testResults.json', 'utf8')); + } catch (error) { + console.error('Error reading JSON file:', error); + return null; + } +} + +async function updateTestResults(result, retryCount) { + if (!fs.existsSync('testResults.json')) { + const initialResults = { Passed: 0, Failed: 0, Flaky: 0, PercentPassed: 0 }; + try { + fs.writeFileSync('testResults.json', JSON.stringify(initialResults, null, 2)); + console.log('Test results file created:', initialResults); + } catch (err) { + console.error('Error creating testResults.json:', err); + return; + } + } + + let testResults; + try { + const data = fs.readFileSync('testResults.json', 'utf8'); + testResults = JSON.parse(data); + } catch (err) { + console.error('Error reading testResults.json:', err); + return; + } + + if (result === 'passed') { + testResults.Passed++; + } else if (result === 'failed' && retryCount === 2) { + testResults.Failed++; + } else if (result === 'flaky') { + testResults.Flaky++; + } + + const totalTests = testResults.Passed + testResults.Failed + testResults.PercentPassed = (testResults.Passed / totalTests) * 100; + + + try { + fs.writeFileSync('testResults.json', JSON.stringify(testResults, null, 2)); + console.log('Test results updated:', testResults); + } catch (err) { + console.error('Error writing testResults.json:', err); + } +} + +module.exports = { readResultsFromFile, updateTestResults}; + + diff --git a/package-lock.json b/package-lock.json index 76896748..4d7ed7e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,13 +9,50 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "prettier": "^3.0.1" + "axios": "^1.6.8", + "cheerio": "^1.0.0-rc.12", + "fs": "^0.0.1-security", + "prettier": "^3.0.1", + "ts-node": "^10.9.2" }, "devDependencies": { "@playwright/test": "^1.40.0", "dotenv": "^16.3.1" } }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@playwright/test": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.40.0.tgz", @@ -31,6 +68,224 @@ "node": ">=16" } }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==" + }, + "node_modules/@types/node": { + "version": "20.11.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz", + "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", + "peer": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + }, + "node_modules/cheerio": { + "version": "1.0.0-rc.12", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", + "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", + "dependencies": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "htmlparser2": "^8.0.1", + "parse5": "^7.0.0", + "parse5-htmlparser2-tree-adapter": "^7.0.0" + }, + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/cheeriojs/cheerio?sponsor=1" + } + }, + "node_modules/cheerio-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", + "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", + "dependencies": { + "boolbase": "^1.0.0", + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" + }, + "node_modules/css-select": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ] + }, + "node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, "node_modules/dotenv": { "version": "16.3.1", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", @@ -43,6 +298,54 @@ "url": "https://github.com/motdotla/dotenv?sponsor=1" } }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, "node_modules/fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", @@ -57,6 +360,82 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/htmlparser2": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "entities": "^4.4.0" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-htmlparser2-tree-adapter": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", + "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", + "dependencies": { + "domhandler": "^5.0.2", + "parse5": "^7.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, "node_modules/playwright": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.40.0.tgz", @@ -100,9 +479,115 @@ "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/typescript": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", + "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "peer": true + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "engines": { + "node": ">=6" + } } }, "dependencies": { + "@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "requires": { + "@jridgewell/trace-mapping": "0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==" + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "@playwright/test": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.40.0.tgz", @@ -112,12 +597,201 @@ "playwright": "1.40.0" } }, + "@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==" + }, + "@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==" + }, + "@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==" + }, + "@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==" + }, + "@types/node": { + "version": "20.11.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz", + "integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==", + "peer": true, + "requires": { + "undici-types": "~5.26.4" + } + }, + "acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==" + }, + "acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==" + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "axios": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "requires": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" + }, + "cheerio": { + "version": "1.0.0-rc.12", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", + "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", + "requires": { + "cheerio-select": "^2.1.0", + "dom-serializer": "^2.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "htmlparser2": "^8.0.1", + "parse5": "^7.0.0", + "parse5-htmlparser2-tree-adapter": "^7.0.0" + } + }, + "cheerio-select": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", + "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", + "requires": { + "boolbase": "^1.0.0", + "css-select": "^5.1.0", + "css-what": "^6.1.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1" + } + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" + }, + "css-select": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", + "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.1.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "nth-check": "^2.0.1" + } + }, + "css-what": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", + "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==" + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" + }, + "dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" + }, + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "requires": { + "domelementtype": "^2.3.0" + } + }, + "domutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", + "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", + "requires": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + } + }, "dotenv": { "version": "16.3.1", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", "dev": true }, + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==" + }, + "follow-redirects": { + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==" + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, "fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", @@ -125,6 +799,60 @@ "dev": true, "optional": true }, + "htmlparser2": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", + "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "requires": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3", + "domutils": "^3.0.1", + "entities": "^4.4.0" + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "requires": { + "boolbase": "^1.0.0" + } + }, + "parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "requires": { + "entities": "^4.4.0" + } + }, + "parse5-htmlparser2-tree-adapter": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", + "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", + "requires": { + "domhandler": "^5.0.2", + "parse5": "^7.0.0" + } + }, "playwright": { "version": "1.40.0", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.40.0.tgz", @@ -145,6 +873,53 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.1.tgz", "integrity": "sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==" + }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "requires": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + } + }, + "typescript": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", + "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "peer": true + }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "peer": true + }, + "v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==" } } } diff --git a/package.json b/package.json index ccff5891..7c32c8cd 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "npx playwright test --project=chrome -gv 'PERF'", - "testLogin": "npx playwright test --project=chrome -gv 'PERF' ./tests/login.spec.js", + "testLogin": "npx playwright test --project=chrome -gv 'PERF' ./tests/panels-features/panels-features-fill.spec.js", "updateSnapshots": "npx playwright test --update-snapshots", "firefox": "npx playwright test --project=firefox -gv 'PERF'", "webkit": "npx playwright test --project=webkit -gv 'PERF'", @@ -29,6 +29,10 @@ "dotenv": "^16.3.1" }, "dependencies": { - "prettier": "^3.0.1" + "axios": "^1.6.8", + "cheerio": "^1.0.0-rc.12", + "fs": "^0.0.1-security", + "prettier": "^3.0.1", + "ts-node": "^10.9.2" } } diff --git a/pages/base-page.js b/pages/base-page.js index 004302d2..1aff4320 100644 --- a/pages/base-page.js +++ b/pages/base-page.js @@ -20,43 +20,56 @@ exports.BasePage = class BasePage { this.copyLayer = page.locator('div[class="viewport"] [id^="shape"]').last(); this.createdBoardTitle = page.locator('g[class="frame-title"] div >> nth=0'); this.deleteLayerMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Delete")', + 'ul[class*="workspace_context_menu"] li:has-text("Delete")', ); this.hideLayerMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Hide")', + 'ul[class*="workspace_context_menu"] li:has-text("Hide")', ); this.showLayerMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Show")', + 'ul[class*="workspace_context_menu"] li:has-text("Show")', ); this.focusOnLayerMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Focus on")', + 'ul[class*="workspace_context_menu"] li:has-text("Focus on")', ); this.transformToPathMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Transform to path")', + 'ul[class*="workspace_context_menu"] li:has-text("Transform to path")', ); this.selectionToBoardMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Selection to board")', - ); - this.createComponentMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Create component")', - ); - this.createMultipleComponentsMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Create multiple components")', + 'ul[class*="workspace_context_menu"] li:has-text("Selection to board")', ); + // this.createComponentMenuItem = page.locator( + // 'ul[class*="workspace_context_menu"] li:has-text("Create component")', + // ); + // this.createMultipleComponentsMenuItem = page.locator( + // 'ul[class*="workspace_context_menu"] li:has-text("Create multiple components")', + // ); this.flipVerticalMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Flip vertical")', + 'ul[class*="workspace_context_menu"] li:has-text("Flip vertical")', ); this.flipHorizontalMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Flip horizontal")', + 'ul[class*="workspace_context_menu"] li:has-text("Flip horizontal")', ); this.editPathMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Edit")', + 'ul[class*="workspace_context_menu"] li:has-text("Edit")', ); this.addFlexLayout = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Add flex layout")', + 'ul[class*="workspace_context_menu"] li:has-text("Add flex layout")', ); this.removeFlexLayout = page.locator( - 'ul[class*="workspace-context-menu"] li:has-text("Remove flex layout")', + 'ul[class*="workspace_context_menu"] li:has-text("Remove flex layout")', + ); + this.addGridLayout = page.locator( + 'ul[class*="workspace_context_menu"] li:has-text("Add grid layout")', + ); + this.removeGridLayout = page.locator( + 'ul[class*="workspace_context_menu"] li:has-text("Remove grid layout")', + ); + this.addRowGridLayoutBtn = page.locator('g[class*="grid-plus-button"]', + ).first(); + this.addColumnGridLayoutBtn = page.locator('g[class*="grid-plus-button"]', + ).last(); + this.removeGridLayout = page.locator( + 'ul[class*="workspace_context_menu"] li:has-text("Remove grid layout")', ); this.deleteLayerMenuOption = page.locator( 'ul[class*="workspace_context_menu"] span:has-text("Delete")', @@ -71,7 +84,7 @@ exports.BasePage = class BasePage { 'ul[class*="workspace_context_menu"] span:has-text("Restore main component")', ); this.createMultipleComponentsMenuItem = page.locator( - 'ul[class*="workspace_context_menu"] span:has-text("Create multiple components")', + 'li[class*="context-menu-item"] span:has-text("Create multiple components")', ); this.showInAssetsPanelOption = page.locator( 'ul[class*="workspace_context_menu"] span:has-text("Show in assets panel")', @@ -154,7 +167,7 @@ exports.BasePage = class BasePage { async refreshPage() { await this.page.reload(); - await this.page.waitForTimeout(2000) + await this.page.waitForTimeout(3000) } async deleteLayerViaRightClick() { @@ -253,6 +266,24 @@ exports.BasePage = class BasePage { await this.createdBoardTitle.click({ button: 'right', force: true }); await this.removeFlexLayout.click(); } + + async addGridLayoutViaRightClick() { + await this.createdBoardTitle.click({ button: 'right', force: true }); + await this.addGridLayout.click(); + } + async removeGridLayoutViaRightClick() { + await this.createdBoardTitle.click({ button: 'right', force: true }); + await this.removeGridLayout.click(); + } + + async addRowGridLayoutBtnClick() { + await this.addRowGridLayoutBtn.click(); + } + + async addColumnGridLayoutBtnClick() { + await this.addColumnGridLayoutBtn.click(); + } + async showMainComponentViaRightClick() { await this.copyLayer.click({ button: 'right', force: true }); await this.showMainComponentOption.click(); diff --git a/pages/dashboard/dashboard-page.js b/pages/dashboard/dashboard-page.js index d95b2a86..f4a90c77 100644 --- a/pages/dashboard/dashboard-page.js +++ b/pages/dashboard/dashboard-page.js @@ -35,7 +35,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { this.addFileAsSharedLibraryButton = page.locator( 'input[value="Add as Shared Library"]', ); - this.sharedLibraryIcon = page.locator('svg[class="icon-library-refactor"]'); + this.sharedLibraryIcon = page.locator('svg[class="icon-library"]'); this.delFileAsSharedLibraryMenuItem = page.locator( 'a[data-test="file-del-shared"]', ); @@ -54,7 +54,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { 'a[data-test="download-standard-file"]', ); this.dashboardSection = page.locator('[class="main_ui_dashboard__dashboard"]'); - this.downloadFileTickIcon = page.locator('svg[class="icon-tick-refactor"]'); + this.downloadFileTickIcon = page.locator('svg[class="icon-tick"]'); this.downloadFileCloseButton = page.locator('input[value="Close"]'); this.fileNameInput = page.locator('div[class*="edit-wrapper"]'); this.fileOptionsMenuButton = page.locator( @@ -115,7 +115,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { 'div[class*="installed-fonts"] div[class*="table-row"] div[class*="dashboard_fonts__variants"]', ); this.fontOptionsMenuButton = page.locator( - 'div[class*="fonts__options"] svg[class="icon-menu-refactor"]', + 'div[class*="fonts__options"] svg[class="icon-menu"]', ); this.editFontMenuItem = page.locator('#font-edit'); this.deleteFontMenuItem = page.locator('#font-delete'); @@ -386,6 +386,13 @@ exports.DashboardPage = class DashboardPage extends BasePage { await this.isHeaderDisplayed(projectName); } + async pinProjectByName(projectName) { + const projectSel = await this.page.locator( + `//*[@title='${projectName}']/../../../div[contains(@class,'projects__grid-container')]/..//button[contains(@class,'main_ui_dashboard_pin_button__button')]`, + ); + await projectSel.click(); + } + async checkNoLibrariesExist() { await expect(this.noLibrariesPlacelder).toContainText( 'Files added to Libraries will appear here.', @@ -535,10 +542,11 @@ exports.DashboardPage = class DashboardPage extends BasePage { async moveFileToOtherTeamViaRightClick(fileName, otherTeamName) { const elem = this.page.locator(`button[title="${fileName}"]`).first(); await elem.click({ button: 'right' }); + await this.page.waitForTimeout(500); await this.moveToFileMenuItem.click(); await this.moveToOtherTeamMenuItem.click(); - await this.page.locator(`li[role="menuitem"] a:has-text("${otherTeamName}")`).click(); - await this.page.locator(`li[role="menuitem"] a:has-text("Drafts")`).click(); + await this.page.locator(`//li[@role="menuitem"]/a[text()="${otherTeamName}"]`).click(); + await this.page.locator(`//li[@role="menuitem"]/a[text()="Drafts"]`).click(); await this.page.locator(`input[value="Move"]`).click(); } diff --git a/pages/dashboard/team-page.js b/pages/dashboard/team-page.js index cdfc6c76..d40a5a4b 100644 --- a/pages/dashboard/team-page.js +++ b/pages/dashboard/team-page.js @@ -19,7 +19,7 @@ exports.TeamPage = class TeamPage extends BasePage { this.teamCurrentNameDiv = page.locator( 'button[class*="current-team"] div[class*="team-name"]', ); - this.teamNameLabel = page.locator('div[class*="team__name"]'); + this.teamNameLabel = page.locator('//div[text()="Team info"]/following-sibling::div[1]'); this.teamOptionsMenuButton = page.locator('button[class*="switch-options"]'); this.deleteTeamMenuItem = page.locator('#teams-options-delete-team'); this.deleteTeamButton = page.locator('input[value="Delete team"]'); @@ -39,9 +39,9 @@ exports.TeamPage = class TeamPage extends BasePage { this.teamFilesSpan = page.locator( `//*[contains(@class,'team__document-icon')]/../span`, ); - this.teamInfoSection = page.locator(`div[class*="info-block"] div[class='main_ui_dashboard_team__block-text']`); - this.teamOwnerSection = page.locator(`//*[contains(@class,'team__group-icon')]/../../../div[2]`); - this.teamStatsSection = page.locator(`//*[contains(@class,'team__group-icon')]/../../../div[3]`); + this.teamInfoSection = page.locator('//div[text()="Team info"]/..'); + this.teamOwnerSection = page.locator('//div[text()="Team members"]/..'); + this.teamStatsSection = page.locator('//div[text()="Team projects"]/..'); //Invitations this.invitationsMenuItem = page.locator('li[data-test="team-invitations"]'); @@ -72,7 +72,7 @@ exports.TeamPage = class TeamPage extends BasePage { ); this.invitationRecordRoleSelector = page.locator('div[class*="team__has-priv"]'); this.invitationRecordStatusCell = page.locator( - 'span[class*="dashboard_team__status"]', + 'div[class*="dashboard_team__field-status"] aside', ); this.invitationRecordOptionsMenuButton = page.locator( 'div[class*="main_ui_dashboard_team__table-field"] button', @@ -87,7 +87,7 @@ exports.TeamPage = class TeamPage extends BasePage { 'aside[class*="warning"] div[class*="context_notification"]', ); this.teamSettingsSection = page.locator('.main_ui_dashboard__dashboard-content'); - this.teamIcon = page.locator(`div[class*='team__icon'] span`); + this.teamIcon = page.locator(`div[class*='team-icon'] img`); } async createTeam(teamName) { @@ -120,7 +120,7 @@ exports.TeamPage = class TeamPage extends BasePage { async deleteTeam(teamName) { await this.openTeamsListIfClosed(); const teamSel = this.page.locator( - `ul[class*="teams-dropdown"] li[class*="team-dropdown-item"] span[title="${teamName}"]`, + `ul[class*="teams-dropdown"] li[role="menuitem"] span[title="${teamName}"]`, ); if (await teamSel.isVisible()) { await teamSel.click(); diff --git a/pages/login-page.js b/pages/login-page.js index 99ddc7e9..05ba21b0 100644 --- a/pages/login-page.js +++ b/pages/login-page.js @@ -14,10 +14,14 @@ exports.LoginPage = class LoginPage extends BasePage { this.loginButton = page.locator('button[data-test="login-submit"]'); this.emailInputError = page.locator('div[data-test="-error"]'); this.section = page.locator('section[class="auth-content"]'); - this.loginErrorBanner = page.locator('div[class="main_ui_auth_login__error-wrapper"] div'); + this.loginErrorBanner = page.locator('aside[class*="context_notification__warning"] div:nth-of-type(2)'); this.createAccountLink = page.locator('a:has-text("Create an account")'); } + async checkLoginError(text) { + return this.page.locator(`//aside[contains(@class,"context_notification__warning")]/div[text()='${text}']`).isVisible() + } + async goto() { await this.page.goto('/#/auth/login'); } @@ -55,7 +59,7 @@ exports.LoginPage = class LoginPage extends BasePage { } async isLoginErrorMessageDisplayed(message) { - await expect(this.loginErrorBanner).toHaveText(message); + await expect(await this.checkLoginError(message)).toBeTruthy; } async clickOnCreateAccount() { @@ -63,6 +67,6 @@ exports.LoginPage = class LoginPage extends BasePage { } async isLoginPageOpened() { - await expect(this.pageTitle).toHaveText('Great to see you again!'); + await expect(this.pageTitle).toHaveText('Log into my account'); } }; diff --git a/pages/workspace/assets-panel-page.js b/pages/workspace/assets-panel-page.js index 510794d7..f197ec6f 100644 --- a/pages/workspace/assets-panel-page.js +++ b/pages/workspace/assets-panel-page.js @@ -103,13 +103,13 @@ exports.AssetsPanelPage = class AssetsPanelPage extends BasePage { this.searchSharedLibrariesClearButton = page.locator('button[class*="search_bar__clear"]'); this.libraryTitle = page.locator('div[class*="special-title"]'); this.libraryComponentsTitle = page.locator( - '//*[@class="icon-component-refactor"]/../../../../../button/div/span' + '//*[@class="icon-component"]/../../../../../button/div/span' ); this.dismissButton = page.locator('button:text-is("Dismiss")'); this.librariesUpdatesTab = page.locator('div[data-id="updates"]'); this.librariesUpdateButton = page.locator('input[value="Update"]'); this.librariesMoreInfoButton = page.locator('input[value="More info"]'); - this.closeModalButton = page.locator('svg[class="icon-close-refactor"]'); + this.closeModalButton = page.locator('svg[class*="close-icon"]'); this.librariesModal = page.locator('div[class*="libraries__modal-dialog"]'); } diff --git a/pages/workspace/color-palette-page.js b/pages/workspace/color-palette-page.js index fb1acc9e..e7cd04c7 100644 --- a/pages/workspace/color-palette-page.js +++ b/pages/workspace/color-palette-page.js @@ -42,8 +42,8 @@ exports.ColorPalettePage = class ColorPalettePage extends BasePage { async clickColorBullet(isFileLibrary = true, value = 0) { const classAttr = isFileLibrary - ? 'color_bullet_new__is-library-color' - : 'color_bullet_new__is-not-library-color'; + ? 'color_bullet__is-library-color' + : 'color_bullet__is-not-library-color'; const selector = this.page.locator( `div[class*="selected-colors"] div[class*="${classAttr}"] >> nth=${value}`, ); diff --git a/pages/workspace/comments-panel-page.js b/pages/workspace/comments-panel-page.js index 7b749d19..ced68228 100644 --- a/pages/workspace/comments-panel-page.js +++ b/pages/workspace/comments-panel-page.js @@ -34,7 +34,7 @@ exports.CommentsPanelPage = class CommentsPanelPage extends BasePage { ); this.commentReplyInput = page.locator('textarea[placeholder="Reply"]'); this.commentOptionsButton = page.locator( - 'div[class*="comments__options"] svg[class="icon-menu-refactor"]', + 'div[class*="comments__options"] svg[class="icon-menu"]', ); this.commentEditOptionMenuItem = page.locator( 'ul[class*="comment-options-dropdown"] li:has-text("Edit")', diff --git a/pages/workspace/design-panel-page.js b/pages/workspace/design-panel-page.js index d00d8bb6..ec9a1109 100644 --- a/pages/workspace/design-panel-page.js +++ b/pages/workspace/design-panel-page.js @@ -19,12 +19,8 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { this.generalCornerRadiusInput = page.locator('div[title="Radius"] input'); this.topLeftCornerRadiusInput = page.locator('div[title="Top left"] input'); this.topRightCornerRadiusInput = page.locator('div[title="Top right"] input'); - this.bottomLeftCornerRadiusInput = page.locator( - 'div[title="Bottom left"] input', - ); - this.bottomRightCornerRadiusInput = page.locator( - 'div[title="Bottom right"] input', - ); + this.bottomLeftCornerRadiusInput = page.locator('div[title="Bottom left"] input'); + this.bottomRightCornerRadiusInput = page.locator('div[title="Bottom right"] input'); this.sizeWidthInput = page.locator('div[title="Width"] input'); this.sizeHeightInput = page.locator('div[title="Height"] input'); this.xAxisInput = page.locator('div[title="X axis"] input'); @@ -32,7 +28,7 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { //Design panel - Fill section this.fillColorIcon = page.locator( - 'div[class*="fill__element-set"] div[class*="color_bullet_new__color-bullet-wrapper"]', + 'div[class*="fill__element-set"] div[class*="color_bullet__color-bullet-wrapper"]', ); this.fillColorComponentIcon = page.locator( 'div[class*="selected-color-group"] span[class*="color-input-wrapper"]', @@ -45,7 +41,7 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { ); this.addFillButton = page.locator('button[class*="fill__add-fill"]'); this.removeFillButton = page.locator( - 'div[class*="fill__element-content"] svg[class="icon-remove-refactor"]', + 'div[class*="fill__element-content"] svg[class="icon-remove"]', ); this.componentColorInput = page.locator(`input[class*='rows_color_row__color-input']`) @@ -64,19 +60,19 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { this.shadowBlurInput = page.locator('div[title="Blur"] input'); this.shadowSpreadInput = page.locator('div[title="Spread"] input'); this.shadowColorIcon = page.locator( - 'div[class*="shadow-advanced-options"] div[class*="color_bullet_new__color-bullet-wrapper"]', + 'div[class*="shadow-advanced-options"] div[class*="color_bullet__color-bullet-wrapper"]', ); this.shadowOpacityInput = page.locator( 'div[class*="shadow-advanced-options"] div[class*="color_row__opacity"] input', ); this.shadowShowIcon = page.locator( - 'div[class*="shadow__actions"] svg[class="icon-shown-refactor"]', + 'div[class*="shadow__actions"] svg[class="icon-shown"]', ); this.shadowUnhideIcon = page.locator( - 'div[class*="shadow__actions"] svg[class="icon-hide-refactor"]', + 'div[class*="shadow__actions"] svg[class="icon-hide"]', ); this.shadowRemoveIcon = page.locator( - 'div[class*="shadow__actions"] svg[class="icon-remove-refactor"]', + 'div[class*="shadow__actions"] svg[class="icon-remove"]', ); this.shadowTypeField = page.locator('div[class*="shadow-type-select"]'); @@ -102,6 +98,13 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { this.flexElementPositionAbsolute = page.locator( 'label[for=":absolute-position"] span', ); + this.gridEditButton = page.locator( + 'button[alt="Grid edit mode"]', + ); + this.gridDoneButton = page.locator( + 'button[class*="done-btn"]', + ); + this.gridLayoutMenu = page.locator('div[class*="grid-layout-menu"]'); this.layoutRemoveButton = page.locator( 'div[class*="layout_container__element-title"] button[class*="remove-layout"]', ); @@ -149,6 +152,24 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { 'div[title="Bottom padding"] input', ); this.layoutPaddingLeftInput = page.locator('div[title="Left padding"] input'); + this.layoutGridJustifyStartBtn = page.locator( + 'label[title="Justify items start"] span', + ); + this.layoutGridJustifyCenterBtn = page.locator( + 'label[title="Justify items center"] span', + ); + this.layoutGridJustifyEndBtn = page.locator( + 'label[title="Justify items end"] span', + ); + this.layoutGridJustifySpaceBetweenBtn = page.locator( + 'label[title="Justify items space-between"] span', + ); + this.layoutGridJustifySpaceAroundBtn = page.locator( + 'label[title="Justify items space-around"] span', + ); + this.layoutGridJustifySpaceEvenlyBtn = page.locator( + 'label[title="Justify items space-evenly"] span', + ); //Design panel - Blur section this.blurSection = page.locator( @@ -158,13 +179,13 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { this.blurMoreOptions = page.locator('button[class*="blur__show-more"]'); this.blurValueInput = page.locator('#blur-input-sidebar'); this.blurHideIcon = page.locator( - 'div[class*="blur__actions"] svg[class="icon-shown-refactor"]', + 'div[class*="blur__actions"] svg[class="icon-shown"]', ); this.blurUnhideIcon = page.locator( - 'div[class*="blur__actions"] svg[class="icon-hide-refactor"]', + 'div[class*="blur__actions"] svg[class="icon-hide"]', ); this.blurRemoveIcon = page.locator( - 'div[class*="blur__actions"] svg[class="icon-remove-refactor"]', + 'div[class*="blur__actions"] svg[class="icon-remove"]', ); //Design panel - Stroke section @@ -173,7 +194,7 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { 'div[class*="stroke__element-title"]:has-text("Stroke")', ); this.strokeColorBullet = page.locator( - 'div[class*="stroke-data"] div[class*="color_bullet_new__is-not-library-color"]', + 'div[class*="bullet-wrapper"] div[class*="color_bullet__is-not-library-color"]', ); this.strokeRemoveIcon = page.locator( 'div[class*="stroke-data"] button[class*="remove-btn"]', @@ -191,18 +212,18 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { this.strokeTypeField = page.locator('div[data-test="stroke.style"]'); //Design panel - Text section - this.textUpperCaseIcon = page.locator('svg.icon-text-uppercase-refactor'); - this.textLowerCaseIcon = page.locator('svg.icon-text-lowercase-refactor'); - this.textTitleCaseIcon = page.locator('svg.icon-text-mixed-refactor'); + this.textUpperCaseIcon = page.locator('svg.icon-text-uppercase'); + this.textLowerCaseIcon = page.locator('svg.icon-text-lowercase'); + this.textTitleCaseIcon = page.locator('svg.icon-text-mixed'); this.textMoreOptionsIcon = page.locator('button[class*="text__more-options"]'); this.textVerticalOptionsBlock = page.locator( 'div[class*="vertical-align-options"]', ); - this.textAlignTop = page.locator('svg.icon-text-top-refactor'); - this.textAlignMiddle = page.locator('svg.icon-text-middle-refactor'); - this.textAlignBottom = page.locator('svg.icon-text-bottom-refactor'); - this.textIconLTR = page.locator('svg.icon-text-ltr-refactor'); - this.textIconRTL = page.locator('svg.icon-text-rtl-refactor'); + this.textAlignTop = page.locator('svg.icon-text-top'); + this.textAlignMiddle = page.locator('svg.icon-text-middle'); + this.textAlignBottom = page.locator('svg.icon-text-bottom'); + this.textIconLTR = page.locator('svg.icon-text-ltr'); + this.textIconRTL = page.locator('svg.icon-text-rtl'); this.textFontSelector = page.locator('div[class*="typography__font-option"]'); this.textFontSelectorSearchInput = page.locator('input[placeholder="Search font"]'); this.textFontStyleSelector = page.locator('div[class*="typography__font-variant-options"]'); @@ -214,7 +235,7 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { ); this.addExportButton = page.locator('button[class*="exports__add-export"]'); this.removeExportButton = page.locator( - 'button[class*="exports__action-btn"] svg[class="icon-remove-refactor"]', + 'button[class*="exports__action-btn"] svg[class="icon-remove"]', ); this.exportElementButton = page.locator('button[class*="exports__export-btn"]'); @@ -222,13 +243,13 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { this.gridSection = page.locator('div[class*=element-set]:has-text("Guides")'); this.addGridButton = page.locator('button[class*="grid__add-grid"]'); this.removeGridButton = page.locator( - 'div[class*="grid__actions"] svg[class="icon-remove-refactor"]', + 'div[class*="grid__actions"] svg[class="icon-remove"]', ); this.hideGridButton = page.locator( - 'div[class*="grid__actions"] svg[class="icon-shown-refactor"]', + 'div[class*="grid__actions"] svg[class="icon-shown"]', ); this.unhideGridButton = page.locator( - 'div[class*="grid__actions"] svg[class="icon-hide-refactor"]', + 'div[class*="grid__actions"] svg[class="icon-hide"]', ); this.gridTypeField = page.locator( 'div[class*="grid__option-row"] div[class*="type-select-wrapper"]', @@ -276,16 +297,16 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { 'div[title*="Create"] svg[class*="icon-tick"]', ); this.saveAnnotationTick = page.locator( - 'div[title="Save"] svg[class="icon-tick-refactor"]', + 'div[title="Save"] svg[class="icon-tick"]', ); this.discardAnnotationTick = page.locator( - 'div[title="Discard"] svg[class="icon-close-refactor"]', + 'div[title="Discard"] svg[class="icon-close"]', ); this.editAnnotationTick = page.locator( - 'div[title="Edit"] svg[class="icon-curve-refactor"]', + 'div[title="Edit"] svg[class="icon-curve"]', ); this.deleteAnnotationTick = page.locator( - 'div[title="Delete"] svg[class="icon-delete-refactor"]', + 'div[title="Delete"] svg[class="icon-delete"]', ); this.deleteAnnotationPopup = page.locator( 'div[class*="modal-container"] h2:text-is("Delete annotation")', @@ -299,6 +320,9 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { this.detachInstanceOptionDesign = page.locator( 'ul[class*="component__custom-select-dropdown"] span:text-is("Detach instance")', ); + this.clipContentButton = page.locator( + '//input[@id="clip-content"]/..', + ); } async isFlexElementSectionOpened() { @@ -452,31 +476,31 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { async changeGeneralCornerRadiusForLayer(value) { await this.generalCornerRadiusInput.clear(); await this.generalCornerRadiusInput.pressSequentially(value); - await this.clickMoveButton(); + await this.clickOnEnter(); } async changeTopLeftCornerRadiusForLayer(value) { await this.topLeftCornerRadiusInput.clear(); await this.topLeftCornerRadiusInput.pressSequentially(value); - await this.clickMoveButton(); + await this.clickOnEnter(); } async changeTopRightCornerRadiusForLayer(value) { await this.topRightCornerRadiusInput.clear(); await this.topRightCornerRadiusInput.pressSequentially(value); - await this.clickMoveButton(); + await this.clickOnEnter(); } async changeBottomLeftCornerRadiusForLayer(value) { await this.bottomLeftCornerRadiusInput.clear(); await this.bottomLeftCornerRadiusInput.pressSequentially(value); - await this.clickMoveButton(); + await this.clickOnEnter(); } async changeBottomRightCornerRadiusForLayer(value) { await this.bottomRightCornerRadiusInput.clear(); await this.bottomRightCornerRadiusInput.pressSequentially(value); - await this.clickMoveButton(); + await this.clickOnEnter(); } async changeWidthForLayer(width) { @@ -664,6 +688,13 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { await this.layoutRemoveButton.click(); } + async openGridEditModeFromDesignPanel() { + await this.gridEditButton.click(); + } + async clickGridDoneButton() { + await this.gridDoneButton.click(); + } + async expandFlexLayoutMenu() { if (!(await this.flexLayoutMenu.isVisible())) { await this.flexLayoutCollapsedIcon.click(); @@ -671,8 +702,17 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { await expect(this.flexLayoutMenu).toBeVisible(); } - async changeLayoutDirection(direction) { - await this.expandFlexLayoutMenu(); + async expandGridLayoutMenu() { + if (!(await this.gridLayoutMenu.isVisible())) { + await this.flexLayoutCollapsedIcon.click(); + } + await expect(this.gridLayoutMenu).toBeVisible(); + } + + async changeLayoutDirection(direction, flex = true) { + flex + ? await this.expandFlexLayoutMenu() + : await this.expandGridLayoutMenu(); switch (direction) { case 'Row': await this.layoutDirectRowBtn.click(); @@ -689,47 +729,97 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { } } - async changeLayoutAlignment(alignment) { - await this.expandFlexLayoutMenu(); - switch (alignment) { - case 'Start': - await this.layoutAlignStartBtn.click(); - break; - case 'Center': - await this.layoutAlignCenterBtn.click(); - break; - case 'End': - await this.layoutAlignEndBtn.click(); - break; + async changeLayoutAlignment(alignment, flex = true) { + if(flex) { + await this.expandFlexLayoutMenu(); + switch (alignment) { + case 'Start': + await this.layoutAlignStartBtn.click(); + break; + case 'Center': + await this.layoutAlignCenterBtn.click(); + break; + case 'End': + await this.layoutAlignEndBtn.click(); + break; + } + } else { + await this.expandGridLayoutMenu(); + switch (alignment) { + case 'Start': + await this.layoutAlignStartBtn.first().click(); + await this.layoutAlignStartBtn.last().click(); + break; + case 'Center': + await this.layoutAlignCenterBtn.first().click(); + await this.layoutAlignCenterBtn.last().click(); + break; + case 'End': + await this.layoutAlignEndBtn.first().click(); + await this.layoutAlignEndBtn.last().click(); + break; + } } } - async changeLayoutJustification(justify) { - await this.expandFlexLayoutMenu(); - switch (justify) { - case 'Start': - await this.layoutJustifyStartBtn.click(); - break; - case 'Center': - await this.layoutJustifyCenterBtn.click(); - break; - case 'End': - await this.layoutJustifyEndBtn.click(); - break; - case 'Space between': - await this.layoutJustifySpaceBetweenBtn.click(); - break; - case 'Space around': - await this.layoutJustifySpaceAroundBtn.click(); - break; - case 'Space evenly': - await this.layoutJustifySpaceEvenlyBtn.click(); - break; + async changeLayoutJustification(justify, flex = true) { + if(flex) { + await this.expandFlexLayoutMenu(); + switch (justify) { + case 'Start': + await this.layoutJustifyStartBtn.click(); + break; + case 'Center': + await this.layoutJustifyCenterBtn.click(); + break; + case 'End': + await this.layoutJustifyEndBtn.click(); + break; + case 'Space between': + await this.layoutJustifySpaceBetweenBtn.click(); + break; + case 'Space around': + await this.layoutJustifySpaceAroundBtn.click(); + break; + case 'Space evenly': + await this.layoutJustifySpaceEvenlyBtn.click(); + break; + } + } else { + await this.expandGridLayoutMenu(); + switch (justify) { + case 'Start': + await this.layoutGridJustifyStartBtn.first().click(); + await this.layoutGridJustifyStartBtn.last().click(); + break; + case 'Center': + await this.layoutGridJustifyCenterBtn.first().click(); + await this.layoutGridJustifyCenterBtn.last().click(); + break; + case 'End': + await this.layoutGridJustifyEndBtn.first().click(); + await this.layoutGridJustifyEndBtn.last().click(); + break; + case 'Space between': + await this.layoutGridJustifySpaceBetweenBtn.first().click(); + await this.layoutGridJustifySpaceBetweenBtn.last().click(); + break; + case 'Space around': + await this.layoutGridJustifySpaceAroundBtn.first().click(); + await this.layoutGridJustifySpaceAroundBtn.last().click(); + break; + case 'Space evenly': + await this.layoutGridJustifySpaceEvenlyBtn.first().click(); + await this.layoutGridJustifySpaceEvenlyBtn.last().click(); + break; + } } } - async changeLayoutColumnGap(value) { - await this.expandFlexLayoutMenu(); + async changeLayoutColumnGap(value, flex = true) { + flex + ? await this.expandFlexLayoutMenu() + : await this.expandGridLayoutMenu(); await this.layoutColumnGapInput.clear(); await this.layoutColumnGapInput.pressSequentially(value); await this.clickOnEnter(); @@ -739,15 +829,31 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { await this.layoutColumnGapInput.click(); } - async changeLayoutRowGap(value) { - await this.expandFlexLayoutMenu(); + async changeLayoutColumnGapOnGridEdit(value) { + await this.layoutColumnGapInput.clear(); + await this.layoutColumnGapInput.pressSequentially(value); + await this.clickOnEnter(); + } + + async changeLayoutRowGap(value, flex = true) { + flex + ? await this.expandFlexLayoutMenu() + : await this.expandGridLayoutMenu(); await this.layoutRowGapInput.clear(); await this.layoutRowGapInput.pressSequentially(value); await this.clickOnEnter(); } - async changeLayoutPadding(type, value) { - await this.expandFlexLayoutMenu(); + async changeLayoutRowGapOnGridEdit(value) { + await this.layoutRowGapInput.clear(); + await this.layoutRowGapInput.pressSequentially(value); + await this.clickOnEnter(); + } + + async changeLayoutPadding(type, value, flex = true) { + flex + ? await this.expandFlexLayoutMenu() + : await this.expandGridLayoutMenu(); switch (type) { case 'Vertical': await this.layoutVerticalPaddingInput.clear(); @@ -769,13 +875,43 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { await this.layoutHorizontPaddingInput.click(); } - async switchToIndependentPadding() { - await this.expandFlexLayoutMenu(); + async switchToIndependentPadding(flex = true) { + flex + ? await this.expandFlexLayoutMenu() + : await this.expandGridLayoutMenu(); + await this.layoutIndepPaddingsIcon.click(); + } + + async switchToIndependentPaddingOnGridEdit() { await this.layoutIndepPaddingsIcon.click(); } - async changeLayoutIndependentPadding(type, value) { - await this.expandFlexLayoutMenu(); + async changeLayoutIndependentPadding(type, value, flex = true) { + flex + ? await this.expandFlexLayoutMenu() + : await this.expandGridLayoutMenu(); + switch (type) { + case 'Bottom': + await this.layoutPaddingBottomInput.clear(); + await this.layoutPaddingBottomInput.pressSequentially(value); + break; + case 'Right': + await this.layoutPaddingRightInput.clear(); + await this.layoutPaddingRightInput.pressSequentially(value); + break; + case 'Left': + await this.layoutPaddingLeftInput.clear(); + await this.layoutPaddingLeftInput.pressSequentially(value); + break; + case 'Top': + await this.layoutPaddingTopInput.clear(); + await this.layoutPaddingTopInput.pressSequentially(value); + break; + } + await this.clickOnEnter(); + } + + async changeLayoutIndependentPaddingOnGridEdit(type, value) { switch (type) { case 'Bottom': await this.layoutPaddingBottomInput.clear(); @@ -989,4 +1125,8 @@ exports.DesignPanelPage = class DesignPanelPage extends BasePage { async clickOnDetachInstanceOption() { await this.detachInstanceOptionDesign.click(); } + + async clickOnClipContentButton() { + await this.clipContentButton.click(); + } }; diff --git a/pages/workspace/layers-panel-page.js b/pages/workspace/layers-panel-page.js index 09061a54..02fa887a 100644 --- a/pages/workspace/layers-panel-page.js +++ b/pages/workspace/layers-panel-page.js @@ -21,20 +21,20 @@ exports.LayersPanelPage = class LayersPanelPage extends BasePage { this.layoutIcon = page.locator('svg[class="icon-layout-rows"]'); this.focusModeDiv = page.locator('div.focus-mode:text-is("Focus mode")'); this.mainComponentLayer = page.locator( - '//*[@class="icon-component-refactor"]//parent::div', + '//*[@class="icon-component"]//parent::div', ); this.copyComponentLayer = page.locator( - '//*[@class="icon-copy-refactor"]//parent::div', + '//*[@class="icon-component-copy"]//parent::div', ); this.createdLayerOnLayersPanelSpan = page.locator( 'div[class*="element-list-body"] span[class*="element-name"]', ); - this.searchLayersIcon = page.locator('svg[class="icon-search-refactor"]'); + this.searchLayersIcon = page.locator('svg[class="icon-search"]'); this.searchLayersInput = page.locator('input[placeholder="Search layers"]'); this.searchedLayerOnLayersPanelNameText = page.locator( 'span[class*="element-name"] >> nth=1', ); - this.layoutIcon = page.locator('svg.icon-flex-vertical-refactor'); + this.layoutIcon = page.locator('svg.icon-flex-vertical'); this.focusModeDiv = page.locator('div.focus-mode:text-is("Focus mode")'); this.layerItemToggleExpand = page.locator( 'div[class*="layers__element-list"] button[class*="sidebar_layer_item__inverse"]', @@ -212,7 +212,7 @@ exports.LayersPanelPage = class LayersPanelPage extends BasePage { async clickMainComponentChildLayerOnLayersTab() { const layer = this.page.locator( - '//*[@class="icon-component-refactor"]/../../../../following-sibling::div//span[text()]', + '//*[@class="icon-component"]/../../../../following-sibling::div//span[text()]', ); await layer.click(); } diff --git a/pages/workspace/main-page.js b/pages/workspace/main-page.js index 2b239f37..78662837 100644 --- a/pages/workspace/main-page.js +++ b/pages/workspace/main-page.js @@ -62,7 +62,7 @@ exports.MainPage = class MainPage extends BasePage { this.nodePanelToCurveButton = page.locator('button[title^="To curve"]'); // Main menu - first level - this.mainMenuButton = page.locator('#left-sidebar-aside svg.icon-menu-refactor'); + this.mainMenuButton = page.locator('#left-sidebar-aside svg.icon-menu'); this.mainMenuList = page.locator('ul[class*="main_ui_workspace_main_menu__menu"]'); this.viewMainMenuItem = page.locator('#file-menu-view'); this.fileMainMenuItem = page.locator('#file-menu-file'); @@ -77,10 +77,10 @@ exports.MainPage = class MainPage extends BasePage { '#file-menu-rulers span:text-is("Hide rulers")', ); this.hideGridsMainMenuSubItem = page.locator( - '#file-menu-grid span:text-is("Hide grids")', + '#file-menu-pixel-grid span:text-is("Hide pixel grid")', ); this.showGridsMainMenuSubItem = page.locator( - '#file-menu-grid span:text-is("Show grid")', + '#file-menu-pixel-grid span:text-is("Show pixel grid")', ); this.selectAllMainMenuSubItem = page.locator('#file-menu-select-all'); this.showColorPaletteMainMenuSubItem = page.locator( @@ -111,16 +111,16 @@ exports.MainPage = class MainPage extends BasePage { '#file-menu-remove-shared', ); this.shortcutsMenuSubItem = page.locator('#file-menu-shortcuts'); - this.downloadFileTickIcon = page.locator('svg[class="icon-tick-refactor"]'); + this.downloadFileTickIcon = page.locator('svg[class="icon-tick"]'); this.downloadFileCloseButton = page.locator('input[value="Close"]'); //Zoom this.zoomButton = page.locator('div[title="Zoom"]'); this.zoomPlusButton = page.locator( - 'button[class*="header__zoom-btn"] svg[class="icon-add-refactor"]', + 'button[class*="header__zoom-btn"] svg[class="icon-add"]', ); this.zoomMinusButton = page.locator( - 'button[class*="header__zoom-btn"] svg[class="icon-remove-refactor"]', + 'button[class*="header__zoom-btn"] svg[class="icon-remove"]', ); this.zoomResetButton = page.locator('button:has-text("Reset")'); this.zoomToFitAllMenuItem = page.locator('li:has-text("Zoom to fit all")'); @@ -139,19 +139,19 @@ exports.MainPage = class MainPage extends BasePage { 'ul[class*="page-list"] div[class*="element-list-body"] input', ); this.renamePageMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li span:has-text("Rename")', + 'ul[class*="workspace_context_menu"] li span:has-text("Rename")', ); this.duplicatePageMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li span:has-text("Duplicate")', + 'ul[class*="workspace_context_menu"] li span:has-text("Duplicate")', ); this.deletePageMenuItem = page.locator( - 'ul[class*="workspace-context-menu"] li span:has-text("Delete")', + 'ul[class*="workspace_context_menu"] li span:has-text("Delete")', ); this.collapseExpandPagesButton = page.locator( 'span[class*="collapsabled-icon"]', ); this.pageTrashIcon = page.locator( - 'div[class*="selected"] svg[class="icon-delete-refactor"]', + 'div[class*="selected"] svg[class="icon-delete"]', ); this.deletePageOkButton = page.locator('input[value="Ok"]'); @@ -277,6 +277,7 @@ exports.MainPage = class MainPage extends BasePage { async clickCreatedBoardTitleOnCanvas() { await this.createdBoardTitle.click({ force: true }); + await this.createdBoardTitle.click({ force: true }); } async clickOnLayerOnCanvas() { @@ -841,6 +842,7 @@ exports.MainPage = class MainPage extends BasePage { if (singleComponent) { await this.createComponentMenuItem.click(); } else { + await this.page.waitForTimeout(200); await this.createMultipleComponentsMenuItem.click(); } } diff --git a/pages/workspace/view-mode-page.js b/pages/workspace/view-mode-page.js index d977397e..52662e1b 100644 --- a/pages/workspace/view-mode-page.js +++ b/pages/workspace/view-mode-page.js @@ -11,7 +11,7 @@ exports.ViewModePage = class ViewModePage extends BasePage { //Assets panel this.viewModeButton = page.locator(`a[class*='viewer-btn']`); this.viewerLoyautSection = page.locator('#viewer-layout'); - this.inspectButton = page.locator(`button .icon-code-refactor`); + this.inspectButton = page.locator(`button .icon-code`); this.rightSidebar = page.locator(`aside[class*='inspect_right_sidebar']`); } diff --git a/playwright.config.js b/playwright.config.js index 59d996b6..633bbfb7 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -29,7 +29,7 @@ const config = { /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ - retries: process.env.CI ? 2 : 0, + retries: process.env.CI ? 2 : 2, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 3 : 3, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ diff --git a/tests/assets/assets-colors.spec.js b/tests/assets/assets-colors.spec.js index ebbf6e51..3d84ae03 100644 --- a/tests/assets/assets-colors.spec.js +++ b/tests/assets/assets-colors.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page },testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('AS-22 Filter Colors from All Assets drop-down', async ({ page }) => { diff --git a/tests/assets/assets-shortcuts-panel.spec.js b/tests/assets/assets-shortcuts-panel.spec.js index c03e4a60..ddaf3809 100644 --- a/tests/assets/assets-shortcuts-panel.spec.js +++ b/tests/assets/assets-shortcuts-panel.spec.js @@ -4,6 +4,7 @@ const { expect, test } = require('@playwright/test'); const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -17,11 +18,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('AS-110 Open panel main menu - help&info', async ({ page }) => { diff --git a/tests/assets/assets-typographies.spec.js b/tests/assets/assets-typographies.spec.js index e3d0685a..a1088e4b 100644 --- a/tests/assets/assets-typographies.spec.js +++ b/tests/assets/assets-typographies.spec.js @@ -5,6 +5,7 @@ const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -18,11 +19,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page },testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('AS-37 Filter Typographies from All Assets drop-down', async ({ page }) => { diff --git a/tests/assets/library-backup-page.spec.js b/tests/assets/library-backup-page.spec.js index 6aae2067..cf8527d1 100644 --- a/tests/assets/library-backup-page.spec.js +++ b/tests/assets/library-backup-page.spec.js @@ -8,6 +8,7 @@ const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); const { ColorPalettePage } = require('../../pages/workspace/color-palette-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -52,9 +53,10 @@ test.beforeEach(async ({ page }) => { await mainPage.isSecondPageNameDisplayed('Main components'); }); -test.afterEach(async () => { +test.afterEach(async ({}, testInfo) => { await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest( diff --git a/tests/assets/library-backup-page.spec.js-snapshots/win32/chrome/duplicated-library-backup.png b/tests/assets/library-backup-page.spec.js-snapshots/win32/chrome/duplicated-library-backup.png index 2840beda..528e26eb 100644 Binary files a/tests/assets/library-backup-page.spec.js-snapshots/win32/chrome/duplicated-library-backup.png and b/tests/assets/library-backup-page.spec.js-snapshots/win32/chrome/duplicated-library-backup.png differ diff --git a/tests/assets/library-backup-page.spec.js-snapshots/win32/firefox/duplicated-library-backup.png b/tests/assets/library-backup-page.spec.js-snapshots/win32/firefox/duplicated-library-backup.png new file mode 100644 index 00000000..976b85e6 Binary files /dev/null and b/tests/assets/library-backup-page.spec.js-snapshots/win32/firefox/duplicated-library-backup.png differ diff --git a/tests/assets/shared-libraries.spec.js b/tests/assets/shared-libraries.spec.js index fcdcceeb..0839c1ad 100644 --- a/tests/assets/shared-libraries.spec.js +++ b/tests/assets/shared-libraries.spec.js @@ -8,6 +8,7 @@ const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); const { ColorPalettePage } = require('../../pages/workspace/color-palette-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -25,8 +26,9 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async () => { +test.afterEach(async ({}, testInfo) => { await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { @@ -253,7 +255,7 @@ test.describe(() => { await assetsPanelPage.clickSharedLibraryImportButton('New File 1'); await assetsPanelPage.clickCloseModalButton(); await assetsPanelPage.clickAssetsTab(); - await assetsPanelPage.clickLibraryComponentsTitle(); + // await assetsPanelPage.clickLibraryComponentsTitle(); await assetsPanelPage.dragAndDropComponentToViewport('Rectangle'); await mainPage.waitForChangeIsSaved(); @@ -591,7 +593,7 @@ test.describe(() => { }, ); - test.afterEach(async ({ page }, testInfo) => { + test.afterEach(async () => { await mainPage.backToDashboardFromFileEditor(); }); }); @@ -652,13 +654,14 @@ test.describe(() => { // ); }); - test.afterEach(async ({ page }) => { + test.afterEach(async () => { + await teamPage.page.waitForTimeout(1000); await teamPage.deleteTeam(team2); }); }); test.describe(() => { - test.beforeEach(async ({ page }, testInfo) => { + test.beforeEach(async () => { await mainPage.clickPencilBoxButton(); await dashboardPage.addFileAsSharedLibraryViaRightclick(); await dashboardPage.isSharedLibraryIconDisplayed(); @@ -681,7 +684,7 @@ test.describe(() => { mainTest( 'PENPOT-1004 Search shared library (LIBRARIES pop-up)', - async ({ page }) => { + async () => { await assetsPanelPage.searchSharedLibraries('Whiteboarding & mapping kit'); await expect(assetsPanelPage.librariesModal).toHaveScreenshot( 'libraries-window-search.png', @@ -700,7 +703,7 @@ test.describe(() => { }, ); - test.afterEach(async ({ page }, testInfo) => { + test.afterEach(async () => { await assetsPanelPage.clickCloseModalButton(); await mainPage.backToDashboardFromFileEditor(); }); diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-invalid-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-invalid-search.png index 4733a66b..650b7b30 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-invalid-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-invalid-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-part-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-part-search.png index 369ae98e..01d58e22 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-part-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-part-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-search.png index ba0ecffd..5ae1f999 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/libraries-window-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file2.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file2.png index 567a5708..d42b2b15 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file2.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file2.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file3.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file3.png index 8537c58e..d42b2b15 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file3.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/chrome/unpublich-shared-library-component-file3.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-invalid-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-invalid-search.png index 1f4f4b93..b7a9b752 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-invalid-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-invalid-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-part-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-part-search.png index af59659a..bdc0ea7f 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-part-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-part-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-search.png index 3eabd999..f93ef8a1 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/libraries-window-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/unpublich-shared-library-component-file2.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/unpublich-shared-library-component-file2.png new file mode 100644 index 00000000..5a0d6c48 Binary files /dev/null and b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/unpublich-shared-library-component-file2.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/unpublich-shared-library-component-file3.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/unpublich-shared-library-component-file3.png new file mode 100644 index 00000000..5a0d6c48 Binary files /dev/null and b/tests/assets/shared-libraries.spec.js-snapshots/win32/firefox/unpublich-shared-library-component-file3.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/component-publish-shared-library-few-files.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/component-publish-shared-library-few-files.png index f86f5272..6ca6a52e 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/component-publish-shared-library-few-files.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/component-publish-shared-library-few-files.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-invalid-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-invalid-search.png index e3ca3831..f18741a5 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-invalid-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-invalid-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-part-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-part-search.png index 07071043..962e7dcc 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-part-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-part-search.png differ diff --git a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-search.png b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-search.png index 5db3193d..e81e9bb4 100644 Binary files a/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-search.png and b/tests/assets/shared-libraries.spec.js-snapshots/win32/webkit/libraries-window-search.png differ diff --git a/tests/color/color-picker.spec.js b/tests/color/color-picker.spec.js index 733bf7d7..d71aa64f 100644 --- a/tests/color/color-picker.spec.js +++ b/tests/color/color-picker.spec.js @@ -7,6 +7,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { random } = require('../../helpers/string-generator'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,14 +21,15 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); -mainTest('CP-1 Open color picker from Stroke menu BUG', async ({ page }) => { +mainTest('CP-1 Open color picker from Stroke menu', async ({ page }) => { const mainPage = new MainPage(page); const colorPalettePage = new ColorPalettePage(page); const designPanelPage = new DesignPanelPage(page); diff --git a/tests/components/copy-components/delete-copy-components.spec.js b/tests/components/copy-components/delete-copy-components.spec.js index 7166e259..624ba1bc 100644 --- a/tests/components/copy-components/delete-copy-components.spec.js +++ b/tests/components/copy-components/delete-copy-components.spec.js @@ -7,6 +7,7 @@ const { random } = require('../../../helpers/string-generator'); const { LayersPanelPage } = require('../../../pages/workspace/layers-panel-page'); const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page'); const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -23,13 +24,14 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); -mainTest('PENPOT-1497 Delete copy component from DEL button', async ({ page }) => { +mainTest('PENPOT-1497 Delete copy component from DEL button', async () => { await mainPage.createDefaultRectangleByCoordinates(200, 300); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); diff --git a/tests/components/main-components/context-menu-options.spec.js b/tests/components/main-components/context-menu-options.spec.js index 6dbb9877..fa126a67 100644 --- a/tests/components/main-components/context-menu-options.spec.js +++ b/tests/components/main-components/context-menu-options.spec.js @@ -10,6 +10,7 @@ const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page' const { InspectPanelPage } = require('../../../pages/workspace/inspect-panel-page'); const { BasePage } = require('../../../pages/base-page'); const { ColorPalettePage } = require('../../../pages/workspace/color-palette-page'); +const { updateTestResults } = require('./../../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); const annotation = 'Test annotation for automation'; @@ -29,11 +30,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { @@ -313,7 +315,7 @@ mainTest( }, ); -mainTest('Create a group with component and check its name', async ({ page }) => { +mainTest('Create a group with component and check its name', async () => { const groupName = 'Test Group'; await mainPage.createDefaultBoardByCoordinates(200, 300); await mainPage.createComponentViaRightClick(); @@ -329,7 +331,7 @@ mainTest('Create a group with component and check its name', async ({ page }) => await expect(mainPage.viewport).toHaveScreenshot('component-group-canvas.png'); }); -mainTest('Rename component with valid name', async ({ page }) => { +mainTest('Rename component with valid name', async () => { const newName = 'Renamed ellipse name'; await mainPage.createDefaultEllipseByCoordinates(400, 600); await mainPage.createComponentViaRightClick(); @@ -345,7 +347,7 @@ mainTest('Rename component with valid name', async ({ page }) => { ); }); -mainTest('Filter Components from All Assets drop-down', async ({ page }) => { +mainTest('Filter Components from All Assets drop-down', async () => { await assetsPanelPage.clickAssetsTab(); await assetsPanelPage.selectTypeFromAllAssetsDropdown('Components'); await assetsPanelPage.isAssetsSectionNameDisplayed('Components', '0'); @@ -365,7 +367,7 @@ test.describe(() => { mainTest( 'PENPOT-1411 Click Show main component on copy', - async ({ page }) => { + async () => { await layersPanelPage.clickCopyComponentOnLayersTab(); await basePage.showMainComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); @@ -377,7 +379,7 @@ test.describe(() => { mainTest( 'PENPOT-1412 Change copy and click Reset overrides', - async ({ page }) => { + async () => { await layersPanelPage.clickCopyComponentOnLayersTab(); await designPanelPage.changeHeightAndWidthForLayer('100', '150'); await basePage.resetOverridesViaRightClick(); @@ -390,7 +392,7 @@ test.describe(() => { mainTest( 'PENPOT-1413 Change copy color, change main color, right-click copy and click Reset overrides', - async ({ page }) => { + async () => { await layersPanelPage.clickCopyComponentOnLayersTab(); await designPanelPage.clickAddFillButton(); await mainPage.waitForChangeIsSaved(); @@ -426,7 +428,7 @@ test.describe(() => { mainTest( 'PENPOT-1300 Restore main component via context menu', - async ({ page }) => { + async () => { await layersPanelPage.clickMainComponentOnLayersTab(); await layersPanelPage.deleteMainComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); @@ -441,7 +443,7 @@ test.describe(() => { mainTest( 'PENPOT-1296 Detach instance from context menu', - async ({ page }) => { + async () => { await layersPanelPage.clickCopyComponentOnLayersTab(); await layersPanelPage.detachInstanceCopyComponentViaRightClick(); await designPanelPage.changeHeightAndWidthForLayer('300', '300'); @@ -455,7 +457,7 @@ test.describe(() => { mainTest( 'PENPOT-1297 Detach instance from "Design" tab', - async ({ page }) => { + async () => { await layersPanelPage.clickCopyComponentOnLayersTab(); await designPanelPage.clickOnComponentMenuButton(); await designPanelPage.clickOnDetachInstanceOption(); @@ -471,7 +473,7 @@ test.describe(() => { mainTest( 'PENPOT-1298 Reset overrides via context menu', - async ({ page }) => { + async () => { await layersPanelPage.clickCopyComponentOnLayersTab(); await designPanelPage.changeHeightAndWidthForLayer('100', '150'); await designPanelPage.clickAddFillButton(); @@ -524,7 +526,7 @@ test.describe(() => { mainTest( 'PENPOT-1416 Create 2 copies of main component. Change color of copy 1, change color of copy 2, right-click copy 2 and click "Update main component"', - async ({ page }) => { + async () => { await layersPanelPage.clickCopyComponentOnLayersTab(); await designPanelPage.clickAddFillButton(); await mainPage.waitForChangeIsSaved(); @@ -554,7 +556,7 @@ test.describe(() => { mainTest( 'PENPOT-1417 Create a copy from main, change color of copy, create a copy from copy, change color of main', - async ({ page }) => { + async () => { await mainPage.duplicateLayerViaRightClick(); await mainPage.waitForChangeIsSaved(); await layersPanelPage.clickNCopyComponentOnLayersTab(-2); diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-delete.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-delete.png index 286d4820..d6b67aa9 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-delete.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-delete.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-discard.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-discard.png index e991b70b..d6b67aa9 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-discard.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-discard.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-edit.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-edit.png index d117f11a..74b7747e 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-edit.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-edit.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-inspect-tab.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-inspect-tab.png index bce419d5..161a114c 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-inspect-tab.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation-inspect-tab.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation.png index e91624e5..361cb20b 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-annotation.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-grid-view.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-grid-view.png index 89ce9ecb..1e8d8b43 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-grid-view.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-grid-view.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle-duplicated-asset.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle-duplicated-asset.png index aa3b22b1..91165596 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle-duplicated-asset.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle-duplicated-asset.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle.png index 1d5be0f7..62797e59 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-rectangle.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-show-in-assets-panel.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-show-in-assets-panel.png index 4cc8983c..1b254562 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-show-in-assets-panel.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/component-show-in-assets-panel.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation-disabled.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation-disabled.png index bb6addc2..2476854a 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation-disabled.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation-disabled.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation.png index 65782afa..c89b03aa 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/copy-component-annotation.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-asset.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-asset.png index 3a6de0dc..1f03453f 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-asset.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-asset.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-canvas.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-canvas.png index 579aa0a7..42d48d53 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-canvas.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/chrome/ellipse-complex-component-canvas.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-delete.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-delete.png index f0bb8d26..89f53987 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-delete.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-delete.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-discard.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-discard.png index ff3c2eea..89f53987 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-discard.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-discard.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-edit.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-edit.png index 361fef1a..9fb33d8d 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-edit.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-edit.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-inspect-tab.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-inspect-tab.png index b7f4a5a8..0ebe9e5f 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-inspect-tab.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation-inspect-tab.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation.png index d908bb3a..2bb0b007 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-annotation.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-grid-view.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-grid-view.png index 157b5e93..eb92dc88 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-grid-view.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-grid-view.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle-duplicated-asset.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle-duplicated-asset.png index a8862c97..f5672fe9 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle-duplicated-asset.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle-duplicated-asset.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle.png index 516e13ad..9b717bd9 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-rectangle.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-show-in-assets-panel.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-show-in-assets-panel.png index b10fcbec..ff533c9e 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-show-in-assets-panel.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/component-show-in-assets-panel.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/copy-component-annotation.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/copy-component-annotation.png index 9885a4cc..0b97a6a6 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/copy-component-annotation.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/copy-component-annotation.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-asset.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-asset.png index 9afce14b..767010ea 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-asset.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-asset.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-canvas.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-canvas.png index eb901169..0ecceb9f 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-canvas.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/ellipse-complex-component-canvas.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/main-copies-component-change-color-update-component.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/main-copies-component-change-color-update-component.png new file mode 100644 index 00000000..7c7e4efa Binary files /dev/null and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/firefox/main-copies-component-change-color-update-component.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-delete.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-delete.png index 5fa18c33..2cd36efc 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-delete.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-delete.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-discard.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-discard.png index 5fa18c33..2cd36efc 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-discard.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-discard.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-edit.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-edit.png index ca7afd50..c823ea86 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-edit.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-edit.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-inspect-tab.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-inspect-tab.png index 13f670ab..5ce4bfd7 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-inspect-tab.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation-inspect-tab.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation.png index 25dd88ce..01c4b3b7 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-annotation.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-grid-view.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-grid-view.png index 506acb80..ee23d52b 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-grid-view.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-grid-view.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle-duplicated-asset.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle-duplicated-asset.png index 56d108bd..6de10a56 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle-duplicated-asset.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle-duplicated-asset.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle.png index be8a0e95..df82e22f 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-rectangle.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-show-in-assets-panel.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-show-in-assets-panel.png index 3309f2fe..a294c744 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-show-in-assets-panel.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/component-show-in-assets-panel.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/copy-component-annotation.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/copy-component-annotation.png index 982d2f88..0720a603 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/copy-component-annotation.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/copy-component-annotation.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/ellipse-complex-component-asset.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/ellipse-complex-component-asset.png index 0e8df99e..d9c8db3b 100644 Binary files a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/ellipse-complex-component-asset.png and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/ellipse-complex-component-asset.png differ diff --git a/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/main-copies-component-change-color-update-component.png b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/main-copies-component-change-color-update-component.png new file mode 100644 index 00000000..6dc1e830 Binary files /dev/null and b/tests/components/main-components/context-menu-options.spec.js-snapshots/win32/webkit/main-copies-component-change-color-update-component.png differ diff --git a/tests/components/main-components/create-main-components.spec.js b/tests/components/main-components/create-main-components.spec.js index 7fa6e4f3..62e1b429 100644 --- a/tests/components/main-components/create-main-components.spec.js +++ b/tests/components/main-components/create-main-components.spec.js @@ -7,6 +7,7 @@ const { random } = require('../../../helpers/string-generator'); const { LayersPanelPage } = require('../../../pages/workspace/layers-panel-page'); const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page'); const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -19,11 +20,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('Create component shape', async ({ page }) => { diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/board-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/board-component-asset.png index f25df1ed..d20483f0 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/board-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/board-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-component-asset.png index 3d9e7f7b..0971d34d 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/curve-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/ellipse-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/ellipse-component-asset.png index 03f0f25d..6ef76815 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/ellipse-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/ellipse-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-component-asset.png index 0237290c..080766c0 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-main-component-canvas.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-main-component-canvas.png index b2209291..06995839 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-main-component-canvas.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/image-main-component-canvas.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset-3-layers.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset-3-layers.png index 0bf315f0..ba77f998 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset-3-layers.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset-3-layers.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset.png index 0c549bfb..b1e366cc 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-canvas-3-layers.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-canvas-3-layers.png index 3e2e5b0e..a6d2c7aa 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-canvas-3-layers.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/multiple-components-canvas-3-layers.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/path-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/path-component-asset.png index 632426ec..3414072a 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/path-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/path-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png index d984ffae..7cb0bf7b 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/text-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/text-component-asset.png index ae726627..d9633a69 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/text-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/chrome/text-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/board-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/board-component-asset.png index bf84dd97..309bb291 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/board-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/board-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-component-asset.png index 8d83dedb..e6a22cea 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-layer.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-layer.png index 5a95d150..03d7f228 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-layer.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/curve-main-component-layer.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/ellipse-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/ellipse-component-asset.png index 32e29661..ab897eb3 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/ellipse-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/ellipse-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-component-asset.png index 5492c038..d36d85dc 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-main-component-canvas.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-main-component-canvas.png index 2d7973a1..efcab7f9 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-main-component-canvas.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/image-main-component-canvas.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset-3-layers.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset-3-layers.png index 1a93ba4e..8457cfa6 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset-3-layers.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset-3-layers.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset.png index 2528d7d5..30d77ad3 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-canvas-3-layers.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-canvas-3-layers.png index 73d0c388..fb7c57fe 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-canvas-3-layers.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/multiple-components-canvas-3-layers.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/path-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/path-component-asset.png index 18add01f..b861d881 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/path-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/path-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png index b3cd08f6..8e5e6ab8 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/text-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/text-component-asset.png index ee3c6bf6..5f577458 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/text-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/firefox/text-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/board-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/board-component-asset.png index 5b7e1b44..c673f146 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/board-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/board-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/curve-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/curve-component-asset.png index ed505f86..080374fe 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/curve-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/curve-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/ellipse-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/ellipse-component-asset.png index c625aff9..a881290e 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/ellipse-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/ellipse-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-component-asset.png index 16c0e417..61e2707a 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-main-component-canvas.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-main-component-canvas.png index e4aec2dc..1101d2cf 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-main-component-canvas.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/image-main-component-canvas.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/multiple-components-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/multiple-components-asset.png index dc0aff70..2832688e 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/multiple-components-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/multiple-components-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/path-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/path-component-asset.png index b3744e93..28456cfa 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/path-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/path-component-asset.png differ diff --git a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png index 404eae4f..90333b25 100644 Binary files a/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png and b/tests/components/main-components/create-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png differ diff --git a/tests/components/main-components/delete-main-components.spec.js b/tests/components/main-components/delete-main-components.spec.js index a3866f45..4b341c5f 100644 --- a/tests/components/main-components/delete-main-components.spec.js +++ b/tests/components/main-components/delete-main-components.spec.js @@ -6,6 +6,7 @@ const { DashboardPage } = require('../../../pages/dashboard/dashboard-page'); const { TeamPage } = require('../../../pages/dashboard/team-page'); const { LayersPanelPage } = require('../../../pages/workspace/layers-panel-page'); const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page'); +const { updateTestResults } = require('./../../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -18,11 +19,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('Undo deleted component', async ({ page, browserName }) => { diff --git a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/assets-component-delete.png b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/assets-component-delete.png index 179e6883..a55a55b3 100644 Binary files a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/assets-component-delete.png and b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/assets-component-delete.png differ diff --git a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png index 1d5be0f7..62797e59 100644 Binary files a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png and b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/chrome/rectangle-component-asset.png differ diff --git a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/assets-component-delete.png b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/assets-component-delete.png index f9df97bc..733d4983 100644 Binary files a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/assets-component-delete.png and b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/assets-component-delete.png differ diff --git a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png index 516e13ad..9b717bd9 100644 Binary files a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png and b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/firefox/rectangle-component-asset.png differ diff --git a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/assets-component-delete.png b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/assets-component-delete.png index 4530adb7..0a684c74 100644 Binary files a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/assets-component-delete.png and b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/assets-component-delete.png differ diff --git a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png index be8a0e95..df82e22f 100644 Binary files a/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png and b/tests/components/main-components/delete-main-components.spec.js-snapshots/win32/webkit/rectangle-component-asset.png differ diff --git a/tests/components/main-components/flext-layout-cases.spec.js b/tests/components/main-components/flext-layout-cases.spec.js index e7874a0c..0eb72687 100644 --- a/tests/components/main-components/flext-layout-cases.spec.js +++ b/tests/components/main-components/flext-layout-cases.spec.js @@ -8,6 +8,7 @@ const { LayersPanelPage } = require('../../../pages/workspace/layers-panel-page' const { ColorPalettePage } = require('../../../pages/workspace/color-palette-page'); const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page'); const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page'); +const { updateTestResults } = require('./../../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -25,9 +26,10 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async () => { +test.afterEach(async ({}, testInfo) => { await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { @@ -99,9 +101,6 @@ test.describe(() => { await mainPage.addFlexLayoutViaRightClick(); await mainPage.waitForChangeIsSaved(); - await mainPage.createDefaultRectangleByCoordinates(200, 200, true); - await mainPage.createComponentViaRightClick(); - await mainPage.waitForChangeIsSaved(); }); mainTest( @@ -109,6 +108,9 @@ test.describe(() => { async ( {page}, testInfo) => { await testInfo.setTimeout(testInfo.timeout + 20000); + await mainPage.createDefaultRectangleByCoordinates(200, 200, true); + await mainPage.waitForChangeIsSaved(); + await mainPage.clickCreatedBoardTitleOnCanvas(); await designPanelPage.changeAxisXandYForLayer('600', '200'); @@ -119,7 +121,6 @@ test.describe(() => { await mainPage.waitForChangeIsSaved(); await mainPage.createDefaultEllipseByCoordinates(200, 200, true); - await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); await mainPage.clickViewportTwice(); @@ -147,6 +148,9 @@ test.describe(() => { mainTest( 'PENPOT-1514 Create component inside flex board, change alignment for element', async () => { + await mainPage.createDefaultRectangleByCoordinates(200, 200, true); + await mainPage.createComponentViaRightClick(); + await mainPage.waitForChangeIsSaved(); await mainPage.clickCreatedBoardTitleOnCanvas(); await designPanelPage.changeLayoutAlignment('Center'); await mainPage.waitForChangeIsSaved(); diff --git a/tests/components/main-components/flext-layout-cases.spec.js-snapshots/win32/chrome/component-inside-board-change-paddings.png b/tests/components/main-components/flext-layout-cases.spec.js-snapshots/win32/chrome/component-inside-board-change-paddings.png index 1ad6f2cc..8fca8981 100644 Binary files a/tests/components/main-components/flext-layout-cases.spec.js-snapshots/win32/chrome/component-inside-board-change-paddings.png and b/tests/components/main-components/flext-layout-cases.spec.js-snapshots/win32/chrome/component-inside-board-change-paddings.png differ diff --git a/tests/components/main-components/flext-layout-cases.spec.js-snapshots/win32/firefox/component-inside-board-change-paddings.png b/tests/components/main-components/flext-layout-cases.spec.js-snapshots/win32/firefox/component-inside-board-change-paddings.png new file mode 100644 index 00000000..fda9caa8 Binary files /dev/null and b/tests/components/main-components/flext-layout-cases.spec.js-snapshots/win32/firefox/component-inside-board-change-paddings.png differ diff --git a/tests/components/main-components/update-main-components.spec.js b/tests/components/main-components/update-main-components.spec.js index 8164e03b..1af79474 100644 --- a/tests/components/main-components/update-main-components.spec.js +++ b/tests/components/main-components/update-main-components.spec.js @@ -8,6 +8,7 @@ const { LayersPanelPage } = require('../../../pages/workspace/layers-panel-page' const { ColorPalettePage } = require('../../../pages/workspace/color-palette-page'); const { DesignPanelPage } = require('../../../pages/workspace/design-panel-page'); const { AssetsPanelPage } = require('../../../pages/workspace/assets-panel-page'); +const { updateTestResults } = require('./../../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -25,12 +26,13 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); -mainTest('Update main component', async ({ page }) => { +mainTest('Update main component', async () => { test.setTimeout(60000); await mainPage.createDefaultRectangleByCoordinates(200, 300); await mainPage.createComponentViaRightClick(); @@ -53,7 +55,7 @@ mainTest('Update main component', async ({ page }) => { ); }); -mainTest('Check copy and main component icons', async ({ page }) => { +mainTest('Check copy and main component icons', async () => { await mainPage.createDefaultRectangleByCoordinates(200, 300); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); @@ -70,6 +72,8 @@ test.describe(() => { await mainPage.createDefaultRectangleByCoordinates(200, 300); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); + await designPanelPage.clickOnClipContentButton(); + await mainPage.waitForChangeIsSaved(); await mainPage.duplicateLayerViaRightClick(); await mainPage.waitForChangeIsSaved(); await layersPanelPage.clickCopyComponentOnLayersTab(); @@ -82,7 +86,7 @@ test.describe(() => { mainTest( 'Create a component and 2 copies of it, change rotation of main', - async ({ page }) => { + async () => { await layersPanelPage.clickMainComponentOnLayersTab(); await designPanelPage.changeRotationForLayer('20'); await expect(mainPage.viewport).toHaveScreenshot( @@ -93,7 +97,7 @@ test.describe(() => { mainTest( 'Create a component and 2 copies of it, change all corners of main', - async ({ page }) => { + async () => { const cornerValue = '45'; await layersPanelPage.clickMainComponentOnLayersTab(); await designPanelPage.clickIndividualCornersRadiusButton(); @@ -110,7 +114,7 @@ test.describe(() => { mainTest( "Create a component and 2 copies of it, change corners of main separate by using 'All corners'", - async ({ page }) => { + async () => { const cornerValue = '45'; await layersPanelPage.clickMainComponentOnLayersTab(); await designPanelPage.changeGeneralCornerRadiusForLayer(cornerValue); @@ -123,7 +127,7 @@ test.describe(() => { mainTest( 'PENPOT-1408 Create a component and 2 copies of it, change stroke color of main', - async ({ page }) => { + async () => { await layersPanelPage.clickMainComponentOnLayersTab(); await designPanelPage.clickAddStrokeButton(); await mainPage.waitForChangeIsSaved(); diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1478-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1478-component-update-asset.png index 7f799591..e19c2de6 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1478-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1478-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1479-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1479-component-update-asset.png index 5aea8200..b6d4c6f7 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1479-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1479-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1480-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1480-component-update-asset.png index 44ea6639..25244141 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1480-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1480-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1482-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1482-component-update-asset.png index 5aea8200..b6d4c6f7 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1482-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1482-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1483-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1483-component-update-asset.png index 752ea323..760f8108 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1483-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/1483-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/component-update-asset.png index d4d6a222..16cce881 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png index 4de951c7..222bc722 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-blur.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png index 3a5fc2b8..adfd1257 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-change-grid.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png index c03a71de..caead0c9 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png index ecb38aba..07c65be0 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-grid-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png index 227510a0..b392c0a5 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png index 51a1b665..9aae2c2c 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-shadow-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png index 97cb2b87..843a5956 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/chrome/main-copies-component-text.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1478-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1478-component-update-asset.png index e40663f8..1a585e72 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1478-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1478-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1479-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1479-component-update-asset.png index 3e035143..2ed48114 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1479-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1479-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1480-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1480-component-update-asset.png index c75cbec6..aef77e7e 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1480-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1480-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1482-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1482-component-update-asset.png index 3e035143..2ed48114 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1482-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1482-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1483-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1483-component-update-asset.png index 1737dfbb..258aeabc 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1483-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/1483-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/component-update-asset.png index df3c05f4..3f876e30 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png index 1174b050..a5f493dc 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-blur.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png index b8e7caf0..751222c6 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-change-grid.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png index d38c1b25..0bd39dd1 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png index bb064ed4..7653bcb3 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-grid-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png index dd31a38f..f384d6d5 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png index dd31a38f..b5f9ff0e 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-shadow-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png index 9bb909c8..a54f962c 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/firefox/main-copies-component-text.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1478-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1478-component-update-asset.png index 266be9c6..359e4430 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1478-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1478-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1479-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1479-component-update-asset.png index caca06f7..1bf0df93 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1479-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1479-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1480-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1480-component-update-asset.png index 9eb1fcae..a09c90f0 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1480-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1480-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1482-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1482-component-update-asset.png index caca06f7..1bf0df93 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1482-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1482-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1483-component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1483-component-update-asset.png index 2fa861ca..ed4a83d4 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1483-component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/1483-component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/component-update-asset.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/component-update-asset.png index 3eea539e..b3ab5220 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/component-update-asset.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/component-update-asset.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-blur.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-blur.png index c322898b..bae47ae5 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-blur.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-blur.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-change-grid.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-change-grid.png index a3f8b3e3..e056cd5e 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-change-grid.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-change-grid.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-default.png index 46bcc637..a67f7488 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-updated.png index 944caf6d..ec1819dd 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-grid-updated.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-default.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-default.png index f3158620..f51c4316 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-default.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-default.png differ diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-updated.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-updated.png index 4c0a54be..b3ff8cdb 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-updated.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-shadow-updated.png differ diff --git a/tests/composition/composition-board.spec.js b/tests/composition/composition-board.spec.js index 0b9ce339..2d236499 100644 --- a/tests/composition/composition-board.spec.js +++ b/tests/composition/composition-board.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('CO-1 Change color background', async ({ page }) => { diff --git a/tests/composition/composition-comments.spec.js b/tests/composition/composition-comments.spec.js index 91c34437..f66ef421 100644 --- a/tests/composition/composition-comments.spec.js +++ b/tests/composition/composition-comments.spec.js @@ -5,6 +5,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { random } = require('../../helpers/string-generator'); const { CommentsPanelPage } = require('../../pages/workspace/comments-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -18,11 +19,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-edited.png b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-edited.png index 49399fec..5c7415fe 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-edited.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-edited.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-latin-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-latin-opened-pop-up.png index 71bb661a..647e91d8 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-latin-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-latin-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-opened-pop-up.png index b388a225..c02fddaf 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-reply.png b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-reply.png index 2e6363e1..102f8e09 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-reply.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-reply.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-resolved-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-resolved-opened-pop-up.png index 254ef19c..275e3f14 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-resolved-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/chrome/comment-resolved-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-edited.png b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-edited.png index 38b931a6..01354d5a 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-edited.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-edited.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-latin-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-latin-opened-pop-up.png index 1bd17268..ec2ae391 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-latin-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-latin-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-opened-pop-up.png index 8f698396..0de284fd 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-reply.png b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-reply.png index 04ff6fac..7a946c42 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-reply.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-reply.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-resolved-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-resolved-opened-pop-up.png index ec37ce45..0fc0c452 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-resolved-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/firefox/comment-resolved-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-edited.png b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-edited.png index 1508c89e..f2d349b8 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-edited.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-edited.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-latin-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-latin-opened-pop-up.png index 321a8065..5ac2c1b3 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-latin-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-latin-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-opened-pop-up.png index a480ec17..31f82a91 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-opened-pop-up.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-reply.png b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-reply.png index ea21a04c..1f0adaa8 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-reply.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-reply.png differ diff --git a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-resolved-opened-pop-up.png b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-resolved-opened-pop-up.png index 0325e6d6..60c84711 100644 Binary files a/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-resolved-opened-pop-up.png and b/tests/composition/composition-comments.spec.js-snapshots/win32/webkit/comment-resolved-opened-pop-up.png differ diff --git a/tests/composition/composition-curve.spec.js b/tests/composition/composition-curve.spec.js index 08accba9..177c0d50 100644 --- a/tests/composition/composition-curve.spec.js +++ b/tests/composition/composition-curve.spec.js @@ -6,6 +6,7 @@ const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -19,11 +20,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-ellipse.spec.js b/tests/composition/composition-ellipse.spec.js index c0dc25c2..3a835529 100644 --- a/tests/composition/composition-ellipse.spec.js +++ b/tests/composition/composition-ellipse.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-flex-layout.spec.js b/tests/composition/composition-flex-layout.spec.js index 34ab803a..0ebac1ba 100644 --- a/tests/composition/composition-flex-layout.spec.js +++ b/tests/composition/composition-flex-layout.spec.js @@ -6,6 +6,7 @@ const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -19,11 +20,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-grid-layout.spec.js b/tests/composition/composition-grid-layout.spec.js new file mode 100644 index 00000000..59421742 --- /dev/null +++ b/tests/composition/composition-grid-layout.spec.js @@ -0,0 +1,162 @@ +const { expect, test } = require('@playwright/test'); +const { mainTest } = require('../../fixtures'); +const { MainPage } = require('../../pages/workspace/main-page'); +const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); +const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { random } = require('../../helpers/string-generator'); +const { TeamPage } = require('../../pages/dashboard/team-page'); +const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); + +const teamName = random().concat('autotest'); + +let teamPage,dashboardPage,mainPage,designPanelPage,layersPanelPage; +test.beforeEach(async ({ page }) => { + teamPage = new TeamPage(page); + dashboardPage = new DashboardPage(page); + mainPage = new MainPage(page); + designPanelPage = new DesignPanelPage(page); + layersPanelPage = new LayersPanelPage(page); + await teamPage.createTeam(teamName); + await teamPage.isTeamSelected(teamName); + await dashboardPage.createFileViaPlaceholder(); + await mainPage.isMainPageLoaded(); +}); + +test.afterEach(async ({ page }, testInfo) => { + const teamPage = new TeamPage(page); + const mainPage = new MainPage(page); + await mainPage.backToDashboardFromFileEditor(); + await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) +}); + +mainTest('PENPOT-1689,1696 Check grid lines, check edit mode in the right panel', async ({ page }) => { + await mainPage.createDefaultBoardByCoordinates(200, 300); + await designPanelPage.changeHeightAndWidthForLayer('300', '400'); + await mainPage.waitForChangeIsSaved(); + await mainPage.addGridLayoutViaRightClick(); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.isLayoutRemoveButtonExists(); + await mainPage.clickViewportOnce(); + await mainPage.clickCreatedBoardTitleOnCanvas(); + await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-layout.png', { + mask: [mainPage.guides], + }); + await designPanelPage.openGridEditModeFromDesignPanel(); + await mainPage.waitForChangeIsSaved(); + await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-edit-mode.png', { + mask: [mainPage.guides], + }); + await expect(mainPage.fileRightSidebarAside).toHaveScreenshot( + 'grid-edit-right-sidebar-image.png', + { + mask: [mainPage.usersSection], + }, + ); + +}); + +test.describe(() => { + test.beforeEach(async ({ page, browserName }, testInfo) => { + if (browserName === 'webkit') { + await testInfo.setTimeout(testInfo.timeout + 20000); + } else { + await testInfo.setTimeout(testInfo.timeout + 15000); + } + await mainPage.createDefaultBoardByCoordinates(400, 300); + await designPanelPage.changeHeightAndWidthForLayer('500', '600'); + await mainPage.waitForChangeIsSaved(); + await mainPage.addGridLayoutViaRightClick(); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.isLayoutRemoveButtonExists(); + + await mainPage.createDefaultEllipseByCoordinates(200, 200, true); + await mainPage.createComponentViaRightClick(); + await layersPanelPage.dragAndDropComponentToBoard('Ellipse'); + await mainPage.waitForChangeIsSaved(); + await mainPage.createDefaultRectangleByCoordinates(200, 200, true); + await mainPage.createComponentViaRightClick(); + await layersPanelPage.dragAndDropComponentToBoard('Rectangle'); + await mainPage.waitForChangeIsSaved(); + await mainPage.createDefaultEllipseByCoordinates(200, 200, true); + await layersPanelPage.dragAndDropComponentToBoard('Ellipse'); + await mainPage.createDefaultRectangleByCoordinates(200, 200, true); + await layersPanelPage.dragAndDropComponentToBoard('Rectangle'); + await mainPage.clickViewportOnce(); + await mainPage.clickCreatedBoardTitleOnCanvas(); + await mainPage.waitForChangeIsSaved(); + }); + + mainTest('PENPOT-1690 Change direction', async ({ page }) => { + await designPanelPage.changeLayoutDirection('Column', false); + await mainPage.waitForChangeIsSaved(); + await expect(layersPanelPage.layersSidebar).toHaveScreenshot( + 'column-direction-layer.png', + ); + }); + + mainTest('PENPOT-1691 Change alignment', async ({ page }) => { + await designPanelPage.changeLayoutAlignment('Center', false); + await mainPage.waitForChangeIsSaved(); + await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-alignment-center.png', { + mask: [mainPage.guides], + }); + }); + + mainTest('PENPOT-1692 Change justify - PENPOT-1694 Сhange vertical, horizontal, bottom and left paddings', async ({ page }) => { + await designPanelPage.openGridEditModeFromDesignPanel(); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.switchToIndependentPaddingOnGridEdit(); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.changeLayoutIndependentPaddingOnGridEdit('Top', '50'); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.changeLayoutIndependentPaddingOnGridEdit('Left', '50'); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.changeLayoutIndependentPaddingOnGridEdit('Bottom', '50'); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.changeLayoutIndependentPaddingOnGridEdit('Right', '50'); + await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-paddings.png', { + mask: [mainPage.guides], + }); + await expect(mainPage.fileRightSidebarAside).toHaveScreenshot( + 'grid-edit-right-sidebar-paddings-image.png', + { + mask: [mainPage.usersSection], + }, + ); + await designPanelPage.clickGridDoneButton(); + await designPanelPage.changeLayoutJustification('Space between', false); + await mainPage.waitForChangeIsSaved(); + await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-justify-space-between.png', { + mask: [mainPage.guides], + }); + await expect(mainPage.fileRightSidebarAside).toHaveScreenshot( + 'right-sidebar-justify-image.png', + { + mask: [mainPage.usersSection], + }, + ); + }); + + mainTest('PENPOT-1693 Change row gap', async ({ page }) => { + await designPanelPage.openGridEditModeFromDesignPanel(); + await mainPage.waitForChangeIsSaved(); + await designPanelPage.changeLayoutRowGapOnGridEdit('50'); + await mainPage.waitForChangeIsSaved(); + await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-row-gap.png', { + mask: [mainPage.guides], + }); + }); + + mainTest('PENPOT-1695 Change columns and rows', async ({ page }) => { + await designPanelPage.openGridEditModeFromDesignPanel(); + await mainPage.waitForChangeIsSaved(); + await mainPage.addRowGridLayoutBtnClick(); + await mainPage.addColumnGridLayoutBtnClick(); + await mainPage.waitForChangeIsSaved(); + await expect(mainPage.viewport).toHaveScreenshot('board-with-grid-3-3.png', { + mask: [mainPage.guides], + }); + }); +}); diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-3-3.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-3-3.png new file mode 100644 index 00000000..a942c3aa Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-3-3.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-alignment-center.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-alignment-center.png new file mode 100644 index 00000000..000c0113 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-alignment-center.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-edit-mode.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-edit-mode.png new file mode 100644 index 00000000..08f83176 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-edit-mode.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-justify-space-between.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-justify-space-between.png new file mode 100644 index 00000000..407849a7 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-justify-space-between.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-layout.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-layout.png new file mode 100644 index 00000000..6e3fdc34 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-layout.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-paddings.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-paddings.png new file mode 100644 index 00000000..dbaa01ee Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-paddings.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-row-gap.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-row-gap.png new file mode 100644 index 00000000..d8a0977a Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/board-with-grid-row-gap.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/column-direction-layer.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/column-direction-layer.png new file mode 100644 index 00000000..d1a4e093 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/column-direction-layer.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/grid-edit-right-sidebar-image.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/grid-edit-right-sidebar-image.png new file mode 100644 index 00000000..b284e456 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/grid-edit-right-sidebar-image.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/grid-edit-right-sidebar-paddings-image.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/grid-edit-right-sidebar-paddings-image.png new file mode 100644 index 00000000..03eee5cb Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/grid-edit-right-sidebar-paddings-image.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/right-sidebar-justify-image.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/right-sidebar-justify-image.png new file mode 100644 index 00000000..17f35a9b Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/chrome/right-sidebar-justify-image.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-3-3.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-3-3.png new file mode 100644 index 00000000..26a94cf8 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-3-3.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-alignment-center.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-alignment-center.png new file mode 100644 index 00000000..2d3257e5 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-alignment-center.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-edit-mode.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-edit-mode.png new file mode 100644 index 00000000..98023106 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-edit-mode.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-justify-space-between.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-justify-space-between.png new file mode 100644 index 00000000..fd0b3c99 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-justify-space-between.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-layout.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-layout.png new file mode 100644 index 00000000..b8e85cec Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-layout.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-paddings.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-paddings.png new file mode 100644 index 00000000..cad21bd6 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-paddings.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-row-gap.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-row-gap.png new file mode 100644 index 00000000..55e9def3 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/board-with-grid-row-gap.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/column-direction-layer.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/column-direction-layer.png new file mode 100644 index 00000000..99ff2f45 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/column-direction-layer.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/grid-edit-right-sidebar-image.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/grid-edit-right-sidebar-image.png new file mode 100644 index 00000000..debced59 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/grid-edit-right-sidebar-image.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/grid-edit-right-sidebar-paddings-image.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/grid-edit-right-sidebar-paddings-image.png new file mode 100644 index 00000000..eac75053 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/grid-edit-right-sidebar-paddings-image.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/right-sidebar-justify-image.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/right-sidebar-justify-image.png new file mode 100644 index 00000000..9ff19d08 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/firefox/right-sidebar-justify-image.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/board-with-grid-edit-mode.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/board-with-grid-edit-mode.png new file mode 100644 index 00000000..65c3b244 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/board-with-grid-edit-mode.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/board-with-grid-layout.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/board-with-grid-layout.png new file mode 100644 index 00000000..fbf0776d Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/board-with-grid-layout.png differ diff --git a/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/grid-edit-right-sidebar-image.png b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/grid-edit-right-sidebar-image.png new file mode 100644 index 00000000..8e757216 Binary files /dev/null and b/tests/composition/composition-grid-layout.spec.js-snapshots/win32/webkit/grid-edit-right-sidebar-image.png differ diff --git a/tests/composition/composition-image.spec.js b/tests/composition/composition-image.spec.js index 3348cc89..bbfe508d 100644 --- a/tests/composition/composition-image.spec.js +++ b/tests/composition/composition-image.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-path-node-panel.spec.js b/tests/composition/composition-path-node-panel.spec.js index 84f4ba38..07783b53 100644 --- a/tests/composition/composition-path-node-panel.spec.js +++ b/tests/composition/composition-path-node-panel.spec.js @@ -4,6 +4,7 @@ const { expect, test } = require('@playwright/test'); const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -17,11 +18,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-path.spec.js b/tests/composition/composition-path.spec.js index fd0ea145..9a10961e 100644 --- a/tests/composition/composition-path.spec.js +++ b/tests/composition/composition-path.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('CO-272 Create Path from toolbar - closed BUG', async ({ page }) => { diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-closed.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-closed.png index 1e4175cd..186ba429 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-closed.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-closed.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-drop-shadow.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-drop-shadow.png index 403e93ef..d648c329 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-drop-shadow.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-drop-shadow.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-horizontal.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-horizontal.png index 1a1d0bee..4053c81a 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-horizontal.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-horizontal.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical-horizontal.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical-horizontal.png index b5c08b02..f97c3f30 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical-horizontal.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical-horizontal.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical.png index 9fb95fef..cb014405 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-flipped-vertical.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-inner-shadow.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-inner-shadow.png index 92ea612e..521559b5 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-inner-shadow.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-inner-shadow.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-non-flipped-jpeg.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-non-flipped-jpeg.png index 1e4175cd..186ba429 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-non-flipped-jpeg.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-non-flipped-jpeg.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-120.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-120.png index 27e06754..da5479bd 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-120.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-120.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-359.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-359.png index 19135eaf..6646be14 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-359.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-359.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-45.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-45.png index ec29e265..a4a56ad2 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-45.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-45.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-90.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-90.png index c94e61e1..3674390e 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-90.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-rotated-90.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-to-board.png b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-to-board.png index b1a7ca2f..4718948f 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-to-board.png and b/tests/composition/composition-path.spec.js-snapshots/win32/chrome/path-to-board.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-closed.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-closed.png index 343482ac..21618315 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-closed.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-closed.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-drop-shadow.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-drop-shadow.png index ca2222d5..23452244 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-drop-shadow.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-drop-shadow.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-horizontal.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-horizontal.png index 233a1b68..c71f5132 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-horizontal.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-horizontal.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical-horizontal.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical-horizontal.png index 545efccd..2a72c1ea 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical-horizontal.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical-horizontal.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical.png index 48ead5bc..461a21dc 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-flipped-vertical.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-inner-shadow.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-inner-shadow.png index 1e417f3a..80a60fee 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-inner-shadow.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-inner-shadow.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-non-flipped-jpeg.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-non-flipped-jpeg.png index 343482ac..21618315 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-non-flipped-jpeg.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-non-flipped-jpeg.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-120.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-120.png index 9e87d88d..e6956f36 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-120.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-120.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-359.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-359.png index 294d50e7..1896e7e4 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-359.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-359.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-45.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-45.png index effafc80..96c81168 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-45.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-45.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-90.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-90.png index aef1c5ae..155b79b0 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-90.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-rotated-90.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-to-board.png b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-to-board.png index 4e761438..fc32b59d 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-to-board.png and b/tests/composition/composition-path.spec.js-snapshots/win32/firefox/path-to-board.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-closed.png b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-closed.png index 3f2287a5..3b304cd9 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-closed.png and b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-closed.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-drop-shadow.png b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-drop-shadow.png index acb92727..5fa07a1e 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-drop-shadow.png and b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-drop-shadow.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-inner-shadow.png b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-inner-shadow.png index 32d7cc8d..65604d69 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-inner-shadow.png and b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-inner-shadow.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-non-flipped-jpeg.png b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-non-flipped-jpeg.png index 3f2287a5..3b304cd9 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-non-flipped-jpeg.png and b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-non-flipped-jpeg.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-rotated-359.png b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-rotated-359.png index 3f951402..fd373f1a 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-rotated-359.png and b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-rotated-359.png differ diff --git a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-to-board.png b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-to-board.png index d1c58698..8afc678e 100644 Binary files a/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-to-board.png and b/tests/composition/composition-path.spec.js-snapshots/win32/webkit/path-to-board.png differ diff --git a/tests/composition/composition-rectangle.spec.js b/tests/composition/composition-rectangle.spec.js index ed2d30ac..8b1bcf07 100644 --- a/tests/composition/composition-rectangle.spec.js +++ b/tests/composition/composition-rectangle.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-text.spec.js b/tests/composition/composition-text.spec.js index 442eb452..934ca3aa 100644 --- a/tests/composition/composition-text.spec.js +++ b/tests/composition/composition-text.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png index 0536300c..af30e716 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png and b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-ltr.png differ diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png index 75c236ce..50cff471 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png and b/tests/composition/composition-text.spec.js-snapshots/win32/chrome/text-rtl.png differ diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png index 89048a63..288aac2a 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png and b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-ltr.png differ diff --git a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png index 324617c5..337e16d0 100644 Binary files a/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png and b/tests/composition/composition-text.spec.js-snapshots/win32/firefox/text-rtl.png differ diff --git a/tests/dashboard/dashboard-files.spec.js b/tests/dashboard/dashboard-files.spec.js index 913b6eec..941c05d9 100644 --- a/tests/dashboard/dashboard-files.spec.js +++ b/tests/dashboard/dashboard-files.spec.js @@ -4,6 +4,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { random } = require('../../helpers/string-generator'); const { test } = require('@playwright/test'); const { TeamPage } = require('../../pages/dashboard/team-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -13,9 +14,10 @@ test.beforeEach(async ({ page }) => { await teamPage.isTeamSelected(teamName); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('DA-1 Create new file in Drafts on title panel', async ({ page }) => { @@ -439,6 +441,7 @@ mainTest('DA-54 Unpin project', async ({ page }) => { const dashboardPage = new DashboardPage(page); await dashboardPage.clickAddProjectButton(); await dashboardPage.setProjectName('Test Project'); + await dashboardPage.clickPinProjectButton(); await dashboardPage.isProjectTitleDisplayed('Test Project'); await dashboardPage.checkPinnedProjectsSidebarItem('Test Project'); await dashboardPage.clickUnpinProjectButton(); @@ -451,6 +454,7 @@ mainTest('DA-55 Pin project', async ({ page }) => { const dashboardPage = new DashboardPage(page); await dashboardPage.clickAddProjectButton(); await dashboardPage.setProjectName('Test Project'); + await dashboardPage.clickPinProjectButton(); await dashboardPage.isProjectTitleDisplayed('Test Project'); await dashboardPage.clickUnpinProjectButton(); await dashboardPage.checkPinnedProjectsSidebarItem( diff --git a/tests/dashboard/dashboard-fonts.spec.js b/tests/dashboard/dashboard-fonts.spec.js index 342c5c10..528ec39c 100644 --- a/tests/dashboard/dashboard-fonts.spec.js +++ b/tests/dashboard/dashboard-fonts.spec.js @@ -3,6 +3,7 @@ const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { test } = require('@playwright/test'); const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -12,9 +13,10 @@ test.beforeEach(async ({ page }) => { await teamPage.isTeamSelected(teamName); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('DA-66 Upload single font', async ({ page }) => { diff --git a/tests/dashboard/dashboard-libraries.spec.js b/tests/dashboard/dashboard-libraries.spec.js index 7f80342f..ed6d5260 100644 --- a/tests/dashboard/dashboard-libraries.spec.js +++ b/tests/dashboard/dashboard-libraries.spec.js @@ -8,6 +8,7 @@ const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); const { ColorPalettePage } = require('../../pages/workspace/color-palette-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -26,13 +27,14 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest( 'PENPOT-1084 Check view for empty library', - async ({ page }) => { + async () => { await mainPage.clickPencilBoxButton(); await dashboardPage.addFileAsSharedLibraryViaOptionsIcon(); await dashboardPage.isSharedLibraryIconDisplayed(); @@ -46,7 +48,7 @@ mainTest( mainTest( 'PENPOT-1541 Create 2 rectangles and look library view', - async ({ page }) => { + async () => { await mainPage.createDefaultRectangleByCoordinates(200, 200); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); @@ -66,7 +68,7 @@ mainTest( mainTest( 'PENPOT-1542 Create 4 ellipses and look at library view', - async ({ page }) => { + async () => { await mainPage.createDefaultEllipseByCoordinates(200, 200); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); @@ -92,7 +94,7 @@ mainTest( mainTest( 'PENPOT-1351 Check actual library view after adding / updating / removing assets', - async ({ page }) => { + async () => { await mainPage.createDefaultTextLayer(200, 300); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); @@ -138,7 +140,7 @@ mainTest( mainTest( 'PENPOT-1476 Check view for library with one type of assets', - async ({ page }) => { + async () => { await mainPage.createDefaultRectangleByCoordinates(200, 300); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); @@ -162,7 +164,7 @@ mainTest( ); test.describe(() => { - test.beforeEach(async ({ page }, testInfo) => { + test.beforeEach(async () => { await mainPage.clickPencilBoxButton(); await dashboardPage.addFileAsSharedLibraryViaOptionsIcon(); await dashboardPage.isSharedLibraryIconDisplayed(); @@ -172,7 +174,7 @@ test.describe(() => { mainTest( 'PENPOT-1057 Rename file from Libraries tab', - async ({ page }) => { + async () => { await dashboardPage.renameFile('Renamed Test File'); await dashboardPage.isFilePresent('Renamed Test File'); }, @@ -180,7 +182,7 @@ test.describe(() => { mainTest( 'PENPOT-1058 Duplicate file from Libraries tab', - async ({ page }) => { + async () => { await dashboardPage.duplicateFileViaRightclick(); await dashboardPage.openSidebarItem('Projects'); await dashboardPage.checkNumberOfFiles('2 files'); diff --git a/tests/dashboard/dashboard-teams.spec.js b/tests/dashboard/dashboard-teams.spec.js index 81d12d75..e35a8a01 100644 --- a/tests/dashboard/dashboard-teams.spec.js +++ b/tests/dashboard/dashboard-teams.spec.js @@ -5,6 +5,8 @@ const { ProfilePage } = require('../../pages/profile-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { MainPage } = require('../../pages/workspace/main-page'); const { random } = require('../../helpers/string-generator'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); + test.describe(() => { const team = random().concat('autotest'); @@ -351,7 +353,9 @@ test.describe(() => { await teamPage.createTeam(team); await teamPage.isTeamSelected(team); await dashboardPage.createProject(projectFirst); + await dashboardPage.pinProjectByName(projectFirst) await dashboardPage.createProject(projectSecond); + await dashboardPage.pinProjectByName(projectSecond) await dashboardPage.openSidebarItem('Drafts'); await dashboardPage.createFileViaPlaceholder(); await mainPage.backToDashboardFromFileEditor(); @@ -411,3 +415,7 @@ test.describe(() => { await teamPage.deleteTeam(team); }); }); + +test.afterEach(async ({ page }, testInfo) => { + await updateTestResults(testInfo.status, testInfo.retry) +}); diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-owner-block.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-owner-block.png index c839ada5..39b9bbc8 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-owner-block.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-owner-block.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-profile-image.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-profile-image.png index 18ed5ce3..05c8c48c 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-profile-image.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-profile-image.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-stats-block.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-stats-block.png index 6deb56c2..09b5f980 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-stats-block.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/chrome/team-stats-block.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-owner-block.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-owner-block.png index 23b04e1b..2c717950 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-owner-block.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-owner-block.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-profile-image.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-profile-image.png index 095034c5..a4d7495b 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-profile-image.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-profile-image.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-stats-block.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-stats-block.png index e2589975..b4075aa0 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-stats-block.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/firefox/team-stats-block.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-owner-block.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-owner-block.png index 9f3489a3..f1610660 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-owner-block.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-owner-block.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-profile-image.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-profile-image.png index d00be85c..2bec8ab7 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-profile-image.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-profile-image.png differ diff --git a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-stats-block.png b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-stats-block.png index 6a45abac..66bf1ea1 100644 Binary files a/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-stats-block.png and b/tests/dashboard/dashboard-teams.spec.js-snapshots/win32/webkit/team-stats-block.png differ diff --git a/tests/login.spec.js b/tests/login.spec.js index 3110c492..c289d45d 100644 --- a/tests/login.spec.js +++ b/tests/login.spec.js @@ -1,6 +1,7 @@ const { test } = require('@playwright/test'); const { LoginPage } = require('../pages/login-page'); const { DashboardPage } = require('../pages/dashboard/dashboard-page'); +const { updateTestResults } = require('./../helpers/saveTestResults.js'); test('ON-8 Login with an email address', async ({ page }) => { const loginPage = new LoginPage(page); @@ -32,7 +33,7 @@ test('ON-14 Login with no password', async ({ page }) => { await loginPage.isLoginButtonDisabled(); }); -test('ON-15 Login with incorrect password (BUG)', async ({ page }) => { +test('ON-15 Login with incorrect password', async ({ page }) => { const loginPage = new LoginPage(page); await loginPage.goto(); await loginPage.enterEmail(process.env.LOGIN_EMAIL); @@ -40,3 +41,7 @@ test('ON-15 Login with incorrect password (BUG)', async ({ page }) => { await loginPage.clickLoginButton(); await loginPage.isLoginErrorMessageDisplayed('Email or password is incorrect.'); }); + +test.afterEach(async ({ page }, testInfo) => { + await updateTestResults(testInfo.status, testInfo.retry) +}); diff --git a/tests/panels-features/panels-features-export.spec.js b/tests/panels-features/panels-features-export.spec.js index 25efbd65..b1e35e07 100644 --- a/tests/panels-features/panels-features-export.spec.js +++ b/tests/panels-features/panels-features-export.spec.js @@ -5,6 +5,7 @@ const { test } = require('@playwright/test'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -18,11 +19,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('PF-179 Add export setting via design panel', async ({ page }) => { diff --git a/tests/panels-features/panels-features-fill.spec.js b/tests/panels-features/panels-features-fill.spec.js index 8aa1444d..d6598a90 100644 --- a/tests/panels-features/panels-features-fill.spec.js +++ b/tests/panels-features/panels-features-fill.spec.js @@ -6,6 +6,8 @@ const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); + const teamName = random().concat('autotest'); @@ -19,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/panels-features/panels-features-grid.spec.js b/tests/panels-features/panels-features-grid.spec.js index de0f057e..55ef4a1b 100644 --- a/tests/panels-features/panels-features-grid.spec.js +++ b/tests/panels-features/panels-features-grid.spec.js @@ -5,6 +5,7 @@ const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -18,11 +19,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/panels-features/panels-features-history-panel.spec.js b/tests/panels-features/panels-features-history-panel.spec.js index 39bc8c84..fb0eb767 100644 --- a/tests/panels-features/panels-features-history-panel.spec.js +++ b/tests/panels-features/panels-features-history-panel.spec.js @@ -4,6 +4,7 @@ const { random } = require('../../helpers/string-generator'); const { test } = require('@playwright/test'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -17,11 +18,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('PF-156 Perform a change and check the status', async ({ page }) => { diff --git a/tests/panels-features/panels-features-main-menu.spec.js b/tests/panels-features/panels-features-main-menu.spec.js index 524508c4..4aa057ef 100644 --- a/tests/panels-features/panels-features-main-menu.spec.js +++ b/tests/panels-features/panels-features-main-menu.spec.js @@ -7,6 +7,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -20,11 +21,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest( diff --git a/tests/panels-features/panels-features-pages.spec.js b/tests/panels-features/panels-features-pages.spec.js index e6649498..fe5d3128 100644 --- a/tests/panels-features/panels-features-pages.spec.js +++ b/tests/panels-features/panels-features-pages.spec.js @@ -8,7 +8,7 @@ const { BasePage } = require('../../pages/base-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); const { DesignPanelPage } = require('../../pages/workspace/design-panel-page'); -const { ColorPalettePage } = require('../../pages/workspace/color-palette-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -22,11 +22,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('PF-114 Create new page', async ({ page }) => { @@ -159,7 +160,6 @@ mainTest('PENPOT-1527 Add a component from local library to Page 1 and Page 2, e const layersPanelPage = new LayersPanelPage(page); const assetsPanelPage = new AssetsPanelPage(page); const designPanelPage = new DesignPanelPage(page); - const colorPalettePage = new ColorPalettePage(page); await mainPage.createDefaultRectangleByCoordinates(200, 200); await mainPage.createComponentViaRightClick(); await mainPage.waitForChangeIsSaved(); diff --git a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/hidden-pages.png b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/hidden-pages.png index dcbaa136..2b0bf7cc 100644 Binary files a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/hidden-pages.png and b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/hidden-pages.png differ diff --git a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-2.png b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-2.png index adc2c3fd..ba6c5354 100644 Binary files a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-2.png and b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-2.png differ diff --git a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-3.png b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-3.png index 237a2b6d..1624c9a2 100644 Binary files a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-3.png and b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/chrome/page-1-and-page-3.png differ diff --git a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/firefox/hidden-pages.png b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/firefox/hidden-pages.png index 7bff4a4a..6d982272 100644 Binary files a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/firefox/hidden-pages.png and b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/firefox/hidden-pages.png differ diff --git a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/webkit/hidden-pages.png b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/webkit/hidden-pages.png index 0ae216ad..78a194ef 100644 Binary files a/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/webkit/hidden-pages.png and b/tests/panels-features/panels-features-pages.spec.js-snapshots/win32/webkit/hidden-pages.png differ diff --git a/tests/panels-features/panels-features-prototype.spec.js b/tests/panels-features/panels-features-prototype.spec.js index 2acabb1d..6a34827c 100644 --- a/tests/panels-features/panels-features-prototype.spec.js +++ b/tests/panels-features/panels-features-prototype.spec.js @@ -6,6 +6,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); const { PrototypePanelPage } = require('../../pages/workspace/prototype-panel-page'); const { LayersPanelPage } = require('../../pages/workspace/layers-panel-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -19,11 +20,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); test.describe(() => { diff --git a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/connector-between-board2-and-board3.png b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/connector-between-board2-and-board3.png index bf8c656a..cd973208 100644 Binary files a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/connector-between-board2-and-board3.png and b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/chrome/connector-between-board2-and-board3.png differ diff --git a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/connector-between-board2-and-board3.png b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/connector-between-board2-and-board3.png index 9cb3b52b..9644cae7 100644 Binary files a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/connector-between-board2-and-board3.png and b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/firefox/connector-between-board2-and-board3.png differ diff --git a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/webkit/connector-between-board2-and-board3.png b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/webkit/connector-between-board2-and-board3.png index 81885ce9..ca399c73 100644 Binary files a/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/webkit/connector-between-board2-and-board3.png and b/tests/panels-features/panels-features-prototype.spec.js-snapshots/win32/webkit/connector-between-board2-and-board3.png differ diff --git a/tests/panels-features/panels-features-zoom.spec.js b/tests/panels-features/panels-features-zoom.spec.js index 240d07a4..f779e740 100644 --- a/tests/panels-features/panels-features-zoom.spec.js +++ b/tests/panels-features/panels-features-zoom.spec.js @@ -4,6 +4,7 @@ const { expect, test } = require('@playwright/test'); const { random } = require('../../helpers/string-generator'); const { TeamPage } = require('../../pages/dashboard/team-page'); const { DashboardPage } = require('../../pages/dashboard/dashboard-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); const teamName = random().concat('autotest'); @@ -17,11 +18,12 @@ test.beforeEach(async ({ page }) => { await mainPage.isMainPageLoaded(); }); -test.afterEach(async ({ page }) => { +test.afterEach(async ({ page }, testInfo) => { const teamPage = new TeamPage(page); const mainPage = new MainPage(page); await mainPage.backToDashboardFromFileEditor(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); mainTest('PF-132 Zoom via top right menu', async ({ page }) => { diff --git a/tests/profile.spec.js b/tests/profile.spec.js index e092a3df..224efce4 100644 --- a/tests/profile.spec.js +++ b/tests/profile.spec.js @@ -2,7 +2,8 @@ const { mainTest } = require('../fixtures'); const { ProfilePage } = require('../pages/profile-page'); const { random } = require('../helpers/string-generator'); const { LoginPage } = require('../pages/login-page'); -const { expect } = require('@playwright/test'); +const { expect, test } = require('@playwright/test'); +const { updateTestResults } = require('./../helpers/saveTestResults.js'); mainTest('PR-1 Edit profile name', async ({ page }) => { const newName = random(); @@ -100,3 +101,7 @@ mainTest('PR-22 Send feedback email with valid data', async ({ page }) => { await profilePage.clickSendFeedbackButton(); await profilePage.isSuccessMessageDisplayed('Feedback sent'); }); + +test.afterEach(async ({ page }, testInfo) => { + await updateTestResults(testInfo.status, testInfo.retry) +}); diff --git a/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-jpeg.png b/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-jpeg.png index 6f4b247a..fd2a3df8 100644 Binary files a/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-jpeg.png and b/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-jpeg.png differ diff --git a/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-png.png b/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-png.png index fd3cdb19..f9e49eaa 100644 Binary files a/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-png.png and b/tests/profile.spec.js-snapshots/win32/chrome/profile-avatar-block-png.png differ diff --git a/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-jpeg.png b/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-jpeg.png index 5a6cec7c..10e0c7a9 100644 Binary files a/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-jpeg.png and b/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-jpeg.png differ diff --git a/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-png.png b/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-png.png index c427b613..15f0ec61 100644 Binary files a/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-png.png and b/tests/profile.spec.js-snapshots/win32/firefox/profile-avatar-block-png.png differ diff --git a/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-jpeg.png b/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-jpeg.png index 6f76ab1b..adfecb81 100644 Binary files a/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-jpeg.png and b/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-jpeg.png differ diff --git a/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-png.png b/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-png.png index 9ddd060e..f66a0323 100644 Binary files a/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-png.png and b/tests/profile.spec.js-snapshots/win32/webkit/profile-avatar-block-png.png differ diff --git a/tests/signup.spec.js b/tests/signup.spec.js index 732996f8..6739ba72 100644 --- a/tests/signup.spec.js +++ b/tests/signup.spec.js @@ -1,6 +1,7 @@ const { test } = require('@playwright/test'); const { LoginPage } = require('../pages/login-page'); const { RegisterPage } = require('../pages/register-page'); +const { updateTestResults } = require('./../helpers/saveTestResults.js'); test('ON-5 Sign up with invalid email address', async ({ page }) => { const loginPage = new LoginPage(page); @@ -43,3 +44,7 @@ test('ON-7 Sign up with incorrect password', async ({ page }) => { await registerPage.isCreateAccountBtnDisplayed(); await registerPage.isCreateAccountBtnDisabled(); }); + +test.afterEach(async ({ page }, testInfo) => { + await updateTestResults(testInfo.status, testInfo.retry) +}); diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js b/tests/ui-theme/ui-theme-features-light-mode.spec.js index 16340a89..5776e1b8 100644 --- a/tests/ui-theme/ui-theme-features-light-mode.spec.js +++ b/tests/ui-theme/ui-theme-features-light-mode.spec.js @@ -8,6 +8,7 @@ const { TeamPage } = require('../../pages/dashboard/team-page'); const { AssetsPanelPage } = require('../../pages/workspace/assets-panel-page'); const { InspectPanelPage } = require('../../pages/workspace/inspect-panel-page'); const { ViewModePage } = require('../../pages/workspace/view-mode-page'); +const { updateTestResults } = require('./../../helpers/saveTestResults.js'); let profilePage, teamPage, @@ -137,10 +138,11 @@ test.describe('Settings - UI THEME', () => { ); }); -test.afterEach(async ({}) => { +test.afterEach(async ({}, testInfo) => { await profilePage.goToAccountPage(); await profilePage.openSettingsTab(); await profilePage.selectDarkTheme(); await profilePage.backToDashboardFromAccount(); await teamPage.deleteTeam(teamName); + await updateTestResults(testInfo.status, testInfo.retry) }); diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/assets-file-right-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/assets-file-right-sidebar-image.png index 3bed994a..032f24e9 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/assets-file-right-sidebar-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/assets-file-right-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/dashboard-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/dashboard-image.png index ab2c81e8..3c28d9fe 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/dashboard-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/dashboard-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/team-settings-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/team-settings-image.png index 17329c32..680825f3 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/team-settings-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/team-settings-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-inspect-page-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-inspect-page-image.png index 48397529..b90853ec 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-inspect-page-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-inspect-page-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-page-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-page-image.png index fbc77beb..449ac02f 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-page-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/chrome/view-mode-page-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/assets-file-left-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/assets-file-left-sidebar-image.png new file mode 100644 index 00000000..1a2d55dd Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/assets-file-left-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/assets-file-right-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/assets-file-right-sidebar-image.png new file mode 100644 index 00000000..4fe9e2ba Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/assets-file-right-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/dashboard-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/dashboard-image.png index 31ef6ae8..3bb4e604 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/dashboard-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/dashboard-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/inspect-file-right-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/inspect-file-right-sidebar-image.png new file mode 100644 index 00000000..073a422a Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/inspect-file-right-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/layers-file-left-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/layers-file-left-sidebar-image.png new file mode 100644 index 00000000..e66faf5a Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/layers-file-left-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/team-settings-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/team-settings-image.png index b7e561cc..faf0aa91 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/team-settings-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/team-settings-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-inspect-page-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-inspect-page-image.png index f259b238..bcb8e723 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-inspect-page-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-inspect-page-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-page-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-page-image.png index aa80e897..10ab9688 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-page-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/firefox/view-mode-page-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/assets-file-left-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/assets-file-left-sidebar-image.png new file mode 100644 index 00000000..cceb729d Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/assets-file-left-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/assets-file-right-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/assets-file-right-sidebar-image.png new file mode 100644 index 00000000..e1d19cbf Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/assets-file-right-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/dashboard-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/dashboard-image.png index d4b05418..3de52107 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/dashboard-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/dashboard-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/inspect-file-right-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/inspect-file-right-sidebar-image.png new file mode 100644 index 00000000..01360734 Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/inspect-file-right-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/layers-file-left-sidebar-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/layers-file-left-sidebar-image.png new file mode 100644 index 00000000..888a6464 Binary files /dev/null and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/layers-file-left-sidebar-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/team-settings-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/team-settings-image.png index 05d99bd6..0d9195f4 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/team-settings-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/team-settings-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-inspect-page-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-inspect-page-image.png index 7eb74d0d..884fafa4 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-inspect-page-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-inspect-page-image.png differ diff --git a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-page-image.png b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-page-image.png index 649045a5..58b7045e 100644 Binary files a/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-page-image.png and b/tests/ui-theme/ui-theme-features-light-mode.spec.js-snapshots/win32/webkit/view-mode-page-image.png differ