cy: no more naviagte
This commit is contained in:
@ -23,12 +23,20 @@ context('Retire Project Browser Testing', () => {
|
||||
it('should login', () => cy.login());
|
||||
describe('Project Retirement process', () => {
|
||||
let projectsLength;
|
||||
it('should visit the projects list screen', () => cy.naviagte('/admin/admin-projects'));
|
||||
it('should visit the projects 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');
|
||||
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 count the number of joined projects', () => {
|
||||
|
Reference in New Issue
Block a user