mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 01:37:43 +00:00
test(cypress): rest & graphql
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
describe('GraphQL api - Existing table with M2M', () => {
|
||||
|
||||
before(() => {
|
||||
cy.visit('http://localhost:3000', {retryOnNetworkFailure: true, timeout: 120000})
|
||||
cy.waitForSpinners();
|
||||
cy.openOrCreateGqlProject();
|
||||
})
|
||||
|
||||
it('Open Actor table', () => {
|
||||
|
||||
cy.get('.nc-project-tree :contains(Tables)', {timeout: 10000})
|
||||
.first().click()
|
||||
.contains('Actor', {timeout: 6000}).first().click({force: true});
|
||||
|
||||
|
||||
cy.get(`.project-tab:contains(Actor)`).should('exist')
|
||||
cy.url().should('contain', `?name=Actor&`)
|
||||
|
||||
cy.get('td[data-col="Actor <=> Film"] div').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');
|
||||
cy.contains('Save Row').should('exist');
|
||||
|
||||
});
|
||||
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user