💚 enlève l'enregistrement cypress tant que nous n'avons pas le plan open-source
parent
b32e4b8c81
commit
0683dfacf4
|
@ -27,7 +27,7 @@ commands:
|
|||
type: string
|
||||
default: https://mon-entreprise.fr
|
||||
steps:
|
||||
- run: CYPRESS_baseUrl=<< parameters.base_url >> yarn run cypress run --record --key 21660df5-36a5-4c49-b23d-801799b0c759 --env language=<< parameters.language >> --config integrationFolder=cypress/integration/<< parameters.integration_folder >>
|
||||
- run: CYPRESS_baseUrl=<< parameters.base_url >> yarn run cypress run --key 21660df5-36a5-4c49-b23d-801799b0c759 --env language=<< parameters.language >> --config integrationFolder=cypress/integration/<< parameters.integration_folder >>
|
||||
|
||||
jobs:
|
||||
unit-test:
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
color: var(--lighterInverseTextColour);
|
||||
width: 45rem;
|
||||
justify-content: center;
|
||||
animation: fade-in 1s;
|
||||
}
|
||||
|
||||
.ui__.banner img {
|
||||
|
@ -14,15 +13,3 @@
|
|||
font-size: 2rem;
|
||||
margin-bottom: 0.6rem !important;
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
50% {
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
import React from 'react'
|
||||
import emoji from 'react-easy-emoji'
|
||||
import { connect } from 'react-redux'
|
||||
import Animate from 'Ui/animate'
|
||||
import './Banner.css'
|
||||
import type { Node } from 'react'
|
||||
import type { State } from 'Types/State'
|
||||
|
||||
type PropTypes = {
|
||||
hidden: boolean,
|
||||
children: Node,
|
||||
|
@ -15,10 +15,12 @@ type PropTypes = {
|
|||
|
||||
let Banner = ({ hidden = false, children, icon }: PropTypes) =>
|
||||
!hidden ? (
|
||||
<div className="ui__ banner">
|
||||
{icon && emoji(icon)}
|
||||
<p>{children}</p>
|
||||
</div>
|
||||
<Animate.fadeIn>
|
||||
<div className="ui__ banner">
|
||||
{icon && emoji(icon)}
|
||||
<p>{children}</p>
|
||||
</div>
|
||||
</Animate.fadeIn>
|
||||
) : null
|
||||
|
||||
export default (connect(
|
||||
|
|
|
@ -14,7 +14,7 @@ const rewrite = basename => ({
|
|||
|
||||
app.use(
|
||||
history({
|
||||
rewrites: ['embauche', 'infrance', 'mon-entreprise'].map(rewrite)
|
||||
rewrites: ['infrance', 'mon-entreprise'].map(rewrite)
|
||||
})
|
||||
)
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ export default function Integration() {
|
|||
</em>
|
||||
="script-simulateur-embauche" <em>data-couleur</em>="
|
||||
<span id="scriptColor">#2975D1</span>" <em>src</em>
|
||||
="https://embauche.beta.gouv.fr/dist/simulateur.js">
|
||||
="https://mon-entreprise.fr/simulateur-iframe-integration.js">
|
||||
<span>{'<'}</span>
|
||||
<span>/</span>
|
||||
<em>script</em>
|
||||
|
|
|
@ -6,13 +6,9 @@ export default withRouter(
|
|||
componentDidMount() {
|
||||
const script = document.createElement('script')
|
||||
script.id = 'script-simulateur-embauche'
|
||||
script['data-couleur'] = script.src =
|
||||
window.location.origin + '/dist/simulateur.js'
|
||||
script.src =
|
||||
window.location.origin + '/simulateur-iframe-integration.js'
|
||||
script.dataset.couleur = '#2975D1'
|
||||
script.dataset.iframeUrl =
|
||||
window.location.origin +
|
||||
this.props.history.createHref({}) +
|
||||
'iframes/simulateur-embauche'
|
||||
this.DOMNode.appendChild(script)
|
||||
}
|
||||
render() {
|
||||
|
|
|
@ -21,7 +21,7 @@ module.exports = {
|
|||
entry: {
|
||||
'mon-entreprise': './source/sites/mon-entreprise.fr/entry.fr.js',
|
||||
infrance: './source/sites/mon-entreprise.fr/entry.en.js',
|
||||
'simulateur-iframe-integration-script':
|
||||
'simulateur-iframe-integration':
|
||||
'./source/sites/mon-entreprise.fr/iframe-integration-script.js'
|
||||
},
|
||||
output: {
|
||||
|
|
|
@ -48,7 +48,7 @@ module.exports = {
|
|||
output: {
|
||||
...common.output,
|
||||
filename: ({ chunk }) => {
|
||||
return chunk.name === 'dist/simulateur'
|
||||
return chunk.name === 'simulateur-iframe-integration'
|
||||
? '[name].js'
|
||||
: '[name].[contenthash].bundle.js'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue