mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-11 15:59:06 +05:30
29 lines
794 B
JavaScript
29 lines
794 B
JavaScript
|
describe('/dev/applications - guest', () => {
|
||
|
it('should render login button', () => {
|
||
|
cy.visit('/dev/applications');
|
||
|
|
||
|
cy.get('[data-e2e-content] [href="/login"]').click();
|
||
|
|
||
|
cy.url().should('include', '/login');
|
||
|
});
|
||
|
|
||
|
it('should not allow create new app', () => {
|
||
|
cy.visit('/dev/applications/new');
|
||
|
|
||
|
cy.url().should('include', '/login');
|
||
|
});
|
||
|
|
||
|
it('should not allow edit app', () => {
|
||
|
cy.visit('/dev/applications/foo-bar');
|
||
|
|
||
|
cy.url().should('include', '/login');
|
||
|
});
|
||
|
|
||
|
it('should have feedback popup link', () => {
|
||
|
cy.visit('/dev/applications');
|
||
|
|
||
|
cy.get('[data-e2e-content] [data-e2e-button="feedbackPopup"]').click();
|
||
|
cy.get('[data-e2e="feedbackPopup"]').should('be.visible');
|
||
|
});
|
||
|
});
|