mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 13:06:39 +00:00
47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
const genTest = (type) => {
|
|
|
|
describe(`${type.toUpperCase()} api - Existing table with M2M'`, () => {
|
|
|
|
|
|
before(() => {
|
|
cy.waitForSpinners();
|
|
if (type === 'rest') {
|
|
cy.openOrCreateRestProject({
|
|
new: true
|
|
});
|
|
} else {
|
|
cy.openOrCreateGqlProject({
|
|
new: true
|
|
});
|
|
}
|
|
})
|
|
|
|
it('Open Actor table', () => {
|
|
|
|
|
|
cy.openTableTab('Actor');
|
|
|
|
|
|
cy.get(`.project-tab:contains(Actor)`).should('exist')
|
|
cy.url().should('contain', `?name=Actor&`)
|
|
|
|
cy.get('td[data-col="Actor <=> Film"] div', {timeout: 12000}).first().click({force: true})
|
|
cy.get('td[data-col="Actor <=> Film"] div .mdi-arrow-expand').first().click({force: true})
|
|
//
|
|
// cy.get(":contains(Link to 'City')").should('exist')
|
|
//
|
|
// cy.get(":contains(Link to 'City'):visible").click()
|
|
|
|
cy.get('.child-card:visible').should('exist').first().click()
|
|
|
|
cy.contains('Save Row').should('exist');
|
|
|
|
});
|
|
|
|
|
|
})
|
|
}
|
|
|
|
genTest('rest')
|
|
genTest('graphql')
|