major: startinblox-feature-requests#181
This commit is contained in:
@ -33,27 +33,27 @@ context('Edit Channel Browser Testing', () => {
|
||||
cy.get(menuQuery.join(' '))
|
||||
.invoke('attr', 'data-src')
|
||||
.then(url => cy.encodeUrl(url).then(id => {
|
||||
cy.visit('/circle/@' + id + '/circle-information/circle-edit');
|
||||
cy.visit('/circles/@' + id + '/circles-information/circles-edit');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/circle/@' + id + '/circle-information/circle-edit');
|
||||
expect(loc.pathname).to.eq('/circles/@' + id + '/circles-information/circles-edit');
|
||||
});
|
||||
}));
|
||||
});
|
||||
it('should enter new channel data', () => {
|
||||
cy.get('#circle-edit input[name="name"]').clear().type(channelName);
|
||||
cy.get('#circle-edit input[name="name"]').should('have.value', channelName);
|
||||
cy.get('#circle-edit input[name="description"]').clear().type(description);
|
||||
cy.get('#circle-edit input[name="description"]').should('have.value', description);
|
||||
cy.get('#circles-edit input[name="name"]').clear().type(channelName);
|
||||
cy.get('#circles-edit input[name="name"]').should('have.value', channelName);
|
||||
cy.get('#circles-edit input[name="description"]').clear().type(description);
|
||||
cy.get('#circles-edit input[name="description"]').should('have.value', description);
|
||||
});
|
||||
it('should click button to save the channel', () => {
|
||||
cy.get('#circle-edit input[value="Enregistrer"]').click();
|
||||
cy.get('#circles-edit input[value="Enregistrer"]').click();
|
||||
});
|
||||
it('should land on channel 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('/circle/@' + id + '/circle-information');
|
||||
expect(loc.pathname).to.eq('/circles/@' + id + '/circles-information');
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
Reference in New Issue
Block a user