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.
39 lines
1.1 KiB
39 lines
1.1 KiB
4 years ago
|
describe('My First Test', () => {
|
||
|
|
||
|
it('Sign Up / Sign In', (done) => {
|
||
|
cy.visit('http://localhost:8080/dashboard')
|
||
|
cy.get('body').then($body => {
|
||
|
|
||
|
if ($body.find('.welcome-msg').length > 0) {
|
||
|
cy.wait(12000);
|
||
|
cy.get('body').trigger('mousemove');
|
||
|
cy.wait(1000);
|
||
|
cy.contains('Let\'s Begin').click();
|
||
|
cy.wait(1000);
|
||
|
cy.get('input[type="text"]').type('pranavc@gmail.com');
|
||
|
cy.get('input[type="password"]').type('Password123.');
|
||
|
cy.contains('Sign Up').click()
|
||
|
} else {
|
||
|
cy.get('input[type="text"]').type('pranavc@gmail.com');
|
||
|
cy.get('input[type="password"]').type('Password123.');
|
||
|
cy.contains('Sign In').click()
|
||
|
}
|
||
|
done()
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
it('Create Project', async () => {
|
||
|
cy.wait(1000)
|
||
|
cy.contains('New Project').trigger('onmouseover').trigger('mouseenter');
|
||
|
cy.wait(1500)
|
||
|
cy.get('.create-external-db-project').click()
|
||
|
cy.wait(5500)
|
||
|
cy.get('.database-field input').click().clear().type('sakila')
|
||
|
cy.contains('Test Database Connection').click()
|
||
|
|
||
|
cy.wait(1500);
|
||
|
cy.contains('Ok & Save Project').click()
|
||
|
});
|
||
|
})
|