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

LPD-50705 Fix failure in frontend-js-web/session.spec.ts test #4777

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

markocikos
Copy link
Collaborator

@markocikos markocikos commented Mar 5, 2025

References

What is the goal of this PR?

The failure comes from different localization behaviors after login, for a user with different default language.

  1. On an empty database, default landing page is immediately localized to the user's default language.
  2. Later on, if there is a locale value in session, default landing page ends up set to English, with a link to translate to user's locale.

In current solution in master, it is assumed that (2) is the behavior always. In this PR, we handle both cases. Just (1) would probably be enough, but it could lead to local failures, or failures in interactions with future tests.

…new user does not have English as default language.
…not be on an empty database, but it can be after a change in session.
@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:sf

@markocikos
Copy link
Collaborator Author

ci:test:playwright

Copy link
Collaborator

@izaera izaera left a comment

Choose a reason for hiding this comment

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

🤷 If it works.... LGTM

You probably know better than me.

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:sf - 0 out of 1 jobs passed in 7 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 32786866d6f51307c7f035529d24cd3970fc0f45

Sender Branch:

Branch Name: LPD-50493
Branch GIT ID: 6ac40b3585060d2eaf255fcdc1f976fc0cf610d3

0 out of 1jobs PASSED
For more details click here.
     [exec] > Task :packageRunCheckFormat
     [exec] yarn run v1.13.0
     [exec] \$ node-scripts check:ci
     [exec] 
     [exec] ?????? Running preflight checks...
     [exec] 
     [exec] ?????? Checking outdated tsconfig.json files ...
     [exec] 
     [exec] ?????? Running TypeScript checks on modified files...
     [exec] ?????? A total of 8 CPUs were detected: launching tsc using 8 workers
     [exec] 
     [exec] ?????? Running format checks on modified files...
     [exec] 
     [exec] Done in 12.43s.
     [exec] 
     [exec] > Task :portalYarnCheckFormat
     [exec] Gradle build finished at 2025-03-05 15:35:32.796.
     [exec] 
     [exec] BUILD SUCCESSFUL in 26s
     [exec] 3 actionable tasks: 3 executed
     [exec] 
     [exec] See the profiling report at: file:///opt/dev/projects/github/liferay-portal/build/reports/profile/profile-2025-03-05-07-35-10.html
     [exec] A fine-grained performance profile is available: use the --scan option.
[beanshell] Executing Gradle task: packageRunCheckFormat
     [exec] To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.5/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
     [exec] Daemon will be stopped at the end of the build 
     [exec] > Task :downloadNode
     [exec] 
     [exec] > Task :npmInstall
     [exec] npm WARN config production Use `--omit=dev` instead.
     [exec] 
     [exec] added 130 packages, and audited 134 packages in 2s
     [exec] 
     [exec] 23 packages are looking for funding
     [exec]   run `npm fund` for details
     [exec] 
     [exec] found 0 vulnerabilities
     [exec] 
     [exec] > Task :packageRunCheckFormat
     [exec] npm WARN config production Use `--omit=dev` instead.
     [exec] 
     [exec] > @liferay/[email protected] checkFormat
     [exec] > tsc
     [exec] 
     [exec] tests/export-import-web/instance.import.spec.ts(139,13): error TS2304: Cannot find name 'ObjectField'.
     [exec] tests/export-import-web/instance.import.spec.ts(140,19): error TS2304: Cannot find name 'ObjectField'.
     [exec] tests/layout-content-page-editor-web/formContainer.spec.ts(3525,16): error TS2304: Cannot find name 'ObjectField'.
     [exec] tests/layout-content-page-editor-web/formContainer.spec.ts(3526,22): error TS2304: Cannot find name 'ObjectField'.

@liferay-continuous-integration
Copy link
Collaborator

Jenkins Report:jenkins-report.html
Jenkins Suite:sf
Testray Routine:EE Pull Request
Testray Build ID:157023286

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:playwright - 99 out of 128 jobs passed in 2 hours 2 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 32786866d6f51307c7f035529d24cd3970fc0f45

Upstream Comparison:

Branch GIT ID: 4281f9b41f4c84911eaaf42439d4bf4905772f58
Jenkins Build URL: EE Development Acceptance (master) - 1211 - 2025-03-03[11:50:25]

ci:test:playwright - 99 out of 128 jobs PASSED

29 Failed Jobs:

99 Successful Jobs:
    For more details click here.

    Failures unique to this pull:

    1. ...
    Test bundle downloads:

    @liferay-continuous-integration
    Copy link
    Collaborator

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants