cy: no more naviagte
This commit is contained in:
@ -23,12 +23,20 @@ context('Retire Channel Browser Testing', () => {
|
||||
it('should login', () => cy.login());
|
||||
describe('Channel Retirement process', () => {
|
||||
let channelsLength;
|
||||
it('should visit the channels list screen', () => cy.naviagte('/admin'));
|
||||
it('should visit the channels list screen', () => {
|
||||
cy.visit('/admin');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/admin');
|
||||
});
|
||||
});
|
||||
it('should visit the last channel edit screen', () => {
|
||||
cy.get(menuQuery.join(' '))
|
||||
.invoke('attr', 'data-src')
|
||||
.then(url => cy.encodeUrl(url).then(id => {
|
||||
cy.naviagte('/circle/@' + id + '/circle-information/circle-edit');
|
||||
cy.visit('/circle/@' + id + '/circle-information/circle-edit');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/circle/@' + id + '/circle-information/circle-edit');
|
||||
});
|
||||
}));
|
||||
});
|
||||
it('should count the number of joined channels', () => {
|
||||
|
Reference in New Issue
Block a user