major: startinblox-feature-requests#181
This commit is contained in:
@ -35,29 +35,29 @@ context('Edit Project Browser Testing', () => {
|
||||
cy.get(menuQuery.join(' '))
|
||||
.invoke('attr', 'data-src')
|
||||
.then(url => cy.encodeUrl(url).then(id => {
|
||||
cy.visit('/project/@' + id + '/project-information/project-edit');
|
||||
cy.visit('/projects/@' + id + '/projects-information/projects-edit');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/project/@' + id + '/project-information/project-edit');
|
||||
expect(loc.pathname).to.eq('/projects/@' + id + '/projects-information/projects-edit');
|
||||
});
|
||||
}));
|
||||
});
|
||||
it('should enter new project data', () => {
|
||||
cy.get('#project-edit input[name="customer.name"]').clear().type(customerName);
|
||||
cy.get('#project-edit input[name="customer.name"]').should('have.value', customerName);
|
||||
cy.get('#project-edit input[name="name"]').clear().type(projectName);
|
||||
cy.get('#project-edit input[name="name"]').should('have.value', projectName);
|
||||
cy.get('#project-edit textarea[name="description"]').clear().type(description);
|
||||
cy.get('#project-edit textarea[name="description"]').should('have.value', description);
|
||||
cy.get('#projects-edit input[name="customer.name"]').clear().type(customerName);
|
||||
cy.get('#projects-edit input[name="customer.name"]').should('have.value', customerName);
|
||||
cy.get('#projects-edit input[name="name"]').clear().type(projectName);
|
||||
cy.get('#projects-edit input[name="name"]').should('have.value', projectName);
|
||||
cy.get('#projects-edit textarea[name="description"]').clear().type(description);
|
||||
cy.get('#projects-edit textarea[name="description"]').should('have.value', description);
|
||||
});
|
||||
it('should click button to save the project', () => {
|
||||
cy.get('#project-edit input[value="Enregistrer"]').click();
|
||||
cy.get('#projects-edit input[value="Enregistrer"]').click();
|
||||
});
|
||||
it('should land on project information screen', () => {
|
||||
cy.get(menuQuery.join(' '))
|
||||
.invoke('attr', 'data-src')
|
||||
.then(url => cy.encodeUrl(url).then(id => {
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/project/@' + id + '/project-information');
|
||||
expect(loc.pathname).to.eq('/projects/@' + id + '/projects-information');
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
Reference in New Issue
Block a user