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

Pc 839 contactmoment search company 6 7 8 #1047

Conversation

henokicatt
Copy link
Contributor

No description provided.

- Added `Company_PostcodeHuisnummerSearchButton` method in `Locators.cs` for locating the search button by postcode and house number.
- Added three new test methods in `SearchCompanyScenarios.cs`:
  * `SearchByVestigingsnummer_UniqueResultAsync`
  * `SearchByNonExistentKvknummerAsync`
  * `SearchByPostcodeAndHuisnummerAsync`
- Changed `SearchPersonScenarios` class visibility from `internal` to `public` in `SearchPersonScenarios.cs`.
Added a new test method `SearchByNonExistentKvknummerAsync` to verify the behavior when searching for a company by a kvknummer not present in the database. Removed a redundant line that checked if the heading "Bedrijfsinformatie" contains the text "Bedrijfsinformatie".
@henokicatt henokicatt changed the base branch from main to PC-839-Contactmoment-Search February 6, 2025 15:35
Refactor `SearchCompanyScenarios.cs` to replace text check with visibility check for the heading "Bedrijfsinformatie". Add new test methods `SearchByNonExistentBedrijfsnaamAsync` and `SearchByKvknummer_MultipleRecordsAsync` to test searching by non-existent company name and KVK number with multiple records, respectively. Minor formatting adjustment in `SearchPersonScenarios.cs`.
@henokicatt henokicatt marked this pull request as ready for review February 6, 2025 15:38
Copy link
Contributor

@felixcicatt felixcicatt left a comment

Choose a reason for hiding this comment

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

Looks good! Just a minor comment

Enhanced SearchCompanyScenarios.cs by adding `await Expect` statements to verify the visibility of company names after search actions. This ensures the correct company name is displayed on the information page. Minor formatting adjustments were also made for better code structure.
@felixcicatt felixcicatt merged commit 56d254a into PC-839-Contactmoment-Search Feb 11, 2025
1 check passed
@felixcicatt felixcicatt deleted the PC-839-Contactmoment-Search-Company-6-7-8 branch February 11, 2025 15:47
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

Successfully merging this pull request may close these issues.

2 participants