mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 05:56:44 +00:00
fix: ManyToMany column naming
- Add suffix `List` instead of `MMList` - Proper child table name - Cypress test case corrections re #2429 Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -23,10 +23,10 @@ export const genTest = (apiType, dbType) => {
|
||||
|
||||
it("Expand m2m column", () => {
|
||||
// expand first row
|
||||
cy.get('td[data-col="FilmMMList"] div', { timeout: 12000 })
|
||||
cy.get('td[data-col="FilmList"] div', { timeout: 12000 })
|
||||
.first()
|
||||
.click({ force: true });
|
||||
cy.get('td[data-col="FilmMMList"] div .mdi-arrow-expand')
|
||||
cy.get('td[data-col="FilmList"] div .mdi-arrow-expand')
|
||||
.first()
|
||||
.click({ force: true });
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ export const genTest = (apiType, dbType) => {
|
||||
const verifyCsv = (retrievedRecords) => {
|
||||
// expected output, statically configured
|
||||
let storedRecords = [
|
||||
`Address,District,PostalCode,Phone,Location,CustomerList,StaffList,CityRead,StaffMMList`,
|
||||
`Address,District,PostalCode,Phone,Location,CustomerList,StaffList,CityRead,StaffList`,
|
||||
`1013 Tabuk Boulevard,West Bengali,96203,158399646978,[object Object],2,,Kanchrapara,`,
|
||||
`1892 Nabereznyje Telny Lane,Tutuila,28396,478229987054,[object Object],2,,Tafuna,`,
|
||||
`1993 Tabuk Lane,Tamil Nadu,64221,648482415405,[object Object],2,,Tambaram,`,
|
||||
@@ -231,7 +231,7 @@ export const genTest = (apiType, dbType) => {
|
||||
const verifyCsv = (retrievedRecords) => {
|
||||
// expected output, statically configured
|
||||
let storedRecords = [
|
||||
`Address,District,PostalCode,Phone,Location,CustomerList,StaffList,CityRead,StaffMMList`,
|
||||
`Address,District,PostalCode,Phone,Location,CustomerList,StaffList,CityRead,StaffList`,
|
||||
`1993 Tabuk Lane,Tamil Nadu,64221,648482415405,[object Object],2,,Tambaram,`,
|
||||
`1661 Abha Drive,Tamil Nadu,14400,270456873752,[object Object],1,,Pudukkottai,`,
|
||||
];
|
||||
@@ -270,7 +270,7 @@ export const genTest = (apiType, dbType) => {
|
||||
cy.get('[data-col="CustomerList"]').should("exist");
|
||||
cy.get('[data-col="StaffList"]').should("exist");
|
||||
cy.get('[data-col="CityRead"]').should("exist");
|
||||
cy.get('[data-col="StaffMMList"]').should("exist");
|
||||
cy.get('[data-col="StaffList"]').should("exist");
|
||||
|
||||
// has many field validation
|
||||
mainPage
|
||||
@@ -327,17 +327,17 @@ export const genTest = (apiType, dbType) => {
|
||||
it(`Share GRID view : Virtual column validation > many to many`, () => {
|
||||
// many-to-many field validation
|
||||
mainPage
|
||||
.getCell("StaffMMList", 1)
|
||||
.getCell("StaffList", 1)
|
||||
.click()
|
||||
.find("button.mdi-close-thick")
|
||||
.should("not.exist");
|
||||
mainPage
|
||||
.getCell("StaffMMList", 1)
|
||||
.getCell("StaffList", 1)
|
||||
.click()
|
||||
.find("button.mdi-plus")
|
||||
.should("not.exist");
|
||||
mainPage
|
||||
.getCell("StaffMMList", 1)
|
||||
.getCell("StaffList", 1)
|
||||
.click()
|
||||
.find("button.mdi-arrow-expand")
|
||||
.click();
|
||||
|
||||
@@ -228,7 +228,7 @@ export const genTest = (apiType, dbType) => {
|
||||
const verifyCsv = (retrievedRecords) => {
|
||||
// expected output, statically configured
|
||||
let storedRecords = [
|
||||
`Address,District,PostalCode,Phone,Location,CustomerList,StaffList,CityRead,StaffMMList`,
|
||||
`Address,District,PostalCode,Phone,Location,CustomerList,StaffList,CityRead,StaffList`,
|
||||
`1888 Kabul Drive,,20936,,1,,Ife,,`,
|
||||
`1661 Abha Drive,,14400,,1,,Pudukkottai,,`,
|
||||
];
|
||||
@@ -265,7 +265,7 @@ export const genTest = (apiType, dbType) => {
|
||||
cy.get('[data-col="CustomerList"]').should("exist");
|
||||
cy.get('[data-col="StaffList"]').should("exist");
|
||||
cy.get('[data-col="CityRead"]').should("exist");
|
||||
cy.get('[data-col="StaffMMList"]').should("exist");
|
||||
cy.get('[data-col="StaffList"]').should("exist");
|
||||
|
||||
// has many field validation
|
||||
mainPage
|
||||
@@ -322,17 +322,17 @@ export const genTest = (apiType, dbType) => {
|
||||
it(`Share GRID view : Virtual column validation > many to many`, () => {
|
||||
// many-to-many field validation
|
||||
mainPage
|
||||
.getCell("StaffMMList", 1)
|
||||
.getCell("StaffList", 1)
|
||||
.click()
|
||||
.find("button.mdi-close-thick")
|
||||
.should("not.exist");
|
||||
mainPage
|
||||
.getCell("StaffMMList", 1)
|
||||
.getCell("StaffList", 1)
|
||||
.click()
|
||||
.find("button.mdi-plus")
|
||||
.should("not.exist");
|
||||
mainPage
|
||||
.getCell("StaffMMList", 1)
|
||||
.getCell("StaffList", 1)
|
||||
.click()
|
||||
.find("button.mdi-arrow-expand")
|
||||
.click();
|
||||
|
||||
Reference in New Issue
Block a user