Browse Source

test(cypress): update test for new reset password page

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4134/head
Pranav C 2 years ago
parent
commit
9eb7624cf2
  1. 2
      packages/nc-gui/pages/account/index/users.vue
  2. 2
      scripts/cypress/integration/common/6h_change_password.js

2
packages/nc-gui/pages/account/index/users.vue

@ -30,7 +30,7 @@ const selectedTabKey = computed({
<a-tabs v-model:active-key="selectedTabKey" :open-keys="[]" mode="horizontal" class="nc-auth-tabs"> <a-tabs v-model:active-key="selectedTabKey" :open-keys="[]" mode="horizontal" class="nc-auth-tabs">
<a-tab-pane v-for="tab of tabs" :key="tab.key" class="select-none"> <a-tab-pane v-for="tab of tabs" :key="tab.key" class="select-none">
<template #tab> <template #tab>
<span> <span class="user-management-tab-label">
{{ tab.label }} {{ tab.label }}
</span> </span>
</template> </template>

2
scripts/cypress/integration/common/6h_change_password.js

@ -14,7 +14,7 @@ export const genTest = (apiType, dbType) => {
cy.get("[data-cy='nc-menu-accounts']").click(); cy.get("[data-cy='nc-menu-accounts']").click();
cy.get("[data-cy='nc-menu-accounts__user-settings']").click(); cy.get("[data-cy='nc-menu-accounts__user-settings']").click();
cy.get('.user-management-tab-label:contains("Reset Password")').should('exist').click()
cy.get("[data-cy='nc-user-settings-form']").should("exist"); cy.get("[data-cy='nc-user-settings-form']").should("exist");
}); });

Loading…
Cancel
Save