sonnar 8 left. random number fixed
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { getRandomInt } from '../../../src/utils/jsUtils';
|
||||
const MSG_PWD_NOT_MATCHED = 'Confirm Password does not match.';
|
||||
|
||||
describe('Confirm that two input passwords are equal.', ()=>{
|
||||
@@ -17,7 +18,7 @@ describe('Confirm that two input passwords are equal.', ()=>{
|
||||
cy.contains('button', 'Create New').should('be.visible');
|
||||
cy.contains('button', 'Create New').click();
|
||||
|
||||
const randomNumber = Math.floor(Math.random() * 1001);
|
||||
const randomNumber = getRandomInt(1000);
|
||||
|
||||
// 將整數轉換為四位數字串,並補零
|
||||
const fourDigitString = randomNumber.toString().padStart(4, '0');
|
||||
|
||||
Reference in New Issue
Block a user