Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -4,33 +4,33 @@
|
||||
// cindy.chang@dsp.im (Cindy Chang), 2024/07/02
|
||||
// imacat.yang@dsp.im (imacat), 2026/03/05
|
||||
|
||||
import { loginWithFixtures } from '../../support/intercept';
|
||||
import { loginWithFixtures } from "../../support/intercept";
|
||||
|
||||
describe('Password validation on create account.', () => {
|
||||
describe("Password validation on create account.", () => {
|
||||
beforeEach(() => {
|
||||
loginWithFixtures();
|
||||
cy.visit('/account-admin');
|
||||
cy.wait('@getUsers');
|
||||
cy.visit("/account-admin");
|
||||
cy.wait("@getUsers");
|
||||
});
|
||||
|
||||
it('When password is too short, confirm button stays disabled.', () => {
|
||||
cy.contains('button', 'Create New').should('be.visible').click();
|
||||
it("When password is too short, confirm button stays disabled.", () => {
|
||||
cy.contains("button", "Create New").should("be.visible").click();
|
||||
|
||||
cy.get('#input_account_field').type('unit-test-0001');
|
||||
cy.get('#input_name_field').type('unit-test-0001');
|
||||
cy.get("#input_account_field").type("unit-test-0001");
|
||||
cy.get("#input_name_field").type("unit-test-0001");
|
||||
// Password shorter than 6 characters
|
||||
cy.get('#input_first_pwd').type('aaa');
|
||||
cy.get("#input_first_pwd").type("aaa");
|
||||
|
||||
cy.contains('button', 'Confirm').should('be.disabled');
|
||||
cy.contains("button", "Confirm").should("be.disabled");
|
||||
});
|
||||
|
||||
it('When password meets minimum length, confirm button enables.', () => {
|
||||
cy.contains('button', 'Create New').should('be.visible').click();
|
||||
it("When password meets minimum length, confirm button enables.", () => {
|
||||
cy.contains("button", "Create New").should("be.visible").click();
|
||||
|
||||
cy.get('#input_account_field').type('unit-test-0001');
|
||||
cy.get('#input_name_field').type('unit-test-0001');
|
||||
cy.get('#input_first_pwd').type('aaaaaa');
|
||||
cy.get("#input_account_field").type("unit-test-0001");
|
||||
cy.get("#input_name_field").type("unit-test-0001");
|
||||
cy.get("#input_first_pwd").type("aaaaaa");
|
||||
|
||||
cy.contains('button', 'Confirm').should('be.enabled');
|
||||
cy.contains("button", "Confirm").should("be.enabled");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user