Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cleancode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIERRON Laurent
cleancode
Commits
cbfd9556
Commit
cbfd9556
authored
2 years ago
by
PIERRON Laurent
Browse files
Options
Downloads
Patches
Plain Diff
adding some tests functions in 'premiers tests'.
parent
4e5ce9a3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BDD_CORRIGE.md
+24
-0
24 additions, 0 deletions
BDD_CORRIGE.md
with
24 additions
and
0 deletions
BDD_CORRIGE.md
+
24
−
0
View file @
cbfd9556
...
@@ -68,6 +68,30 @@ class PremierCest
...
@@ -68,6 +68,30 @@ class PremierCest
$I
->
amOnPage
(
'/'
);
$I
->
amOnPage
(
'/'
);
$I
->
see
(
'Because ignorance is bliss'
);
$I
->
see
(
'Because ignorance is bliss'
);
}
}
public
function
fr_frontpageWorks
(
AcceptanceTester
$I
)
{
$I
->
setHeader
(
'Accept-Language'
,
'fr-fr'
);
$I
->
amOnPage
(
'/'
);
$I
->
see
(
'Vivons heureux, vivons cachés'
);
}
public
function
fr_javascript_is_not_setup
(
AcceptanceTester
$I
)
{
$I
->
setHeader
(
'Accept-Language'
,
'fr-fr'
);
$I
->
amOnPage
(
'/'
);
$I
->
seeElement
(
'#noscript'
);
$I
->
see
(
'JavaScript est requis pour faire fonctionner PrivateBin. Désolé pour cet inconvénient.'
,
'#noscript'
);
}
public
function
preview_a_text_message_works
(
AcceptanceTester
$I
)
{
$msg
=
"Ceci n'est pas une pipe."
;
$I
->
amOnPage
(
'/'
);
$I
->
fillField
(
'#message'
,
$msg
);
$I
->
click
(
'#messagePreview'
);
$I
>
seeInField
(
'#prettyprint'
,
$msg
);
}
}
}
```
```
...
...
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