Skip to content
Snippets Groups Projects
Commit 3ae47998 authored by llaffont's avatar llaffont
Browse files

Upload vignette: ajout d'un bouton pour fermer le popup et recharger la page si transfert OK

parent 421d1c46
Branches
Tags
No related merge requests found
......@@ -2,4 +2,8 @@
<?php
echo $this->_('La vignette a bien été transférée');
?>
</p>
\ No newline at end of file
</p>
<button style="margin:0 auto; display:block" onclick="parent.hidePopWin(false);parent.window.location=parent.document.location.href;">
<?php echo $this->_('Fermer'); ?>
</button>
\ No newline at end of file
......@@ -237,6 +237,13 @@ class UploadControllerVignetteNoticeActionPostValidUrlTest extends UploadControl
public function pageShouldDisplayVignetteTransferee() {
$this->assertXPathContentContains('//p', 'La vignette a bien été transférée');
}
/** @test */
public function pageShouldContainsAButtonToCloseWindow() {
$this->assertXPathContentContains('//button[contains(@onclick, "hidePopWin")]',
'Fermer');
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment