Skip to content

Commit

Permalink
Page shows Formaldaten heading including e2e test
Browse files Browse the repository at this point in the history
RISDEV-6139
  • Loading branch information
reckseba committed Jan 15, 2025
1 parent e9d8c46 commit 0cd7948
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions frontend/e2e/RubrikenPage.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { test, expect } from '@playwright/test'

test(
'Visiting the Rubriken step of creating a documentUnit',
{ tag: ['@RISDEV-6043'] },
async ({ page }) => {
// In the future the new documentUnit needs to be mocked
// As this functionality is not there yet we can simply enter the desired page and finish the process
await page.goto('/documentUnit/KSNR054920707/rubriken')
await expect(page.getByText('Rubriken')).toHaveCount(1)
await expect(page.getByText('Formaldaten')).toHaveCount(2)
},
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<script lang="ts" setup></script>
<script lang="ts" setup>
import TitleElement from '@/components/TitleElement.vue'
</script>

<template>
<div>Hallo Welt</div>
<div class="flex w-full flex-1 grow flex-col p-24">
<div aria-label="Formaldaten" class="flex flex-col gap-24 bg-white p-24">
<TitleElement>Formaldaten</TitleElement>
</div>
</div>
</template>

0 comments on commit 0cd7948

Please sign in to comment.