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

Test to check that bar graph makes requests with size 1 (limit=1). #470

Merged
merged 16 commits into from
Sep 26, 2024

Conversation

shefalijoshi
Copy link
Collaborator

@shefalijoshi shefalijoshi commented Sep 4, 2024

Closes nasa/openmct#7811

Describe your changes:

Include Graphs in default plugins installed.
Test to check that bar graph makes requests with size 1 (limit=1)

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change that will require a special callout in the release notes? For example, will this break compatibility with existing APIs or projects that consume these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

Test to check that bar graph makes requests with size 1 (limit=1).
Move waitForResponse to just before telemetry is added to the graph
@akhenry akhenry self-requested a review September 5, 2024 17:04
@unlikelyzero unlikelyzero added this to the Target:4.0.1 milestone Sep 10, 2024
@unlikelyzero unlikelyzero added pr:e2e:quickstart type:bug Something isn't working labels Sep 10, 2024
Copy link
Collaborator

@unlikelyzero unlikelyzero left a comment

Choose a reason for hiding this comment

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

let's modify the tests a bit

tests/e2e/yamcs/barGraph.e2e.spec.mjs Show resolved Hide resolved
package.json Outdated
@@ -20,7 +20,7 @@
"lint:fix": "eslint src example --fix",
"build:dist": "webpack --config ./.webpack/webpack.prod.mjs",
"build:example": "npm install openmct@unstable --no-save",
"build:example:master": "npm install nasa/openmct --no-save",
"build:example:master": "npm install nasa/openmct#bar-graph-historical-requests --no-save",
Copy link
Collaborator

Choose a reason for hiding this comment

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

here


// Create the Bar Graph
barGraph = await createDomainObjectWithDefaults(page, { type: 'Graph', name: 'Bar Graph' });
// Enter edit mode for the overlay plot
Copy link
Collaborator

Choose a reason for hiding this comment

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

Link 'Magnetometer' to barGraph

/**
* Search for telemetry and link it to an object. objectName should come from the domainObject.name function.
* @param {import('@playwright/test').Page} page
* @param {string} telemetryText
Copy link
Collaborator

@unlikelyzero unlikelyzero Sep 25, 2024

Choose a reason for hiding this comment

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

rename to parameterNameText?

Copy link
Collaborator

Choose a reason for hiding this comment

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

rename to parameterName

Copy link
Collaborator

@unlikelyzero unlikelyzero left a comment

Choose a reason for hiding this comment

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

Need another reviewer

ozyx
ozyx previously requested changes Sep 25, 2024
Copy link
Collaborator

@ozyx ozyx left a comment

Choose a reason for hiding this comment

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

mostly LGTM just have a couple requests

tests/README.md Show resolved Hide resolved
/**
* Search for telemetry and link it to an object. objectName should come from the domainObject.name function.
* @param {import('@playwright/test').Page} page
* @param {string} telemetryText
Copy link
Collaborator

Choose a reason for hiding this comment

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

rename to parameterName

tests/e2e/yamcs/barGraph.e2e.spec.mjs Show resolved Hide resolved
@unlikelyzero unlikelyzero requested a review from ozyx September 26, 2024 23:00
@unlikelyzero unlikelyzero dismissed ozyx’s stale review September 26, 2024 23:00

addressed comments

@unlikelyzero unlikelyzero merged commit f1b3922 into master Sep 26, 2024
7 of 9 checks passed
@unlikelyzero unlikelyzero deleted the bar-graph-historical-requests branch September 26, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants