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

Mct7367-tests #7387

Merged
merged 38 commits into from
Jan 23, 2024
Merged

Mct7367-tests #7387

merged 38 commits into from
Jan 23, 2024

Conversation

unlikelyzero
Copy link
Collaborator

@unlikelyzero unlikelyzero commented Jan 18, 2024

Describe your changes:

Tests for the #7367 feature

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?

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

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

Comparison is base (43ae3cf) 55.89% compared to head (ab01db9) 55.66%.

❗ Current head ab01db9 differs from pull request most recent head f235d50. Consider uploading reports for the commit f235d50 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7387      +/-   ##
==========================================
- Coverage   55.89%   55.66%   -0.23%     
==========================================
  Files         659      659              
  Lines       26277    26277              
  Branches     2549     2549              
==========================================
- Hits        14687    14628      -59     
- Misses      10882    10940      +58     
- Partials      708      709       +1     
Flag Coverage Δ
e2e-full 41.25% <ø> (+0.17%) ⬆️
e2e-stable 58.54% <ø> (-0.53%) ⬇️
unit 48.90% <0.00%> (-0.04%) ⬇️
Files Coverage Δ
src/plugins/imagery/components/ImageryView.vue 40.19% <ø> (ø)
src/ui/components/ProgressBar.vue 100.00% <ø> (ø)
src/ui/layout/AppLayout.vue 20.40% <0.00%> (ø)

... and 21 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 43ae3cf...f235d50. Read the comment docs.

@ozyx ozyx added the type:maintenance tests, chores, or project maintenance label Jan 18, 2024
@ozyx ozyx self-requested a review January 18, 2024 19:55
@unlikelyzero
Copy link
Collaborator Author

All that's left is role=progressbar

@unlikelyzero unlikelyzero added this to the Target:4.0.0 milestone Jan 23, 2024
Copy link
Contributor

@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 ! I just had one review comment from a pending review, and this needs a good linting. Should be g2g after that

e2e/appActions.js Outdated Show resolved Hide resolved
@@ -25,6 +25,10 @@
class="c-progress-bar__bar"
:class="{ '--indeterminate': !progressPerc }"
:style="styleBarWidth"
role="progressbar"
:aria-valuenow="progressPerc"
Copy link
Contributor

Choose a reason for hiding this comment

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

woah neat

@@ -36,7 +36,7 @@ test.describe('Testing numeric data with inspector data visualization (i.e., dat
await page.goto('./', { waitUntil: 'domcontentloaded' });
});

test('Can click on telemetry and see data in inspector', async ({ page, context }) => {
test('Can click on telemetry and see data in inspector @2p', async ({ page, context }) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

driveby for @scottbell


const NOTEBOOK_NAME = 'Notebook';

test.describe('Snapshot image tests', () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

broke this out into its own suite for speed

Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't it parallelize by file and not suite? or has that changed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's by file. I broke up the image and regular snapshot suites

@@ -91,22 +85,13 @@ test.describe('Snapshot Container tests', () => {

await page.getByLabel('Take a Notebook Snapshot').click();
await page.getByRole('menuitem', { name: 'Save to Notebook Snapshots' }).click();
await page.getByRole('button', { name: 'Show' }).click();
await page.getByLabel('Show Snapshots').click();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

locator fixes

@@ -50,6 +50,17 @@ test.describe('Visual - Header @a11y', () => {
scope: header
});
});

test('show snapshot button', async ({ page, theme }) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

realized we were missing this one

await percySnapshot(page, `Notebook Snapshot Show button (theme: '${theme}')`, {
scope: header
});
await expect(await page.getByLabel('Show Snapshots')).toBeVisible();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

need to wait for button to appear in header

@unlikelyzero unlikelyzero added the pr:e2e:couchdb npm run test:e2e:couchdb label Jan 23, 2024
let folder;
test.beforeEach(async ({ page }) => {
// Go to baseURL
await page.goto('./', { waitUntil: 'networkidle' });
Copy link
Contributor

Choose a reason for hiding this comment

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

networkidle?

@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Jan 23, 2024
@unlikelyzero unlikelyzero merged commit 4cf6306 into master Jan 23, 2024
4 of 11 checks passed
@unlikelyzero unlikelyzero deleted the mct7367-tests branch January 23, 2024 05:41
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.

2 participants