Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Départements-Notaires v2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
29
Issues
29
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Départements-Notaires
Départements-Notaires v2
Commits
4075b90b
Commit
4075b90b
authored
Sep 02, 2020
by
Cédric Girardot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor : Déplace "preserve cookie" dans support/index.js
Change-Id: Ie5620b4200a5b5b04907d8bd61af885784b0311d
parent
ab099610
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
5 additions
and
55 deletions
+5
-55
appli_sf/tests/E2E/cypress/integration/EmptyDB/1-login.spec.js
..._sf/tests/E2E/cypress/integration/EmptyDB/1-login.spec.js
+0
-6
appli_sf/tests/E2E/cypress/integration/EmptyDB/2-params.spec.js
...sf/tests/E2E/cypress/integration/EmptyDB/2-params.spec.js
+0
-7
appli_sf/tests/E2E/cypress/integration/EmptyDB/3-search-empty-db.spec.js
...E2E/cypress/integration/EmptyDB/3-search-empty-db.spec.js
+0
-7
appli_sf/tests/E2E/cypress/integration/FullDB/4-search.spec.js
..._sf/tests/E2E/cypress/integration/FullDB/4-search.spec.js
+0
-7
appli_sf/tests/E2E/cypress/integration/FullDB/5-create-users.spec.js
...sts/E2E/cypress/integration/FullDB/5-create-users.spec.js
+0
-7
appli_sf/tests/E2E/cypress/integration/FullDB/6-create-instructors.spec.js
...E/cypress/integration/FullDB/6-create-instructors.spec.js
+0
-7
appli_sf/tests/E2E/cypress/integration/FullDB/7-stats.spec.js
...i_sf/tests/E2E/cypress/integration/FullDB/7-stats.spec.js
+0
-7
appli_sf/tests/E2E/cypress/integration/FullDB/8-death-alert.spec.js
...ests/E2E/cypress/integration/FullDB/8-death-alert.spec.js
+0
-7
appli_sf/tests/E2E/cypress/support/index.js
appli_sf/tests/E2E/cypress/support/index.js
+5
-0
No files found.
appli_sf/tests/E2E/cypress/integration/EmptyDB/1-login.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Connexion avec CSRF
'
,
()
=>
{
const
inAdministration
=
()
=>
{
cy
.
location
(
'
href
'
).
should
(
'
match
'
,
/admin
\/?
$/
)
...
...
appli_sf/tests/E2E/cypress/integration/EmptyDB/2-params.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Paramètres de l
\'
application
'
,
()
=>
{
if
(
Cypress
.
env
(
'
ENVIRONMENT
'
)
===
'
dev
'
)
{
before
(()
=>
{
...
...
@@ -17,7 +11,6 @@ describe('Paramètres de l\'application', () => {
.
then
((
user
)
=>
{
this
.
userAdmin
=
user
})
Cypress
.
Cookies
.
preserveOnce
(
'
PHPSESSID
'
)
})
it
(
'
Login
'
,
function
()
{
...
...
appli_sf/tests/E2E/cypress/integration/EmptyDB/3-search-empty-db.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Recherche avec table individu vide
'
,
()
=>
{
if
(
Cypress
.
env
(
'
ENVIRONMENT
'
)
===
'
dev
'
)
{
before
(()
=>
{
...
...
@@ -17,7 +11,6 @@ describe('Recherche avec table individu vide', () => {
.
then
((
user
)
=>
{
this
.
userAdmin
=
user
})
Cypress
.
Cookies
.
preserveOnce
(
'
PHPSESSID
'
)
})
it
(
'
Login
'
,
function
()
{
...
...
appli_sf/tests/E2E/cypress/integration/FullDB/4-search.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Recherche
'
,
()
=>
{
if
(
Cypress
.
env
(
'
ENVIRONMENT
'
)
===
'
dev
'
)
{
before
(()
=>
{
...
...
@@ -17,7 +11,6 @@ describe('Recherche', () => {
.
then
((
user
)
=>
{
this
.
userAdmin
=
user
})
Cypress
.
Cookies
.
preserveOnce
(
'
PHPSESSID
'
)
cy
.
deleteAllMails
()
})
...
...
appli_sf/tests/E2E/cypress/integration/FullDB/5-create-users.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Création d
\'
utilisateurs
'
,
()
=>
{
if
(
Cypress
.
env
(
'
ENVIRONMENT
'
)
===
'
dev
'
)
{
before
(()
=>
{
...
...
@@ -17,7 +11,6 @@ describe('Création d\'utilisateurs', () => {
.
then
((
user
)
=>
{
this
.
userAdmin
=
user
})
Cypress
.
Cookies
.
preserveOnce
(
'
PHPSESSID
'
)
})
it
(
'
Login
'
,
function
()
{
...
...
appli_sf/tests/E2E/cypress/integration/FullDB/6-create-instructors.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Création d
\'
instructeurs
'
,
()
=>
{
if
(
Cypress
.
env
(
'
ENVIRONMENT
'
)
===
'
dev
'
)
{
before
(()
=>
{
...
...
@@ -17,7 +11,6 @@ describe('Création d\'instructeurs', () => {
.
then
((
user
)
=>
{
this
.
userAdmin
=
user
})
Cypress
.
Cookies
.
preserveOnce
(
'
PHPSESSID
'
)
cy
.
deleteAllMails
()
})
...
...
appli_sf/tests/E2E/cypress/integration/FullDB/7-stats.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Page des stats
'
,
()
=>
{
if
(
Cypress
.
env
(
'
ENVIRONMENT
'
)
===
'
dev
'
)
{
before
(()
=>
{
...
...
@@ -17,7 +11,6 @@ describe('Page des stats', () => {
.
then
((
user
)
=>
{
this
.
userAdmin
=
user
})
Cypress
.
Cookies
.
preserveOnce
(
'
PHPSESSID
'
)
})
it
(
'
Login
'
,
function
()
{
...
...
appli_sf/tests/E2E/cypress/integration/FullDB/8-death-alert.spec.js
View file @
4075b90b
Cypress
.
on
(
'
uncaught:exception
'
,
(
err
,
runnable
)
=>
{
// returning false here prevents Cypress from
// failing the test
return
false
})
describe
(
'
Alerte décès
'
,
()
=>
{
let
deatAlertMail
=
'
alerte-deces@notaire.fr
'
...
...
@@ -19,7 +13,6 @@ describe('Alerte décès', () => {
.
then
((
user
)
=>
{
this
.
userAdmin
=
user
})
Cypress
.
Cookies
.
preserveOnce
(
'
PHPSESSID
'
)
cy
.
deleteAllMails
()
})
...
...
appli_sf/tests/E2E/cypress/support/index.js
View file @
4075b90b
...
...
@@ -19,3 +19,8 @@ import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')
Cypress
.
Cookies
.
defaults
({
preserve
:
'
PHPSESSID
'
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment