From aaed71e1c8d6884e0f13beaf4c6c29f3460efa13 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 19 Aug 2024 23:15:19 +0200 Subject: [PATCH] tests: fix update general configuration test --- frontend/tests/application-configuration.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/tests/application-configuration.spec.ts b/frontend/tests/application-configuration.spec.ts index 7bfb033..d8d0b09 100644 --- a/frontend/tests/application-configuration.spec.ts +++ b/frontend/tests/application-configuration.spec.ts @@ -13,11 +13,12 @@ test('Update general configuration', async ({ page }) => { await expect(page.getByRole('status')).toHaveText( 'Application configuration updated successfully' ); + await expect(page.getByTestId('application-name')).toHaveText('Updated Name'); await page.reload(); - await expect(page.getByTestId('application-name')).toHaveText('Updated Name'); - await expect(page.getByTestId('session-duration')).toHaveText('30'); + await expect(page.getByLabel('Name')).toHaveValue('Updated Name'); + await expect(page.getByLabel('Session Duration')).toHaveValue('30'); }); test('Update application images', async ({ page }) => {