Browse Source

cypress: update latest sort option text

pull/2687/head
Wing-Kam Wong 2 years ago
parent
commit
cf8cf99442
  1. 2
      packages/noco-docs/content/en/setup-and-usages/column-operations.md
  2. 4
      scripts/cypress/integration/common/1c_sql_view.js
  3. 2
      scripts/cypress/integration/common/1e_meta_sync.js
  4. 2
      scripts/cypress/integration/common/1e_pg_meta_sync.js
  5. 4
      scripts/cypress/integration/common/3a_filter_sort_fields_operations.js
  6. 6
      scripts/cypress/integration/common/4f_grid_view_share.js
  7. 4
      scripts/cypress/integration/common/4f_pg_grid_view_share.js

2
packages/noco-docs/content/en/setup-and-usages/column-operations.md

@ -38,7 +38,7 @@ Tip: You can create different grid views with different fields shown in each vie
## Sort ## Sort
Sorting allows you to order contents alphabetically (A -> Z) / (Z -> A) (OR) in ascending / descending order. NocoDB allows nested sorting. You can choose column fields & order in which to apply nested sorting. Lookup, Formula, Nested Data are also supported in Sorting. Sorting allows you to order contents alphabetically (A → Z) / (Z → A) (OR) in ascending / descending order. NocoDB allows nested sorting. You can choose column fields & order in which to apply nested sorting. Lookup, Formula, Nested Data are also supported in Sorting.
<img src="https://user-images.githubusercontent.com/86527202/144435903-84ed8e81-64ec-45e5-a045-9a993238c78c.png" width="75%"/> <img src="https://user-images.githubusercontent.com/86527202/144435903-84ed8e81-64ec-45e5-a045-9a993238c78c.png" width="75%"/>

4
scripts/cypress/integration/common/1c_sql_view.js

@ -54,7 +54,7 @@ export const genTest = (apiType, dbType) => {
mainPage.unhideField(`ZipCode`); mainPage.unhideField(`ZipCode`);
// Column operations: Sort // Column operations: Sort
mainPage.sortField("Name", "Z -> A"); mainPage.sortField("Name", "Z A");
mainPage mainPage
.getCell(`Name`, 1) .getCell(`Name`, 1)
.contains("ZACHARY HITE") .contains("ZACHARY HITE")
@ -114,7 +114,7 @@ export const genTest = (apiType, dbType) => {
mainPage.unhideField("FilmInfo"); mainPage.unhideField("FilmInfo");
// Column operations: Sort // Column operations: Sort
mainPage.sortField("FirstName", "Z -> A"); mainPage.sortField("FirstName", "Z A");
mainPage mainPage
.getCell(`FirstName`, 1) .getCell(`FirstName`, 1)
.contains("ZERO") .contains("ZERO")

2
scripts/cypress/integration/common/1e_meta_sync.js

@ -148,7 +148,7 @@ export const genTest = (apiType, dbType) => {
cy.openTableTab("Table1", 9); cy.openTableTab("Table1", 9);
mainPage.hideField("Col1"); mainPage.hideField("Col1");
mainPage.sortField("Col1", "Z -> A"); mainPage.sortField("Col1", "9 → 1");
mainPage.filterField(`Col1`, ">=", "5"); mainPage.filterField(`Col1`, ">=", "5");
cy.get(".nc-grid-row").should("have.length", 5); cy.get(".nc-grid-row").should("have.length", 5);
cy.closeTableTab("Table1"); cy.closeTableTab("Table1");

2
scripts/cypress/integration/common/1e_pg_meta_sync.js

@ -156,7 +156,7 @@ export const genTest = (apiType, dbType) => {
cy.openTableTab("Table1", 9); cy.openTableTab("Table1", 9);
mainPage.hideField("Col1"); mainPage.hideField("Col1");
mainPage.sortField("Col1", "Z -> A"); mainPage.sortField("Col1", "9 → 1");
mainPage.filterField(`Col1`, ">=", "5"); mainPage.filterField(`Col1`, ">=", "5");
cy.get(".nc-grid-row").should("have.length", 5); cy.get(".nc-grid-row").should("have.length", 5);
cy.closeTableTab("Table1"); cy.closeTableTab("Table1");

4
scripts/cypress/integration/common/3a_filter_sort_fields_operations.js

@ -140,7 +140,7 @@ export const genTest = (apiType, dbType) => {
describe(`Sort operations`, () => { describe(`Sort operations`, () => {
it("Enable sort", () => { it("Enable sort", () => {
mainPage.sortField("Country", "Z -> A"); mainPage.sortField("Country", "Z A");
// Sort menu operations (Country Column, Z->A) // Sort menu operations (Country Column, Z->A)
// cy.get(".nc-sort-menu-btn").click(); // cy.get(".nc-sort-menu-btn").click();
@ -151,7 +151,7 @@ export const genTest = (apiType, dbType) => {
// ).click(); // ).click();
// cy.get(".nc-sort-dir-select div").first().click(); // cy.get(".nc-sort-dir-select div").first().click();
// cy.get( // cy.get(
// '.menuable__content__active .v-list-item:contains("Z -> A")' // '.menuable__content__active .v-list-item:contains("Z A")'
// ).click(); // ).click();
cy.contains("Zambia").should("exist"); cy.contains("Zambia").should("exist");

6
scripts/cypress/integration/common/4f_grid_view_share.js

@ -88,7 +88,7 @@ export const genTest = (apiType, dbType) => {
.contains("Address1") .contains("Address1")
.click(); .click();
mainPage.hideField("Address2"); mainPage.hideField("Address2");
mainPage.sortField("District", "Z -> A"); mainPage.sortField("District", "Z A");
mainPage.filterField("Address", "is like", "Ab"); mainPage.filterField("Address", "is like", "Ab");
generateViewLink("combined"); generateViewLink("combined");
cy.log(viewURL["combined"]); cy.log(viewURL["combined"]);
@ -209,8 +209,8 @@ export const genTest = (apiType, dbType) => {
}); });
it(`Share ${viewType.toUpperCase()} view : Enable sort`, () => { it(`Share ${viewType.toUpperCase()} view : Enable sort`, () => {
// Sort menu operations (Country Column, Z->A) // Sort menu operations (Country Column, ZA)
mainPage.sortField("District", "Z -> A"); mainPage.sortField("District", "Z A");
mainPage mainPage
.getCell("District", 1) .getCell("District", 1)
.contains("West Bengali") .contains("West Bengali")

4
scripts/cypress/integration/common/4f_pg_grid_view_share.js

@ -88,7 +88,7 @@ export const genTest = (apiType, dbType) => {
.contains("Address1") .contains("Address1")
.click(); .click();
mainPage.hideField("Address2"); mainPage.hideField("Address2");
mainPage.sortField("Address", "Z -> A"); mainPage.sortField("Address", "Z A");
mainPage.filterField("Address", "is like", "Ab"); mainPage.filterField("Address", "is like", "Ab");
generateViewLink("combined"); generateViewLink("combined");
cy.log(viewURL["combined"]); cy.log(viewURL["combined"]);
@ -207,7 +207,7 @@ export const genTest = (apiType, dbType) => {
it(`Share ${viewType.toUpperCase()} view : Enable sort`, () => { it(`Share ${viewType.toUpperCase()} view : Enable sort`, () => {
// Sort menu operations (Country Column, Z->A) // Sort menu operations (Country Column, Z->A)
mainPage.sortField("Address", "Z -> A"); mainPage.sortField("Address", "Z A");
mainPage mainPage
.getCell("Address", 1) .getCell("Address", 1)
.contains("669 Firozabad Loop") .contains("669 Firozabad Loop")

Loading…
Cancel
Save