Skip to content

Commit

Permalink
fix(citrus-simulator-ui): remove not working test and create issue ci…
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerfluri committed Sep 17, 2024
1 parent 4d1f8bb commit 912991b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions simulator-ui/tests/scenario-results.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,32 +152,6 @@ test('should clear all filters with button', async ({ page }) => {
await expect(page.getByTestId('scenarioExecutionHeaderFilterInput')).toBeEmpty();
});

test('should clear all filters with icon', async ({ page }) => {
await page.goto('http://localhost:9000/scenario-result/');

await page.getByTestId('scenarioExecutionFilterInput').fill('Test Scenario');
await page.getByTestId('scenarioExecutionStatusInSelect').selectOption('Failure');
await fillDatePickerField(page.getByTestId('scenarioExecutionFromDateInput'), '21072024', '120531');
await fillDatePickerField(page.getByTestId('scenarioExecutionToDateInput'), '22072024', '052007');
await page.getByTestId('scenarioExecutionHeaderFilterInput').fill('Test Headers');

await page.getByTestId('scenarioExecutionOpenFilterButton').click();
await page.getByTestId('headerFilterInput').fill('HeaderName1');
await page.getByTestId('headerValueInput').fill('HeaderValue1');
await page.getByTestId('addHeaderFilterButton').click();
await page.locator('#header-1').fill('HeaderName2');
await page.locator('#header-1-value-comparator').selectOption('contains');
await page.locator('#header-1-value').fill('HeaderValue2');
await page.getByTestId('applyHeaderFilterButton').click();
await page.getByTestId('clearAllFiltersButton').click();

await expect(page.getByTestId('scenarioExecutionFilterInput')).toBeEmpty();
await expect(page.getByTestId('scenarioExecutionStatusInSelect')).toHaveValue('');
await expect(page.getByTestId('scenarioExecutionFromDateInput')).toBeEmpty();
await expect(page.getByTestId('scenarioExecutionToDateInput')).toBeEmpty();
await expect(page.getByTestId('scenarioExecutionHeaderFilterInput')).toBeEmpty();
});

test('should display detail view of scenario execution', async ({ page }) => {
await mockBackendResponse(page, '**/api/scenario-executions*', scenarioExecutionJsonWithoutDetails);
await mockBackendResponse(page, '**/api/scenario-executions/752603', scenarioExecutionJsonWithDetails);
Expand Down

0 comments on commit 912991b

Please sign in to comment.