cy: no more naviagte
This commit is contained in:
@ -25,12 +25,20 @@ context('Edit Project Browser Testing', () => {
|
||||
it('should visit user login screen', () => cy.userLogin());
|
||||
it('should login', () => cy.login());
|
||||
describe('Project Edition process', () => {
|
||||
it('should visit the project list screen', () => cy.naviagte('/admin/admin-projects'));
|
||||
it('should visit the project list screen', () => {
|
||||
cy.visit('/admin/admin-projects');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/admin/admin-projects');
|
||||
});
|
||||
});
|
||||
it('should visit the last project edit screen', () => {
|
||||
cy.get(menuQuery.join(' '))
|
||||
.invoke('attr', 'data-src')
|
||||
.then(url => cy.encodeUrl(url).then(id => {
|
||||
cy.naviagte('/project/@' + id + '/project-information/project-edit');
|
||||
.then(url => cy.encodeUrl(url).then(id => {{
|
||||
cy.visit('/project/@' + id + '/project-information/project-edit');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/project/@' + id + '/project-information/project-edit');
|
||||
});
|
||||
}));
|
||||
});
|
||||
it('should enter new project data', () => {
|
||||
|
Reference in New Issue
Block a user