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

[ACS-5014] Migrated Copy Move actions E2Es from protractor to playwright #3531

Merged
merged 17 commits into from
Dec 6, 2023

Conversation

swapnil-verma-gl
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:
    Migration of E2E test cases from protractor to playwright

What is the current behaviour? (You can also link to an open issue here)
Copy Move Actions e2es were implemented in protractor

What is the new behaviour?
Migrated the E2Es to playwright

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:


import { ApiClientFactory, MyLibrariesPage, NodesApi, SitesApi, test, Utils } from '@alfresco/playwright-shared';
import { expect } from '@playwright/test';
import { logger } from '@alfresco/adf-cli/scripts/logger';
Copy link
Contributor

Choose a reason for hiding this comment

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

there should be other logger for tests, we should not import adf cli into the e2e.... alternatively can use just "console.error"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Migrated logger from adf-cli to adf-testing. However, while looking into this, I also noticed that the same adf-cli logger is being used create-library.spec.ts as well as create-folder.spec.ts. If we want, I can update those imports as well. Just note that they are not at all related to the changes/objective of this PR


import { ApiClientFactory, test, Utils, PersonalFilesPage, NodesApi, LoginPage } from '@alfresco/playwright-shared';
import { expect } from '@playwright/test';
import { logger } from '@alfresco/adf-cli/scripts/logger';
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, adf cli should not be used for e2e

@AleksanderSklorz
Copy link
Contributor

please don't forget about SonarCloud issues:
image

@DenysVuika
Copy link
Contributor

needs rebase

@swapnil-verma-gl swapnil-verma-gl force-pushed the dev-acs-5014-copy-move-actions-playwright branch from 953811f to 764fc00 Compare December 5, 2023 07:53
Copy link

sonarqubecloud bot commented Dec 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
23.3% 23.3% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@swapnil-verma-gl swapnil-verma-gl merged commit f917a66 into develop Dec 6, 2023
24 of 25 checks passed
@swapnil-verma-gl swapnil-verma-gl deleted the dev-acs-5014-copy-move-actions-playwright branch December 6, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants