test(cypress): rest & graphql

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2021-08-24 19:01:10 +05:30
parent 424e138c0c
commit 2f2adabd06
15 changed files with 359 additions and 14910 deletions

View File

@@ -0,0 +1,27 @@
describe('GraphQL api - Existing table', () => {
before(() => {
cy.visit('http://localhost:3000', {retryOnNetworkFailure: true, timeout: 120000})
cy.waitForSpinners();
cy.openOrCreateGqlProject();
})
it('Open Country table', () => {
cy.get('.nc-project-tree :contains(Tables)', {timeout: 10000})
.first().click()
.contains('Country', {timeout: 6000}).first().click({force: true});
cy.get(`.project-tab:contains(Country):visible`).should('exist')
cy.url().should('contain', `?name=Country&`)
cy.get('td[data-col="Country => City"] div:visible', {timeout: 6000}).first().click()
cy.get('td[data-col="Country => City"] div .mdi-arrow-expand:visible').first().click()
cy.get(":contains(Link to 'City'):visible").should('exist')
cy.get(":contains(Link to 'City'):visible").first().click()
});
})