-
Notifications
You must be signed in to change notification settings - Fork 9
refactor: Convert openmct-yamcs
to ESModule
#410
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
Conversation
…db overrides (like algorithms)
await expect(page.locator('[aria-label="Search Result"] >> nth=1')).toContainText("CCSDS_Packet_Sequence.GroupFlags"); | ||
await expect(page.locator('[aria-label="Search Result"] >> nth=2')).toContainText("CCSDS_Packet_Sequence.Count"); | ||
|
||
await expect(page.getByLabel('Object Search Result').nth(0)).toContainText("CCSDS_Packet_Sequence"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test fixes to match 3.3.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this in my branch, and code is good, but still looks like some tests are still failing?
@@ -19,6 +20,7 @@ | |||
"test:e2e:smoke": "npx playwright test --config=./tests/e2e/playwright-quickstart.config.js --project=chromium quickstartSmoke", | |||
"test:e2e:quickstart": "npx playwright test --config=./tests/e2e/playwright-quickstart.config.js --project=chromium tests/e2e/yamcs/", | |||
"test:e2e:quickstart:local": "npx playwright test --config=./tests/e2e/playwright-quickstart.config.js --project=local-chrome tests/e2e/yamcs/", | |||
"test:e2e:watch": "npx playwright test --ui --config=./tests/e2e/playwright-quickstart.config.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
driveby to write tests faster
@@ -36,11 +38,11 @@ | |||
"devDependencies": { | |||
"@babel/core": "7.20.12", | |||
"@babel/eslint-parser": "7.19.1", | |||
"@deploysentinel/playwright": "0.3.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
driveby
"@playwright/test": "1.39.0", | ||
"babel-loader": "9.1.0", | ||
"babel-plugin-istanbul": "6.1.1", | ||
"eslint": "8.38.0", | ||
"eslint-plugin-import":"2.29.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure we didn't miss anything
…henry/openmct-yamcs into fix-openmct-yamcs-build-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a rogue .only()
tests/e2e/yamcs/network.e2e.spec.js
Outdated
|
||
test('Validate network traffic to YAMCS', async ({ page }) => { | ||
test.only('Validate network traffic to YAMCS', async ({ page }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.only
tests/e2e/yamcs/network.e2e.spec.js
Outdated
await page.goto("./", { waitUntil: "networkidle" }); | ||
|
||
await Promise.all([allParams, userGet, mdbOverride]); | ||
|
||
//I'm not sure what this block does yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👁️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unlikelyzero I think the reason you're getting test failures here is that the page is doing a Promise.all
on the page.waitForResponse
after the await page.goto("./")
.
const fs = require('fs'); | ||
const semver = require('semver'); | ||
const myPackageJson = require('./package.json'); | ||
import fs from 'node:fs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be using fs/promises
tests/e2e/yamcs/network.e2e.spec.js
Outdated
|
||
await page.waitForLoadState('networkidle'); | ||
await new Promise(resolve => setTimeout(resolve, 500)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this with the waitForResponse
stuff?
tests/e2e/yamcs/network.e2e.spec.js
Outdated
await Promise.all([allParams, userGet, mdbOverride, parameterArchiveGet, batchPost, mdbOverride]); | ||
|
||
// wait for debounced requests in YAMCS Latest Telemetry Provider to finish | ||
await new Promise(resolve => setTimeout(resolve, 500)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above - is this still needed?
tests/e2e/yamcs/network.e2e.spec.js
Outdated
await page.goto("./", { waitUntil: "networkidle" }); | ||
|
||
await Promise.all([allParams, userGet, mdbOverride]); | ||
|
||
//I'm not sure what this block does yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unlikelyzero I think the reason you're getting test failures here is that the page is doing a Promise.all
on the page.waitForResponse
after the await page.goto("./")
.
Closes #409
Describe your changes:
All Submissions:
Author Checklist
Reviewer Checklist