Skip to content
Snippets Groups Projects

Release/config refactoring

Merged Jean-Baptiste Pasquier requested to merge release/config-refactoring into master
Files
108
@@ -33,9 +33,9 @@ context('Delete Channel Browser Testing', () => {
@@ -33,9 +33,9 @@ context('Delete Channel Browser Testing', () => {
cy.get(menuQuery.join(' '))
cy.get(menuQuery.join(' '))
.invoke('attr', 'data-src')
.invoke('attr', 'data-src')
.then(url => cy.encodeUrl(url).then(id => {
.then(url => cy.encodeUrl(url).then(id => {
cy.visit('/circle/@' + id + '/circle-information');
cy.visit('/circles/@' + id + '/circles-information');
cy.location().should((loc) => {
cy.location().should((loc) => {
expect(loc.pathname).to.eq('/circle/@' + id + '/circle-information');
expect(loc.pathname).to.eq('/circles/@' + id + '/circles-information');
});
});
}));
}));
});
});
@@ -43,18 +43,18 @@ context('Delete Channel Browser Testing', () => {
@@ -43,18 +43,18 @@ context('Delete Channel Browser Testing', () => {
cy.get(menuCountQuery.join(' ')).its('length').then(length => channelsLength = length);
cy.get(menuCountQuery.join(' ')).its('length').then(length => channelsLength = length);
});
});
it('should click button to retire the channel', () => {
it('should click button to retire the channel', () => {
cy.get('#circle-profile solid-delete[data-label="Supprimer le canal"] button').click();
cy.get('#circles-profile solid-delete[data-label="Supprimer le canal"] button').click();
});
});
it('should stay on channel edit screen', () => {
it('should stay on channel edit screen', () => {
cy.get(menuQuery.join(' '))
cy.get(menuQuery.join(' '))
.invoke('attr', 'data-src')
.invoke('attr', 'data-src')
.then(url => cy.encodeUrl(url).then(id => {
.then(url => cy.encodeUrl(url).then(id => {
cy.location().should((loc) => {
cy.location().should((loc) => {
expect(loc.pathname).to.eq('/circle/@' + id + '/circle-information');
expect(loc.pathname).to.eq('/circles/@' + id + '/circles-information');
});
});
}));
}));
});
});
it('should check if chennel was retired', () => {
it('should check if channel was retired', () => {
cy.get(menuCountQuery.join(' ')).its('length').should(length => {
cy.get(menuCountQuery.join(' ')).its('length').should(length => {
expect(length).to.eq(channelsLength - 1);
expect(length).to.eq(channelsLength - 1);
});
});
Loading