Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RISDEV-6147 Add file numbers #73

Merged
merged 4 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ allowed_patterns:
- "key === 'Escape'"
- "key: 'value'"
- "key: 'other-value'"
- "with arrow keys"
# patterns that trigger talisman otherwise
- "{ label: 'passive item', route: { name: 'not-matching' }"
- "cross-origin-isolated=(),"
Expand Down
14 changes: 9 additions & 5 deletions frontend/e2e/RubrikenPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,15 @@ test(
ausserkrafttretedatumElement.fill('03.03.1970')
await expect(ausserkrafttretedatumElement).toHaveValue('03.03.1970')

// const aktenzeichenElement = page.getByText('Aktenzeichen')
// await expect(aktenzeichenElement).toHaveCount(1)
// aktenzeichenElement.fill('Az1')
// aktenzeichenElement.fill('Az2')
// await expect(aktenzeichenElement).toHaveValues(['Az1', 'Az2'])
const aktenzeichenElement = page.getByText('Aktenzeichen')
await expect(aktenzeichenElement).toHaveCount(1)
await aktenzeichenElement.fill('Az1')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to see that standard .fill() works with these components!

await aktenzeichenElement.press("Enter")
await aktenzeichenElement.fill('Az2')
await aktenzeichenElement.press("Enter")
// Created elements are list elements (<li>) so we need to select them explicitly
await expect(page.getByText('Az1')).toHaveCount(1)
await expect(page.getByText('Az2')).toHaveCount(1)

// const keinAktenzeichenElement = page.getByText('Kein Aktenzeichen')
// await expect(keinAktenzeichenElement).toHaveCount(1)
Expand Down
Loading
Loading