Steuerkram/tests/e2e/specs/bank-sortierung.spec.js

18 lines
700 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// @ts-check
// „Bank buchen“ sortiert standardmäßig älteste zuerst (Issue #219): Ohne
// Parameter ist im Filter „Aufsteigend“ vorbelegt, „Absteigend“ bleibt wählbar.
const { test, expect } = require('@playwright/test')
const { gotoOk } = require('../helpers/app')
test.describe('Bank buchen – Sortierrichtung', () => {
test('ohne Parameter ist „Aufsteigend“ vorbelegt', async ({ page }) => {
await gotoOk(page, '/bank')
await expect(page.locator('select[name="dir"]')).toHaveValue('asc')
})
test('dir=desc bleibt ausgewählt', async ({ page }) => {
await gotoOk(page, '/bank?dir=desc')
await expect(page.locator('select[name="dir"]')).toHaveValue('desc')
})
})