Add second cypress test
This commit is contained in:
parent
75a209e04f
commit
33757aa77e
|
|
@ -48,7 +48,7 @@ onMounted(async () => {
|
|||
<LearningPathDiagram class="max-w-[1680px] w-full" identifier="mainVisualization" v-bind:vertical="false"></LearningPathDiagram>
|
||||
</div>
|
||||
|
||||
<h1 class="m-12">{{ learningPathStore.learningPath.title }}</h1>
|
||||
<h1 data-cy="learning-path-title" class="m-12">{{ learningPathStore.learningPath.title }}</h1>
|
||||
|
||||
<div
|
||||
class="bg-white m-12 p-8 flex flex-col lg:flex-row divide-y lg:divide-y-0 lg:divide-x divide-gray-500 justify-start">
|
||||
|
|
|
|||
|
|
@ -14,4 +14,15 @@ describe('login', () => {
|
|||
cy.get('[data-cy="welcome-message"]').should('contain', 'Willkommen, Peter');
|
||||
});
|
||||
|
||||
it('login will redirect to requestet page', () => {
|
||||
cy.visit('/learningpath/versicherungsvermittlerin');
|
||||
cy.get('h1').should('contain', 'Login');
|
||||
|
||||
cy.get('#username').type('admin');
|
||||
cy.get('#password').type('test');
|
||||
|
||||
cy.get('[data-cy="login-button"]').click();
|
||||
|
||||
cy.get('[data-cy="learning-path-title"]').should('contain', 'Versicherungsvermittler');
|
||||
});
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue