Overview
Comment: | Autres tests |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b27152664d3658b23d660b36ca3c3336 |
User & Date: | bohwaz on 2014-04-01 16:56:04 |
Other Links: | manifest | tags |
Context
2014-04-01
| ||
16:58 | première rc check-in: 1635cec26d user: bohwaz tags: trunk | |
16:56 | Autres tests check-in: b27152664d user: bohwaz tags: trunk | |
16:39 | Plus de tests check-in: ceaf3d311a user: bohwaz tags: trunk | |
Changes
Modified tests/11-add-member.js from [aa4cd388a9] to [d82bb90f60].
1 2 3 | /*jshint strict:false*/ /*global CasperError, casper, console, phantom, require*/ | | | 1 2 3 4 5 6 7 8 9 10 11 | /*jshint strict:false*/ /*global CasperError, casper, console, phantom, require*/ casper.test.begin('Ajout membre', 3, function suite(test) { casper.start("http://localhost:8080/admin/membres/ajouter.php", function() { test.assertTitle("Ajouter un membre", "Page OK"); test.assertExists('form', "Formulaire présent"); this.fillSelectors('form', { '#f_nom': "Gaston Lagaffe", '#f_email': "gaston@demo.garradin.eu", '#f_adresse': "42 rue Spirou", |
︙ | ︙ |
Added tests/12-edit-member.js version [9ba6b617ca].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | /*jshint strict:false*/ /*global CasperError, casper, console, phantom, require*/ casper.test.begin('Modif Membre', 3, function suite(test) { casper.start("http://localhost:8080/admin/membres/modifier.php?id=2", function() { test.assertTitle("Modifier un membre", "Page OK"); test.assertExists('form', "Formulaire présent"); this.fillSelectors('form', { '#f_nom': "Pacôme De Champignac", '#f_email': "comte@demo.garradin.eu", '#f_adresse': "Château", '#f_ville': "Champignac", '#f_code_postal': "12070", '#f_pays': "FR", '#f_telephone': "+32777229929", }, false); this.click('#password_suggest'); this.click('form input[type=submit]'); }); casper.then(function() { if (this.getCurrentUrl().match(/fiche\.php\?id=/)) { test.pass("Modif réussie."); } else { test.error(this.fetchText('p.error')); } }); casper.run(function () { test.done(); }); }); |
Added tests/13-delete-member.js version [1ddf5215aa].
> > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | /*jshint strict:false*/ /*global CasperError, casper, console, phantom, require*/ casper.test.begin('Login', 3, function suite(test) { casper.start("http://localhost:8080/admin/membres/supprimer.php?id=2", function() { test.assertTitle("Supprimer un membre", "Page OK"); test.assertExists('form', "Formulaire présent"); this.click('form input[type=submit]'); }); casper.then(function() { if (this.getCurrentUrl().match(/\/membres\/$/)) { test.pass("Suppression OK"); } else { test.error(this.fetchText('p.error')); } }); casper.run(function () { test.done(); }); }); |
Added tests/14-add-cotisation.js version [4e5efdd1ce].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | /*jshint strict:false*/ /*global CasperError, casper, console, phantom, require*/ casper.test.begin('Ajout cotise', 3, function suite(test) { casper.start("http://localhost:8080/admin/membres/cotisations/", function() { test.assertTitle("Cotisations", "Page OK"); test.assertExists('form', "Formulaire présent"); this.click('#f_periodicite_jours'); this.click('#f_categorie'); this.fillSelectors('form', { '#f_intitule': 'Cotisation normale', '#f_montant': '15.00', '#f_id_categorie_compta': '18', '#f_duree': '300', }, false); this.click('form input[type=submit]'); }); casper.thenOpen('http://localhost:8080/admin/membres/cotisations/voir.php?id=1', function() { test.assertTitle("Membres ayant cotisé", "Cotisation OK"); }); casper.run(function () { test.done(); }); }); |