sonar security hotspots

This commit is contained in:
Cindy Chang
2024-08-12 11:30:08 +08:00
parent d8c1e84622
commit 8c58f53d4f
6 changed files with 9 additions and 6 deletions

View File

@@ -8,5 +8,8 @@ module.exports = defineConfig({
e2e: { e2e: {
specPattern: "cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}", specPattern: "cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}",
}, },
includeShadowDom: true includeShadowDom: true,
env: {
loginPwd: 'REDACTED-PWD',
}
}); });

View File

@@ -4,7 +4,7 @@ describe('Account duplication check.', ()=>{
beforeEach(() => { beforeEach(() => {
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');
const username = 'cindy'; const username = 'cindy';
const password = 'REDACTED-PWD'; const password = Cypress.env('loginPwd');
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');

View File

@@ -4,7 +4,7 @@ describe('Confirm that two input passwords are equal.', ()=>{
beforeEach(() => { beforeEach(() => {
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');
const username = 'cindy'; const username = 'cindy';
const password = 'REDACTED-PWD'; const password = Cypress.env('loginPwd');
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');

View File

@@ -2,7 +2,7 @@ describe('Create an Account', ()=>{
beforeEach(() => { beforeEach(() => {
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');
const username = 'cindy'; const username = 'cindy';
const password = 'REDACTED-PWD'; const password = Cypress.env('loginPwd');
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');

View File

@@ -2,7 +2,7 @@ describe('Delete an Account', ()=>{
beforeEach(() => { beforeEach(() => {
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');
const username = 'cindy'; const username = 'cindy';
const password = 'REDACTED-PWD'; const password = Cypress.env('loginPwd');
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');

View File

@@ -14,7 +14,7 @@ describe('Edit an account', ()=>{
beforeEach(() => { beforeEach(() => {
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');
const username = 'cindy'; const username = 'cindy';
const password = 'REDACTED-PWD'; const password = Cypress.env('loginPwd');
cy.visit('https://REDACTED-HOST/account-admin'); cy.visit('https://REDACTED-HOST/account-admin');