Skip to content

Feature/bcss 20550 c6 logging#78

Merged
mepr1 merged 17 commits intomainfrom
feature/BCSS-20550-c6-logging
May 23, 2025
Merged

Feature/bcss 20550 c6 logging#78
mepr1 merged 17 commits intomainfrom
feature/BCSS-20550-c6-logging

Conversation

@mepr1
Copy link

@mepr1 mepr1 commented May 22, 2025

Description

Adding logging to compartment 6

Context

Logging helps with debugging, monitoring browser activity, tracking test steps, during test execution.

Type of changes

  • [ x] Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • [ x] I am familiar with the contributing guidelines
  • [x ] I have followed the code style of the project
  • I have added tests to cover my changes (where appropriate)
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • [x ] I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

Andyg79 and others added 15 commits May 15, 2025 13:50
<!-- markdownlint-disable-next-line first-line-heading -->
POM for subject dataset page

<!-- Describe your changes in detail. -->

Added a function to the subject dataset page so that some of the lines
in C6 can be refactored.

## Type of changes

<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply. -->

- [ x] Refactoring (non-breaking change)
- [x ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would change existing
functionality)
- [ ] Bug fix (non-breaking change which fixes an issue)

## Checklist

<!-- Go over all the following points, and put an `x` in all the boxes
that apply. -->

- [x ] I am familiar with the [contributing
guidelines](https://github.com/nhs-england-tools/playwright-python-blueprint/blob/main/CONTRIBUTING.md)
- [ x] I have followed the code style of the project
- [ ] I have added tests to cover my changes (where appropriate)
- [ ] I have updated the documentation accordingly
- [ ] This PR is a result of pair or mob programming

---

## Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others
privacy, we kindly ask you to NOT including [PII (Personal Identifiable
Information) / PID (Personal Identifiable
Data)](https://digital.nhs.uk/data-and-information/keeping-data-safe-and-benefitting-the-public)
or any other sensitive data in this PR (Pull Request) and the codebase
changes. We will remove any PR that do contain any sensitive
information. We really appreciate your cooperation in this matter.

- [x ] I confirm that neither PII/PID nor sensitive data are included in
this PR and the codebase changes.
<!-- markdownlint-disable-next-line first-line-heading -->
## Description

<!-- Describe your changes in detail. -->
Adding a new util to dynamically get input / select locators

## Context

<!-- Why is this change required? What problem does it solve? -->
reduces the clutter of locators in the investigation dataset POM

## Type of changes

<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply. -->

- [x] Refactoring (non-breaking change)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would change existing
functionality)
- [ ] Bug fix (non-breaking change which fixes an issue)

## Checklist

<!-- Go over all the following points, and put an `x` in all the boxes
that apply. -->

- [x] I am familiar with the [contributing
guidelines](https://github.com/nhs-england-tools/playwright-python-blueprint/blob/main/CONTRIBUTING.md)
- [x] I have followed the code style of the project
- [x] I have added tests to cover my changes (where appropriate)
- [x] I have updated the documentation accordingly
- [ ] This PR is a result of pair or mob programming

---

## Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others
privacy, we kindly ask you to NOT including [PII (Personal Identifiable
Information) / PID (Personal Identifiable
Data)](https://digital.nhs.uk/data-and-information/keeping-data-safe-and-benefitting-the-public)
or any other sensitive data in this PR (Pull Request) and the codebase
changes. We will remove any PR that do contain any sensitive
information. We really appreciate your cooperation in this matter.

- [x] I confirm that neither PII/PID nor sensitive data are included in
this PR and the codebase changes.
Refactored compartment 6 to use the new util.
…ture/BCSS-20521-c6-investigation-dataset-navigation-util

# Conflicts:
#	tests/smokescreen/test_compartment_6.py
…ture/BCSS-20521-c6-investigation-dataset-navigation-util

# Conflicts:
#	tests/smokescreen/test_compartment_6.py
# Conflicts:
#	docs/utility-guides/InvestigationDataset.md
#	utils/investigation_dataset.py
@mepr1 mepr1 requested a review from a team May 22, 2025 08:27
@mepr1 mepr1 added the enhancement New feature or request label May 22, 2025
Copy link

@adrianoaru-nhs adrianoaru-nhs left a comment

Choose a reason for hiding this comment

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

There is some inconsistency between the logging for the different results:
High-risk result for a younger subject
Selected NHS number for younger subject: 9868008891

Processing LNPCP result for an older subject
Selected NHS number for older subject: 9980087080

Could you either make them all "High-risk result for a younger subject" or "Processing High-risk result for a younger subject"

@sonarqubecloud
Copy link

@mepr1 mepr1 merged commit 01bd025 into main May 23, 2025
10 checks passed
@mepr1 mepr1 deleted the feature/BCSS-20550-c6-logging branch May 23, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments