mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
669 B
21 lines
669 B
3 years ago
|
describe('Rest api - New table', () => {
|
||
|
|
||
|
before(() => {
|
||
|
cy.waitForSpinners();
|
||
|
cy.openOrCreateRestProject();
|
||
|
})
|
||
|
|
||
|
it('Create Table', () => {
|
||
|
cy.get('.add-btn').click();
|
||
|
const name = 'Test' + Date.now();
|
||
|
cy.get('.nc-create-table-card .nc-table-name input[type="text"]').first().click().clear().type(name)
|
||
|
cy.get('.nc-create-table-card .nc-table-name-alias input[type="text"]').first().should('have.value', name.toLowerCase())
|
||
|
cy.wait(5000)
|
||
|
cy.get('.nc-create-table-card .nc-create-table-submit').first().click()
|
||
|
cy.get(`.project-tab:contains(${name})`).should('exist')
|
||
|
cy.url().should('contain', `?name=${name}&`)
|
||
|
});
|
||
|
|
||
|
|
||
|
})
|