Browse Source

test(cypress): i18n corrections for consistency

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/936/head
Raju Udava 3 years ago
parent
commit
861c1e2a2f
  1. 4
      packages/nc-gui/pages/projects/index.vue
  2. 7
      scripts/cypress/integration/common/6d_language_validation.js

4
packages/nc-gui/pages/projects/index.vue

@ -30,7 +30,7 @@
> >
<v-overlay v-if="projectStatusUpdating" /> <v-overlay v-if="projectStatusUpdating" />
<v-row justify="center"> <v-row justify="center">
<h1 class="text-center display-1 pa-2"> <h1 class="text-center display-1 pa-2 nc-project-page-title">
<!-- <p v-if="screenSize" class="caption">Screen resolution : {{screenSize}}</p>--> <!-- <p v-if="screenSize" class="caption">Screen resolution : {{screenSize}}</p>-->
<!-- <v-icon large>mdi-folder-multiple-outline</v-icon>&nbsp;--> <!-- <v-icon large>mdi-folder-multiple-outline</v-icon>&nbsp;-->
@ -60,7 +60,7 @@
v-model="search" v-model="search"
v-ge="['home', 'project-search']" v-ge="['home', 'project-search']"
data-v-step="3" data-v-step="3"
class="caption pt-0 mt-0" class="caption pt-0 mt-0 nc-project-page-search"
:placeholder="$t('projects.search_project')" :placeholder="$t('projects.search_project')"
single-line single-line
hide-details hide-details

7
scripts/cypress/integration/common/6d_language_validation.js

@ -24,8 +24,11 @@ export const genTest = (type, xcdb) => {
// 1. Page title: "My Projects" // 1. Page title: "My Projects"
// 2. Button: "New Project" // 2. Button: "New Project"
// 3. Search box palceholder text: "Search Projects" // 3. Search box palceholder text: "Search Projects"
cy.get("b").contains(json.projects.my_projects).should("exist"); // cy.get("b").contains(json.projects.my_projects).should("exist");
cy.get("button.v-btn") cy.get(".nc-project-page-title")
.contains(json.projects.my_projects)
.should("exist");
cy.get(".nc-new-project-menu")
.contains(json.projects.create_new_project_button.text) .contains(json.projects.create_new_project_button.text)
.should("exist"); .should("exist");
cy.get(`[placeholder="${json.projects.search_project}"]`).should( cy.get(`[placeholder="${json.projects.search_project}"]`).should(

Loading…
Cancel
Save