2018-11-10 14:33:47 +05:30
|
|
|
describe('/dev/applications - guest', () => {
|
2019-11-27 14:33:32 +05:30
|
|
|
it('should render login button', () => {
|
|
|
|
cy.visit('/dev/applications');
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
cy.get('[data-e2e-content] [href="/login"]').click();
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
cy.url().should('include', '/login');
|
|
|
|
});
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
it('should not allow create new app', () => {
|
|
|
|
cy.visit('/dev/applications/new');
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
cy.url().should('include', '/login');
|
|
|
|
});
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
it('should not allow edit app', () => {
|
|
|
|
cy.visit('/dev/applications/foo-bar');
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
cy.url().should('include', '/login');
|
|
|
|
});
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
it('should have feedback popup link', () => {
|
|
|
|
cy.visit('/dev/applications');
|
2018-11-10 14:33:47 +05:30
|
|
|
|
2019-11-27 14:33:32 +05:30
|
|
|
cy.get('[data-e2e-content] [data-e2e-button="feedbackPopup"]').click();
|
2019-12-28 02:10:26 +05:30
|
|
|
cy.getByTestId('feedbackPopup').should('be.visible');
|
2019-11-27 14:33:32 +05:30
|
|
|
});
|
2018-11-10 14:33:47 +05:30
|
|
|
});
|