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

[Tests-Only]Used json file to store translated messages #38412

Merged
merged 2 commits into from
Feb 18, 2021

Conversation

Talank
Copy link
Contributor

@Talank Talank commented Feb 15, 2021

Description

generalizing API tests related to translations.

Related Issue

part of owncloud/QA#608

Motivation and Context

How Has This Been Tested?

  • locally

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@Talank Talank marked this pull request as draft February 15, 2021 13:21
@Talank Talank marked this pull request as ready for review February 16, 2021 07:54
@Talank Talank requested a review from jasson99 February 16, 2021 07:54
@Talank Talank force-pushed the translation-test-genaralized branch from d930cbd to 12d0eea Compare February 17, 2021 03:40
@Talank Talank self-assigned this Feb 17, 2021
@Talank Talank changed the title [Tests-Only]Added all translations API tests in a scenario outline [Tests-Only]Used json file to store translated messages Feb 17, 2021
@Talank Talank force-pushed the translation-test-genaralized branch from 12d0eea to aee9ad4 Compare February 17, 2021 08:38
tests/acceptance/features/bootstrap/OCSContext.php Outdated Show resolved Hide resolved
tests/acceptance/multiLanguageErrors.json Outdated Show resolved Hide resolved
Comment on lines +19 to +27
| dav_version | language |
| old | de-DE |
| new | de-DE |
| old | zh-CN |
| new | zh-CN |
| old | fr-FR |
| new | fr-FR |
| old | es-ES |
| new | es-ES |
Copy link
Contributor

Choose a reason for hiding this comment

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

can we just have a data table rather than senario outline, that will make tests a lot faster

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can we? 🤔 Also, I wanted to reuse the logic from the step Then the OCS status message should be "<message>". So, I am not sure if it is a great idea. What do you think @phil-davis

@Talank Talank requested a review from dpakach February 17, 2021 17:27
@Talank Talank force-pushed the translation-test-genaralized branch from 0495378 to 84a2ba2 Compare February 18, 2021 03:25
@sonarcloud
Copy link

sonarcloud bot commented Feb 18, 2021

Kudos, SonarCloud Quality Gate passed!

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
No Duplication information No Duplication information

@Talank Talank merged commit 6dcb8c3 into master Feb 18, 2021
@delete-merged-branch delete-merged-branch bot deleted the translation-test-genaralized branch February 18, 2021 12:01
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.

4 participants