Skip to content

[APP-928] fix: e2e linting - #3555

Open
emyl3 wants to merge 15 commits into
mainfrom
el/948
Open

[APP-928] fix: e2e linting#3555
emyl3 wants to merge 15 commits into
mainfrom
el/948

Conversation

@emyl3

@emyl3 emyl3 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

  • Get eslint running in CI and fix eslint errors
  • change no-unnecessary-waiting to a warning so that it will pass CI and we can re-enable once fixing these broken specs

Tickets

Checklist before requesting a review

  • PR focuses on a single story
  • Code has been fully tested to meet acceptance criteria
  • PR is reasonably small and reviewable (Generally less than 10 files and 500 changed lines)
  • All new functions/classes/components reasonably small
  • Functions/classes/components focused on one responsibility
  • Code easy to understand and modify (clarity over concise/clever)
  • PRs containing TypeScript follow the Do's and Don'ts
  • PR does not contain hardcoded values (Uses constants)
  • All code is covered by unit or feature tests

}

selectEventTypeInvestigation() {
// eslint-disable-next-line cypress/no-unnecessary-waiting

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

started to fix these no-unnecessary-waiting ones but realized there were a lot...
fixing these would require some effort to test to see if they are actually needed or we can use an alternative... so leaving as folks clean up other tests...

Cypress.$(elt).mouseover(() => Cypress.$(elt).addClass("pageElementHover"))
.mouseout(() => Cypress.$(elt).removeClass("pageElementHover"));
}
cy.get('body').then(() => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this test is not being actually run -- commented out for now until we get a chance to fix this spec

@emyl3
emyl3 marked this pull request as ready for review August 12, 2026 22:33
@emyl3
emyl3 requested a review from a team as a code owner August 12, 2026 22:33
@emyl3
emyl3 requested review from adaball and krista-skylight and removed request for a team August 12, 2026 22:33
runTests: false
working-directory: testing/regression/

- name: Lint

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we want to format too... 😈 (for another PR for sure)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(nit, b): given it takes a while to build all the docker and these two steps are fast, I think we should move them to the beginning so if this fails it's as fast as possible

Comment thread .github/workflows/Regression-tests.yaml Outdated
submitNewTab() {
var opener = {};
opener.isUniqueElementName = this.isUniqueElementName;
opener.isUniqueElementName = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

q: shouldn't opener.isUniqueElementName be a function which returns true?

The old value of opener.isUniqueElementName was the function this.isUniqueElementName which returns true but it has been changed to the value true.


Then("User will see the following by {string} {string} {string}", (content, type, description) => {
manageSectionPage.seeElementOnManageSection(content, type, description);
Then("User will see the following by {string} {string} {string}", (content, type) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

q: is the third {string} needed here since you've reduced the function call params to two?

It looks like all three are still used in e2e/features/edit-page/manageSection.feature so maybe put the third function param as _ or remove the third value in the .feature file altogether.

import { faker } from "@faker-js/faker";

When("I Generate HL7 messages to api and mark as review", (string) => {
When("I Generate HL7 messages to api and mark as review", () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

q: is this When statement used anywhere? Searching locally only shows its definition.

import UtilityFunctions from "@pages/utilityFunctions.page";

When("I Seed HL7 {string} messages to api", (string) => {
When("I Seed HL7 {string} messages to api", () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

q: is this When statement used anywhere? Searching locally only shows its definition.

@mcmcgrath13 mcmcgrath13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

couple things to change on the CI, but overall a nice QoL improvement!

@adaball adaball left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few minor comments but LGTM

:shipit:

Co-authored-by: Mary McGrath <m.c.mcgrath13@gmail.com>
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.

3 participants