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

Simulator GUI: clear filters on scenario-result/ page doesn't work #305

Open
flumiii opened this issue Sep 17, 2024 · 1 comment
Open

Simulator GUI: clear filters on scenario-result/ page doesn't work #305

flumiii opened this issue Sep 17, 2024 · 1 comment

Comments

@flumiii
Copy link

flumiii commented Sep 17, 2024

Defect:
When trying to clear filters ... 'to be specified by @phos-web'

When this is fixed following Test can be added in the schenario-result.spec.ts file:

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();
});
@phos-web
Copy link
Contributor

phos-web commented Sep 18, 2024

When trying to clear filters with the "clearAllFiltersButton" filters still have selected values.
Concerning reproducability: In manual testing the clearing of all filters work. During automated testing with Playwright the clearing of the filters does not work.

flumiii pushed a commit to phos-web/citrus-simulator that referenced this issue Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants