update: wrapping up and final adjustments to completed test flows
This commit is contained in:
@ -21,30 +21,17 @@ context('Leave Project Browser Testing', () => {
|
||||
beforeEach(() => cy.restoreLocalStorage());
|
||||
afterEach(() => cy.saveLocalStorage());
|
||||
it('should visit user login screend', () => cy.userLogin());
|
||||
it('should login', () => cy.login());
|
||||
describe('Project Leaving process', () => {
|
||||
it('should login', () => cy.login());
|
||||
it('should visit the projects list screen', () => cy.naviagte('/admin/admin-projects'));
|
||||
it('should click the last project leave button', () => {
|
||||
cy.get(tableListQuery.join(' ')).its('length').as('projectsLength');
|
||||
cy.get(tableQuery.join(' ')).click();
|
||||
});
|
||||
it('should check', () => {
|
||||
it('should check if project was left', () => {
|
||||
cy.get(tableListQuery.join(' ')).its('length').should(length => {
|
||||
expect(length).to.eq(this.projectsLength - 1);
|
||||
});
|
||||
});
|
||||
/*it('should click button to retire the project', () => {
|
||||
cy.scrollTo('bottom');
|
||||
cy.get('solid-delete[data-label="Retirer"] button').click();
|
||||
});
|
||||
it('should stay on project edit 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/project-edit');
|
||||
});
|
||||
}));
|
||||
});*/
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user