diff --git a/backend/.eslintrc.json b/backend/.eslintrc.json index 6e90a9b2b..e2d59d70a 100644 --- a/backend/.eslintrc.json +++ b/backend/.eslintrc.json @@ -31,6 +31,7 @@ "quotes": ["error", "single"], "comma-dangle": ["error", "never"], "no-duplicate-imports": "error", + "no-underscore-dangle": "off", "no-tabs": ["error", { "allowIndentationTabs": true }] } } diff --git a/backend/src/serverHelper.js b/backend/src/serverHelper.js index 84fd03898..a8901bf40 100644 --- a/backend/src/serverHelper.js +++ b/backend/src/serverHelper.js @@ -161,8 +161,7 @@ async function deleteFeatureFile(storyTitle, storyId) { function getSettings(scenario, globalSettings) { const finalSettings = { browser: scenario.browser || 'chrome', - waitTime: scenario.stepWaitTime || 0, - daisyAutoLogout: scenario.daisyAutoLogout || false + waitTime: scenario.stepWaitTime || 0 }; // if globalSettings are activated, then use global values @@ -299,8 +298,6 @@ function scenarioPrep(scenarios, driver, globalSettings) { if (!scenario.stepWaitTime) scenario.stepWaitTime = 0; // eslint-disable-next-line no-param-reassign if (!scenario.browser) scenario.browser = 'chrome'; - // eslint-disable-next-line no-param-reassign - if (!scenario.daisyAutoLogout) scenario.daisyAutoLogout = false; const additionalParams = getSettings(scenario, globalSettings); diff --git a/backend/src/serverRouter/storyRouter.js b/backend/src/serverRouter/storyRouter.js index d0a246619..8b46689e4 100644 --- a/backend/src/serverRouter/storyRouter.js +++ b/backend/src/serverRouter/storyRouter.js @@ -69,10 +69,10 @@ router.get('/issueKey/:issue_key', async (req, res) => { // create Story router.post('/', async (req, res) => { try { - const db_id = await mongo.createStory(req.body.title, req.body.description, req.body._id); - await mongo.insertStoryIdIntoRepo(db_id, req.body._id); - helper.updateFeatureFile(db_id); - res.status(200).json(db_id); + const dbId = await mongo.createStory(req.body.title, req.body.description, req.body._id); + await mongo.insertStoryIdIntoRepo(dbId, req.body._id); + helper.updateFeatureFile(dbId); + res.status(200).json(dbId); } catch (e) { handleError(res, e, e, 500); } @@ -175,7 +175,12 @@ router.delete('/:repo_id/:_id', async (req, res) => { router.post('/upload/import/', upload.single('file'), async (req, res) => { try { if (req.query.projectName) { - const result = pmHelper.importProject(req.file, req.query.repo_id, req.query.projectName, req.query.importMode); + const result = pmHelper.importProject( + req.file, + req.query.repo_id, + req.query.projectName, + req.query.importMode + ); res.status(200).json(result); } else res.status(200).json(''); } catch (error) { @@ -187,7 +192,12 @@ router.post('/upload/import/', upload.single('file'), async (req, res) => { router.put('/upload/import/', upload.single('file'), async (req, res) => { try { if (req.query.repo_id) { - const result = pmHelper.importProject(req.file, req.query.repo_id, req.query.projectName, req.query.importMode); + const result = pmHelper.importProject( + req.file, + req.query.repo_id, + req.query.projectName, + req.query.importMode + ); res.status(200).json(result); } else res.status(200).json(''); } catch (error) { @@ -297,7 +307,7 @@ router.delete('/scenario/:story_id/:_id', async (req, res) => { } if (!dbError && !xrayError) res.status(200).json({ text: 'Scenario successfully deleted.' }); - else { + else { let errorMessage = 'Error during deletion: '; if (dbError) errorMessage += 'Database error. '; if (xrayError) errorMessage += 'Error deleting XRay step.'; diff --git a/frontend/src/app/account-management/account-management.component.css b/frontend/src/app/account-management/account-management.component.css index 8bbfa15d5..1338cc9fb 100644 --- a/frontend/src/app/account-management/account-management.component.css +++ b/frontend/src/app/account-management/account-management.component.css @@ -229,7 +229,7 @@ h2, h1{ margin-left: 5px;; } -.customRepoContainer{ +.projectListItem{ display: flex; justify-content: flex-start; } diff --git a/frontend/src/app/account-management/account-management.component.html b/frontend/src/app/account-management/account-management.component.html index 3218a7c49..074fff4b7 100644 --- a/frontend/src/app/account-management/account-management.component.html +++ b/frontend/src/app/account-management/account-management.component.html @@ -28,7 +28,7 @@

Seed-Test Account