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

[e2e] Update remaining tests and add missing comparison coverage #7363

Merged
merged 37 commits into from
Jan 11, 2024

Conversation

unlikelyzero
Copy link
Collaborator

@unlikelyzero unlikelyzero commented Jan 9, 2024

Closes #7305
Addresses #7040 #7307

Describe your changes:

Generally brings all of our visual tests up to speed to address #7307 And add coverage that Charles needs

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 change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

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.
  • Is this a breaking change to be called out in the release notes?
  • 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?

@unlikelyzero unlikelyzero added this to the Target:3.3.0 milestone Jan 9, 2024
@unlikelyzero unlikelyzero added the type:maintenance tests, chores, or project maintenance label Jan 9, 2024
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (6fd7b6f) 55.85% compared to head (89b5bab) 55.84%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7363      +/-   ##
==========================================
- Coverage   55.85%   55.84%   -0.01%     
==========================================
  Files         659      659              
  Lines       26243    26245       +2     
  Branches     2549     2549              
==========================================
- Hits        14658    14657       -1     
- Misses      10878    10881       +3     
  Partials      707      707              
Flag Coverage Δ
e2e-full 40.81% <ø> (-0.27%) ⬇️
e2e-stable 59.04% <ø> (-0.03%) ⬇️
unit 48.88% <50.00%> (+0.01%) ⬆️
Files Coverage Δ
src/api/menu/components/MenuComponent.vue 50.00% <ø> (ø)
src/api/menu/components/SuperMenu.vue 66.66% <ø> (ø)
...plugins/displayLayout/components/TelemetryView.vue 2.40% <ø> (ø)
...lugins/faultManagement/FaultManagementListItem.vue 5.00% <ø> (ø)
src/plugins/folderView/components/GridItem.vue 0.00% <ø> (ø)
src/plugins/folderView/components/ListItem.vue 50.00% <ø> (ø)
src/plugins/gauge/components/GaugeComponent.vue 61.49% <ø> (ø)
src/plugins/imagery/components/ImageControls.vue 35.38% <100.00%> (ø)
src/plugins/imagery/components/ImageThumbnail.vue 18.91% <ø> (ø)
...ins/imagery/components/ImageryViewMenuSwitcher.vue 33.33% <ø> (ø)
... and 22 more

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6fd7b6f...89b5bab. Read the comment docs.

Copy link

deploysentinel bot commented Jan 9, 2024

Current Playwright Test Results Summary

✅ 174 Passing - ❌ 1 Failing - ⚠️ 1 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 01/11/2024 06:48:31am UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 1ac2c8a

Started: 01/11/2024 06:42:39am UTC

❌ Failures

📄   functional/plugins/telemetryTable/telemetryTable.e2e.spec.js • 1 Failure

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Telemetry Table Supports filtering using Regex
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
13.33% (8) 8 / 60 runs
failed over last 7 days
0% (0) 0 / 60 runs
flaked over last 7 days

⚠️ Flakes

📄   functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Restricted Notebook with a page locked and with an embed @addinit Disallows embeds to be deleted if page locked @addinit
Retry 1Initial Attempt
6.15% (4) 4 / 65 runs
failed over last 7 days
49.23% (32) 32 / 65 runs
flaked over last 7 days

View Detailed Build Results


<span class="c-grid-item__metadata__type">{{ item.type.name }}</span>
</div>
</div>
<div class="c-grid-item__controls">
<div class="is-status__indicator" :title="`This item is ${status}`"></div>
<div
class="is-status__indicator"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

like this

@@ -57,7 +60,7 @@
</p>
</div>
<h2>Version Information</h2>
<ul class="t-info l-info s-info">
<ul data-testid="versionInfo" class="t-info l-info s-info">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ozyx not really sure what else to add here. I guess I could use an 'id'

Copy link
Member

Choose a reason for hiding this comment

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

It's a ul so it implicitly has the role of list. I think we would just need a label.

ozyx
ozyx previously requested changes Jan 10, 2024
Copy link
Member

@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.

Nice work! Just a few comments

@@ -22,7 +22,7 @@
<template>
<!-- eslint-disable vue/no-v-html -->
<div class="c-about c-about--splash">
<div class="c-about__image c-splash-image"></div>
<div class="c-about__image c-splash-image" role="img" alt="Open MCT Splash Logo"></div>
Copy link
Member

Choose a reason for hiding this comment

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

nice catch

@@ -57,7 +60,7 @@
</p>
</div>
<h2>Version Information</h2>
<ul class="t-info l-info s-info">
<ul data-testid="versionInfo" class="t-info l-info s-info">
Copy link
Member

Choose a reason for hiding this comment

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

It's a ul so it implicitly has the role of list. I think we would just need a label.

src/plugins/plot/chart/MctChart.vue Outdated Show resolved Hide resolved
src/plugins/plot/chart/MctChart.vue Outdated Show resolved Hide resolved
src/plugins/imagery/components/ImageControls.vue Outdated Show resolved Hide resolved
@unlikelyzero unlikelyzero added the pr:e2e:couchdb npm run test:e2e:couchdb label Jan 11, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Jan 11, 2024
Comment on lines +18 to +19
# VSCode
.vscode/settings.json
Copy link
Member

Choose a reason for hiding this comment

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

😞

@@ -17,8 +12,7 @@ const config = {
timeout: 200 * 1000,
reuseExistingServer: true //This was originally disabled to prevent differences in local debugging vs. CI. However, it significantly speeds up local debugging.
},
maxFailures: MAX_FAILURES, //Limits failures to 5 to reduce CI Waste
workers: NUM_WORKERS, //Limit to 2 for CircleCI Agent
workers: '75%', //Limit to 75% of the CPU to support running with dev server
Copy link
Member

Choose a reason for hiding this comment

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

rad

@@ -155,7 +155,7 @@ test.describe('AppActions', () => {

await page.goto('./#/browse/mine');
//Click the Create button
await page.click('button:has-text("Create")');
await page.getByRole('button', { name: 'Create' }).click();
Copy link
Member

Choose a reason for hiding this comment

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

about dang time

Copy link
Member

@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.

Awesome work! Just a few comments

type: 'Display Layout',
name: 'Child Layout 2',
parent: parent.uuid
});

await page.goto(parent.url);
await page.goto(parent.url, { waitUntil: 'domcontentloaded' });
Copy link
Member

Choose a reason for hiding this comment

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

we don't need the waitUntil here unless you noticed some different behavior?

@@ -107,7 +106,7 @@ test.describe('Generate Visual Test Data @localStorage @generatedata', () => {
parent: parent.uuid
});

await page.goto(parent.url);
await page.goto(parent.url, { waitUntil: 'domcontentloaded' });
Copy link
Member

Choose a reason for hiding this comment

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

same

@@ -134,7 +133,7 @@ test.describe('Generate Visual Test Data @localStorage @generatedata', () => {
await page.locator('button[title="More actions"]').click();
Copy link
Member

Choose a reason for hiding this comment

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

missed a spot?

@@ -69,7 +69,7 @@ test.describe('Gantt Chart', () => {
.getByRole('dialog')
.filter({ hasText: 'This action will replace the current Plan. Do you want to continue?' });
await expect(replaceModal).toBeVisible();
await page.getByRole('button', { name: 'OK' }).click();
await page.getByRole('button', { name: 'Ok', exact: true }).click();
Copy link
Member

Choose a reason for hiding this comment

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

It's Ok and not OK ?

@@ -53,10 +51,10 @@ test.describe('Gauge', () => {

// Navigate to the gauge and verify that
// the SWG appears in the elements pool
await page.goto(gauge.url);
await editButtonLocator.click();
await page.goto(gauge.url, { waitUntil: 'domcontentloaded' });
Copy link
Member

Choose a reason for hiding this comment

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

don't think we need the waitUntil here

@@ -109,7 +107,7 @@ test.describe('Gauge', () => {
description: 'https://github.com/nasa/openmct/issues/5356'
});
//Click the Create button
await page.click('button:has-text("Create")');
await page.getByRole('button', { name: 'Create' }).click();

// Click the object specified by 'type'
await page.click(`li[role='menuitem']:text("Gauge")`);
Copy link
Member

Choose a reason for hiding this comment

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

missed one?

@@ -8,7 +8,6 @@
"@axe-core/playwright": "4.8.2",
"@babel/eslint-parser": "7.23.3",
"@braintree/sanitize-url": "6.0.4",
"@deploysentinel/playwright": "0.3.4",
Copy link
Member

Choose a reason for hiding this comment

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

RIP

@unlikelyzero unlikelyzero added the pr:e2e:couchdb npm run test:e2e:couchdb label Jan 11, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Jan 11, 2024
@unlikelyzero unlikelyzero enabled auto-merge (squash) January 11, 2024 22:43
Copy link
Member

@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.

LGTM! Nice one

@unlikelyzero unlikelyzero merged commit 6ce340c into master Jan 11, 2024
31 of 39 checks passed
@unlikelyzero unlikelyzero deleted the fix-more-visual-tests branch January 11, 2024 22:47
@unlikelyzero unlikelyzero modified the milestones: Target:3.3.0, Target:4.0.0 Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:maintenance tests, chores, or project maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] Disable deploysentinel integration
2 participants