diff --git a/e2e/utils/report.js b/e2e/utils/report.js index 96759437..223b191d 100644 --- a/e2e/utils/report.js +++ b/e2e/utils/report.js @@ -258,26 +258,6 @@ function generateTitle() { return title; } -function generateDiagnosticReport(summary, serverInfo) { - const {BRANCH, BUILD_ID} = process.env; - - return { - username: 'Cypress UI Test', - icon_url: 'https://mattermost.com/wp-content/uploads/2022/02/icon_WS.png', - attachments: [{ - color: '#43A047', - author_name: 'Cypress UI Test', - author_icon: 'https://mattermost.com/wp-content/uploads/2022/02/icon_WS.png', - author_link: 'https://community.mattermost.com/core/channels/ui-test-automation', - title: `Cypress UI Test Automation #${BUILD_ID}, **${BRANCH}** branch`, - fields: [{ - short: false, - value: `Start: **${summary.stats.start}**\nEnd: **${summary.stats.end}**\nUser ID: **${serverInfo.userId}**\nTeam ID: **${serverInfo.teamId}**`, - }], - }], - }; -} - async function sendReport(name, url, data) { const requestOptions = {method: 'POST', url, data}; @@ -295,7 +275,6 @@ async function sendReport(name, url, data) { } module.exports = { - generateDiagnosticReport, generateShortSummary, generateTestReport, getAllTests, diff --git a/e2e/utils/test_cases.js b/e2e/utils/test_cases.js index cb329487..5253384d 100644 --- a/e2e/utils/test_cases.js +++ b/e2e/utils/test_cases.js @@ -95,7 +95,7 @@ async function createTestCycle(startDate, endDate) { const testCycle = { projectKey: JIRA_PROJECT_KEY, name: ZEPHYR_CYCLE_NAME ? `${ZEPHYR_CYCLE_NAME} (${BUILD_ID}-${BRANCH})` : `${BUILD_ID}-${BRANCH}`, - description: `Cypress automated test with ${BRANCH}`, + description: `Playwright automated test with ${BRANCH}`, plannedStartDate: startDate, plannedEndDate: endDate, statusName: 'Done', @@ -125,7 +125,7 @@ async function createTestExecutions(report, testCycle) { return { statusName: status[item.state], actualEndDate: new Date(startTime + item.incrementalDuration).toISOString(), - actualResult: 'Cypress automated test completed', + actualResult: 'Playwright automated test completed', }; }); @@ -143,7 +143,7 @@ async function createTestExecutions(report, testCycle) { acc += prev.duration; // eslint-disable-line no-param-reassign return acc; }, 0), - comment: `Cypress automated test - ${getStepStateSummary(steps)}`, + comment: `Playwright automated test - ${getStepStateSummary(steps)}`, }; // Temporarily log to verify cases that were being saved. diff --git a/package.json b/package.json index c664c6a0..7991ecf2 100644 --- a/package.json +++ b/package.json @@ -91,6 +91,11 @@ "testMatch": [ "**/src/**/*.test.js" ], + "testPathIgnorePatterns": [ + "/node_modules/", + "/e2e/", + "/webpack.config.test.js" + ], "globals": { "__HASH_VERSION__": "5.0.0", "__CAN_UPGRADE__": false,