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

playwright: initial setup of playwright for UI #16419

Merged
merged 15 commits into from
May 31, 2024
Merged

Conversation

ShaileshParmar11
Copy link
Contributor

@ShaileshParmar11 ShaileshParmar11 commented May 27, 2024

Describe your changes:

Add the playwright initial setup
below entity are migrated from cypress to playwright

  • DashboardClass,
  • PipelineClass,
  • TopicClass,
  • MlModelClass,
  • ContainerClass,
  • SearchIndexClass,
  • DashboardDataModelClass,

added below assertions

  • Domain Add, Update and Remove
  • User as Owner Add, Update and Remove
  • Team as Owner Add, Update and Remove
  • Tier Add, Update and Remove
  • Update description
  • Tag Add, Update and Remove
  • Glossary Term Add, Update and Remove

Run Playwright in the terminal with the below command from UI directory

yarn playwright:run

Run Playwright with GUI with the below command from UI directory

yarn playwright:open

@github-actions github-actions bot added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels May 27, 2024
Copy link
Contributor

github-actions bot commented May 27, 2024

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.86% (34866/53752) 41.75% (13775/32995) 43.72% (4279/9788)

Comment on lines 46 to 47
echo "CYPRESS_PROJECT_ID=${{ secrets.CYPRESS_PR_PROJECT_ID }}" >> $GITHUB_OUTPUT
echo "CYPRESS_RECORD_KEY=${{ secrets.CYPRESS_PR_RECORD_KEY }}" >> $GITHUB_OUTPUT
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this?

Comment on lines +130 to +136
CYPRESS_BASE_URL: "http://localhost:8585"
CYPRESS_RECORD_KEY: ${{ steps.cypress-project-id.outputs.CYPRESS_RECORD_KEY }}
CYPRESS_grepTags: ${{ steps.getCypresse2eLabels.outputs.e2eLabels }}
CYPRESS_grepFilterSpecs: "true"
CYPRESS_SNOWFLAKE_USERNAME: ${{ secrets.TEST_SNOWFLAKE_USERNAME }}
CYPRESS_SNOWFLAKE_PASSWORD: ${{ secrets.TEST_SNOWFLAKE_PASSWORD }}
CYPRESS_SNOWFLAKE_ACCOUNT: ${{ secrets.TEST_SNOWFLAKE_ACCOUNT }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's remove this variable if we are not using it for playwright

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have kept env variable in the workflow intentionally as we will need in serviceIngetion test once we migrate it to playwright

with:
name: playwright-report
path: openmetadata-ui/src/main/resources/ui/playwright/output/playwright-report
retention-days: 30
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let'e reduce it to 5 days

"@deuex-solutions/react-tour": "^1.2.6",
"@estruyf/github-actions-reporter": "^1.7.0",
Copy link
Collaborator

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 this package, It's for CI only

Comment on lines 2 to 8
* Copyright 2024 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Copy link
Collaborator

Choose a reason for hiding this comment

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

If nothing here, let's remove it

Copy link

Quality Gate Passed Quality Gate passed for 'open-metadata-ui'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@chirag-madlani chirag-madlani merged commit 136ec63 into main May 31, 2024
15 of 17 checks passed
@chirag-madlani chirag-madlani deleted the playwight-ui-setup branch May 31, 2024 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e:Governance safe to test Add this label to run secure Github workflows on PRs UI UI specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants