change account-admin url
This commit is contained in:
@@ -2,11 +2,11 @@ const MSG_ACCOUNT_NOT_UNIQUE = 'Account has already been registered.';
|
|||||||
|
|
||||||
describe('Account duplication check.', ()=>{
|
describe('Account duplication check.', ()=>{
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
const username = 'cindy';
|
const username = 'cindy';
|
||||||
const password = 'REDACTED-PWD';
|
const password = 'REDACTED-PWD';
|
||||||
|
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
|
|
||||||
cy.get('input[id="account"]').type(username);
|
cy.get('input[id="account"]').type(username);
|
||||||
cy.get('input[id="password"]').type(password);
|
cy.get('input[id="password"]').type(password);
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ const MSG_PWD_NOT_MATCHED = 'Confirm Password does not match.';
|
|||||||
|
|
||||||
describe('Confirm that two input passwords are equal.', ()=>{
|
describe('Confirm that two input passwords are equal.', ()=>{
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
const username = 'cindy';
|
const username = 'cindy';
|
||||||
const password = 'REDACTED-PWD';
|
const password = 'REDACTED-PWD';
|
||||||
|
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
|
|
||||||
cy.get('input[id="account"]').type(username);
|
cy.get('input[id="account"]').type(username);
|
||||||
cy.get('input[id="password"]').type(password);
|
cy.get('input[id="password"]').type(password);
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
describe('Create an Account', ()=>{
|
describe('Create an Account', ()=>{
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
const username = 'cindy';
|
const username = 'cindy';
|
||||||
const password = 'REDACTED-PWD';
|
const password = 'REDACTED-PWD';
|
||||||
|
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
|
|
||||||
cy.get('input[id="account"]').type(username);
|
cy.get('input[id="account"]').type(username);
|
||||||
cy.get('input[id="password"]').type(password);
|
cy.get('input[id="password"]').type(password);
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
describe('Delete an Account', ()=>{
|
describe('Delete an Account', ()=>{
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
const username = 'cindy';
|
const username = 'cindy';
|
||||||
const password = 'REDACTED-PWD';
|
const password = 'REDACTED-PWD';
|
||||||
|
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
|
|
||||||
cy.get('input[id="account"]').type(username);
|
cy.get('input[id="account"]').type(username);
|
||||||
cy.get('input[id="password"]').type(password);
|
cy.get('input[id="password"]').type(password);
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ Cypress.Commands.add('manualScrollToBottom', (repeats = 20) => {
|
|||||||
|
|
||||||
describe('Edit an account', ()=>{
|
describe('Edit an account', ()=>{
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
const username = 'cindy';
|
const username = 'cindy';
|
||||||
const password = 'REDACTED-PWD';
|
const password = 'REDACTED-PWD';
|
||||||
|
|
||||||
cy.visit('https://REDACTED-HOST/account/account-admin');
|
cy.visit('https://REDACTED-HOST/account-admin');
|
||||||
|
|
||||||
cy.get('input[id="account"]').type(username);
|
cy.get('input[id="account"]').type(username);
|
||||||
cy.get('input[id="password"]').type(password);
|
cy.get('input[id="password"]').type(password);
|
||||||
|
|||||||
@@ -6,11 +6,10 @@
|
|||||||
</figure>
|
</figure>
|
||||||
<div class="flex justify-between items-center relative"
|
<div class="flex justify-between items-center relative"
|
||||||
v-show="showMember">
|
v-show="showMember">
|
||||||
<!-- TODO: 換成人頭按鈕 帳號管理功能 -->
|
<!-- 不再使用本顆登出按鈕 <button id="logout_btn" class="btn btn-sm btn-neutral mr-2" @click.prevent="logOutButton">
|
||||||
<button id="logout_btn" class="btn btn-sm btn-neutral mr-2" @click.prevent="logOutButton">
|
|
||||||
Logout
|
Logout
|
||||||
</button>
|
</button> -->
|
||||||
<img v-show="false" id="acct_mgmt_button" src="@/assets/icon-head-black.svg" width="32" height="32"
|
<img v-show="true" id="acct_mgmt_button" src="@/assets/icon-head-black.svg" width="32" height="32"
|
||||||
class="cursor-pointer" @click="onAcctHeadClick"
|
class="cursor-pointer" @click="onAcctHeadClick"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ const routes = [
|
|||||||
name: "Account Management",
|
name: "Account Management",
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "/account/account-admin",
|
path: "/account-admin",
|
||||||
name: "AcctAdmin",
|
name: "AcctAdmin",
|
||||||
component: AccountAdmin,
|
component: AccountAdmin,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ export default defineComponent({
|
|||||||
await toast.success(i18next.t("AcctMgmt.MsgAccountAdded"));
|
await toast.success(i18next.t("AcctMgmt.MsgAccountAdded"));
|
||||||
await modalStore.closeModal();
|
await modalStore.closeModal();
|
||||||
acctMgmtStore.setShouldUpdateList(true);
|
acctMgmtStore.setShouldUpdateList(true);
|
||||||
await router.push('/account/account-admin');
|
await router.push('/account-admin');
|
||||||
break;
|
break;
|
||||||
case MODAL_ACCT_EDIT:
|
case MODAL_ACCT_EDIT:
|
||||||
// 要注意的是舊的username跟新的username可以是不同的
|
// 要注意的是舊的username跟新的username可以是不同的
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export default defineComponent({
|
|||||||
toast.success(i18next.t("AcctMgmt.MsgAccountDeleteSuccess"));
|
toast.success(i18next.t("AcctMgmt.MsgAccountDeleteSuccess"));
|
||||||
modalStore.closeModal();
|
modalStore.closeModal();
|
||||||
acctMgmtStore.setShouldUpdateList(true);
|
acctMgmtStore.setShouldUpdateList(true);
|
||||||
router.push("/account/account-admin");
|
router.push("/account-admin");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user