Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Cassiopée
nghyd
Commits
8284a1a0
Commit
8284a1a0
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
fix(e2e): Mathjax formula in help tests fail after first language
refs
#608
parent
e114b190
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!225
Release v4.17.0
,
!209
Resolve "Documentation: Les formules de math ne s'affichent pas dans la version anglaise"
Pipeline
#140241
passed
2 years ago
Stage: install
Stage: build
Stage: clean-stale-branches
Stage: deploy-dev
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/documentation.e2e-spec.ts
+15
-2
15 additions, 2 deletions
e2e/documentation.e2e-spec.ts
with
15 additions
and
2 deletions
e2e/documentation.e2e-spec.ts
+
15
−
2
View file @
8284a1a0
...
...
@@ -20,7 +20,7 @@ describe("documentation − ", () => {
});
async
function
checkMathjaxInHelp
(
lang
:
number
)
{
// change
setup to French
// change
language setup
await
prefPage
.
navigateTo
();
await
prefPage
.
changeLanguage
(
lang
);
await
browser
.
sleep
(
200
);
...
...
@@ -38,10 +38,23 @@ describe("documentation − ", () => {
browser
.
getAllWindowHandles
().
then
(
async
(
handles
)
=>
{
browser
.
ignoreSynchronization
=
true
;
// deprecated but the only solution to work in the newly opened tab
// switch to help tab
browser
.
switchTo
().
window
(
handles
[
1
]).
then
(
async
()
=>
{
// check Mathjax element is present
expect
(
element
.
all
(
by
.
css
(
"
mjx-container
"
)).
isPresent
()).
toBe
(
true
);
expect
(
element
(
by
.
css
(
"
mjx-container
"
)).
isPresent
()).
toBe
(
true
);
}).
then
(
async
()
=>
{
// close help tab
await
browser
.
close
();
// switch back to calculator (required to avoid failure of next language test)
await
browser
.
switchTo
().
window
(
handles
[
0
]);
browser
.
ignoreSynchronization
=
false
;
});
// switch back to calculator (required to avoid failure of next language test)
await
browser
.
switchTo
().
window
(
handles
[
0
]);
browser
.
ignoreSynchronization
=
false
;
});
}
...
...
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