多维表格
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.
 
 
 
 
 
 

38 lines
1.2 KiB

describe('My First Test', () => {
it('Does not do much!', () => {
describe('My First Test', () => {
it('Sign Up / Sign In', () => {
cy.visit('http://localhost:3000')
cy.get('body').then($body => {
if ($body.find('.let-us-begin').length > 0) {
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()
}
});
});
it('Create Project', () => {
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()
});
})
})
})