Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
social
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
social
Commits
5c2dfe7b
Commit
5c2dfe7b
authored
1 year ago
by
sv
Committed by
Taras Kruts
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3310800
by SV: Add behats for multilingual content on the search
parent
40f8509a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/behat/features/capabilities/search/search-multilingual.feature
+53
-0
53 additions, 0 deletions
.../features/capabilities/search/search-multilingual.feature
with
53 additions
and
0 deletions
tests/behat/features/capabilities/search/search-multilingual.feature
0 → 100644
+
53
−
0
View file @
5c2dfe7b
@api
@enterprise
@search
@stability
@DS-498
@DS-673
@stability-3
@search-multilingual
Feature
:
Search
Benefit
:
In
order to find specific multilingual content
Role
:
As
a
LU
Goal/desire
:
I
want to search the site for multilingual content
Scenario
:
Successfully search multilingual content
Given
I enable the module
"social_language"
And
I enable the module
"social_content_translation"
Given the following languages are available
:
|
languages
|
|
fr
|
|
de
|
|
it
|
And users
:
|
name
|
status
|
preferred_langcode
|
|
user-fr
|
1
|
fr
|
|
user-de
|
1
|
de
|
|
user-it
|
1
|
it
|
And "topic" content
:
|
title
|
body
|
status
|
field_content_visibility
|
langcode
|
|
Topic-fr
|
Topic
description
FR
|
1
|
public
|
fr
|
|
Topic-de
|
Topic
description
DE
|
1
|
community
|
de
|
|
Topic-it
|
Topic
description
IT
|
1
|
community
|
it
|
And
Search indexes are up to date
# Check search results for user with "France" default language.
Given
I am logged in as
"user-fr"
When
I am on
"fr/search/content"
Then
I should see
"Topic-fr"
When
I am on
"fr/search/all"
Then
I should see
"Topic-fr"
# Check search results for user with "German" default language.
Given
I am logged in as
"user-de"
When
I am on
"de/search/content"
Then
I should see
"Topic-de"
When
I am on
"de/search/all"
Then
I should see
"Topic-de"
# Check search results for user with "Italy" default language.
Given
I am logged in as
"user-it"
When
I am on
"it/search/content"
Then
I should see
"Topic-it"
When
I am on
"it/search/all"
Then
I should see
"Topic-it"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment