Skip to content

fix: device-options-field#312

Merged
ryanbas21 merged 1 commit into
mainfrom
fix-e2e-tests
Jun 2, 2025
Merged

fix: device-options-field#312
ryanbas21 merged 1 commit into
mainfrom
fix-e2e-tests

Conversation

@ryanbas21
Copy link
Copy Markdown
Collaborator

@ryanbas21 ryanbas21 commented May 30, 2025

JIRA Ticket

https://pingidentity.atlassian.net/browse/SDKS-3902

Description

Options were changed instead of 'devices' on the object we get back from the server, so we have to look for options now. fixed tests that broke in davinci update.

I skipped the register test, because the new flow I am using registers and deletes users and the register test started failing. we can remake it but i didnt want to explode this more than it already has been.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 30, 2025

🦋 Changeset detected

Latest commit: 5d71457

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@forgerock/davinci-client Patch
@forgerock/oidc-client Patch
@forgerock/sdk-types Patch
@forgerock/sdk-utilities Patch
@forgerock/iframe-manager Patch
@forgerock/sdk-logger Patch
@forgerock/sdk-oidc Patch
@forgerock/sdk-request-middleware Patch
@forgerock/storage Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 30, 2025

View your CI Pipeline Execution ↗ for commit 5d71457.

Command Status Duration Result
nx affected -t build typecheck lint test e2e-ci ✅ Succeeded 1m 44s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-30 18:54:24 UTC

@ryanbas21 ryanbas21 force-pushed the fix-e2e-tests branch 3 times, most recently from 0e1c557 to 676987e Compare May 30, 2025 15:41
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 30, 2025

Deployed aafda74 to https://ForgeRock.github.io/ping-javascript-sdk/pr-312/aafda74595a74fbbe74ef56f9b7056419a63a6d2 branch gh-pages in ForgeRock/ping-javascript-sdk

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.26%. Comparing base (f9c3c0c) to head (5d71457).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
+ Coverage   49.27%   50.26%   +0.99%     
==========================================
  Files          29       29              
  Lines        1717     1711       -6     
  Branches      218      195      -23     
==========================================
+ Hits          846      860      +14     
+ Misses        871      851      -20     
Files with missing lines Coverage Δ
packages/davinci-client/src/lib/collector.utils.ts 84.97% <100.00%> (+0.77%) ⬆️
packages/davinci-client/src/lib/davinci.types.ts 100.00% <ø> (ø)
packages/davinci-client/src/lib/node.reducer.ts 77.77% <ø> (-0.16%) ⬇️

... and 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

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

This largely looks good. Left a few comments.

await page.getByRole('button', { name: 'USER_REGISTRATION' }).click();
await page.getByRole('textbox', { name: 'Email' }).click();
await page.getByRole('textbox', { name: 'Email' }).fill('fakeemail@user.com');
await page.getByRole('textbox', { name: 'Email' }).press('Tab');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we remove all the press('Tab') statements here as it's not really doing anything functional?


await page.getByRole('button', { name: 'USER_LOGIN' }).click();

await page.getByText('SDK Automation - Sign On');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There's a whole lot of monotonous, look-a-like statements throughout this file. Can we use some code comments breaking up the sections of this to help the reader locate where they are in the flow? Something like this:

/*********************************************************
 * New section here: blah blah ...
 */

import { password } from './utils/demo-user.js';

test('Test happy paths on test page', async ({ page }) => {
test.skip('Test happy paths on test page', async ({ page }) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Did you mean to leave this in?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yeah the test was failing and I didnt want to remake it in the mdist of these changes. because these tests do register i thought it was okay temporarily. i just dont wanna fix the world right now

@ryanbas21 ryanbas21 merged commit 6e2bce8 into main Jun 2, 2025
3 checks passed
@ryanbas21 ryanbas21 mentioned this pull request May 28, 2025
@SteinGabriel SteinGabriel deleted the fix-e2e-tests branch April 17, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants