Remove cypress related dependency and reporting unsupported diagnostic, and ignore e2e/webpack from unit jest (#2229)
* remove cypress related dependency and reporting, and ignore e2e/webpack from unit jest * revert eslint-plugin-cypress * revert change on .eslint-webapp
This commit is contained in:
parent
455d0c334a
commit
7d321e849b
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue