[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-11-15 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Blocks||29485


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29485
[Bug 29485] selenium/administration_tasks.t is failing randomly
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Kyle M Hall  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|Pushed to master|RESOLVED

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185
Bug 19185 depends on bug 19821, which changed state.

Bug 19821 Summary: Run tests on a separate database
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19821

   What|Removed |Added

 Status|Pushed to master|RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-27 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #56 from Jonathan Druart  ---
Created attachment 126984
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126984=edit
Bug 19185: Make sure user is logged in before adding records to the cart

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #55 from Jonathan Druart  ---
Follow-up pushed to master.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #54 from Tomás Cohen Arazi  ---
Good job, Jonathan.

Old tests still pass with the refactoring, new tests now pass with and empty
DB, which is what KTD will do in run.sh.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Tomás Cohen Arazi  changed:

   What|Removed |Added

 Attachment #126901|0   |1
is obsolete||

--- Comment #53 from Tomás Cohen Arazi  ---
Created attachment 126918
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126918=edit
Bug 19185: Fix regressions.t

The following test is failing:
| #   Failed test 'OPAC - Remove from cart'
| #   at t/db_dependent/selenium/regressions.t line 132.
| Can't call method "get_value" on an undefined value at
t/db_dependent/selenium/regressions.t line 110.
| # Looks like your test exited with 2 just after 3.
| [12:14:08] t/db_dependent/selenium/regressions.t

We are dependind on the search engine and the records in the DB but the
installer is not inserting any records.

This patch is suggesting to reuse the code from search_utf8
(and so make it reusable first) for remove_from_cart test.
This code is mocking the Zebra index with some MARC data and so the
search will return results. We will finally be able to click on the
add to/remove from cart links.

Signed-off-by: Tomas Cohen Arazi 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

   Keywords|rel_21_11_candidate |

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #52 from Jonathan Druart  ---
(In reply to Victor Grousset/tuxayo from comment #50)

My first goal is to make Jenkins happy, then we will see what needs to be
improved and how.

To see how Jenkins run the full test suite, have a look at
https://gitlab.com/koha-community/koha-testing-docker/-/blob/master/files/run.sh
(last else block for the non-light builds).

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #51 from Jonathan Druart  ---
Created attachment 126901
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126901=edit
Bug 19185: Fix regressions.t

The following test is failing:
| #   Failed test 'OPAC - Remove from cart'
| #   at t/db_dependent/selenium/regressions.t line 132.
| Can't call method "get_value" on an undefined value at
t/db_dependent/selenium/regressions.t line 110.
| # Looks like your test exited with 2 just after 3.
| [12:14:08] t/db_dependent/selenium/regressions.t

We are dependind on the search engine and the records in the DB but the
installer is not inserting any records.

This patch is suggesting to reuse the code from search_utf8
(and so make it reusable first) for remove_from_cart test.
This code is mocking the Zebra index with some MARC data and so the
search will return results. We will finally be able to click on the
add to/remove from cart links.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #50 from Victor Grousset/tuxayo  ---
I see that it's ran only by the CI:
>skip "This test must be run with an empty DB. We are using KOHA_TESTING 
> that is set by our CI\nIf you really want to run it, set this env var.", 2 
> unless $ENV{KOHA_TESTING};

Shouldn't the output of skip end up in the terminal when running prove?
Tests finished very (1sec) fast on local Koha and only reading the code allowed
me to know the cause.
Linked to this is the fact that we use skip to check for Selenium lib being
installed. So based on what I see, it should skip (an mark as passed!) the
tests when Selenium lib isn't there :o


What would be the simplest way to run the full test suite locally?

> prove -r t/ xt/ -j $(nproc) --rules='seq=t/db_dependent/**.t'
> echo "DROP DATABASE koha_kohadev; CREATE DATABASE koha_kohadev;" | koha-mysql 
> kohadev
> restart_all
> prove t/db_dependent/selenium/

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #49 from Jonathan Druart  ---
Created attachment 126819
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126819=edit
Bug 19185: Add missing +x on new test files

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #48 from Jonathan Druart  ---
Pushed to master for 21.11, thanks to everybody involved!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-25 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Status|Passed QA   |Pushed to master
 Version(s)||21.11.00
released in||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #47 from Jonathan Druart  ---
Created attachment 126652
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126652=edit
Bug 19185: Split installation and onboarding

The previous installation tests were testing the full onboarding process
by not selecting all the sample data.
It would be good to test the whole sample data set.

So there are now 2 files, 00-onboarding.t and 01-installation.t

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #46 from Jonathan Druart  ---
Created attachment 126651
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126651=edit
Bug 19185: DB must exist but empty

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #45 from Jonathan Druart  ---
Created attachment 126650
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126650=edit
Bug 19185: Fix language selection

'en' is in an optgroup

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #44 from Jonathan Druart  ---
Created attachment 126649
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126649=edit
Bug 19185: Fix tests

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #43 from Jonathan Druart  ---
Created attachment 126648
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126648=edit
Bug 19185: Add selenium tests for installation and onboarding process

== Test plan ==
1. Apply the patches (including bug 19821)
2. restart_all
3. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
4. result: Config entry 'database_test' does not exist at
 /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18
5. Edit $KOHA_CONF, add a database_test entry identical to database
 You should have:
 koha_kohadev
 koha_kohadev
6. restart_all
7. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
8. result: Entries 'database_test' and 'database' have the same value in your
 config at /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.
9. Edit $KOHA_CONF, edit database_test with koha_test as DB name
10. restart_all
11. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
12. result: Access denied for user 'koha_kohadev'@'localhost'
   to database 'koha_test'
13. Connect to the DBMS
14. Example for koha_testing_docker
  docker exec -it koha_db_1 bash
  mysql -u root --password=password
15. GRANT ALL PRIVILEGES ON `koha_test`.* TO 'koha_kohadev';
16. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
17. result: All tests successful.

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Kyle M Hall 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #42 from Jonathan Druart  ---
Created attachment 126647
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126647=edit
Bug 19185: Ease elements selection

- The marcflavour select needs an id to be selected easily
- "Continue to the next step" should be a button (like others)

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Kyle M Hall 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-10-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Attachment #105797|0   |1
is obsolete||
 Attachment #105798|0   |1
is obsolete||
 Attachment #105799|0   |1
is obsolete||
 Attachment #120273|0   |1
is obsolete||

--- Comment #41 from Jonathan Druart  ---
Created attachment 126646
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126646=edit
Bug 19185: Use submit button if only one exists on the page

During the installation process we do not have fieldset.action, in order
to not complicate changes we are just going to use the submit button if
only one exists.

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Kyle M Hall 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-05-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

   Keywords||rel_21_11_candidate

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-05-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #40 from Victor Grousset/tuxayo  ---
Still works :)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2021-04-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #39 from Jonathan Druart  ---
Created attachment 120273
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120273=edit
Bug 19185: Fix tests

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-06-15 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Kyle M Hall  changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA
 CC||k...@bywatersolutions.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-06-15 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Status|Passed QA   |Signed Off

--- Comment #38 from Jonathan Druart  
---
This depends on bug 19821 that is not PQA yet.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-06-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #37 from Kyle M Hall  ---
Created attachment 105799
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105799=edit
Bug 19185: Add selenium tests for installation and onboarding process

== Test plan ==
1. Apply the patches (including bug 19821)
2. restart_all
3. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
4. result: Config entry 'database_test' does not exist at
 /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18
5. Edit $KOHA_CONF, add a database_test entry identical to database
 You should have:
 koha_kohadev
 koha_kohadev
6. restart_all
7. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
8. result: Entries 'database_test' and 'database' have the same value in your
 config at /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.
9. Edit $KOHA_CONF, edit database_test with koha_test as DB name
10. restart_all
11. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
12. result: Access denied for user 'koha_kohadev'@'localhost'
   to database 'koha_test'
13. Connect to the DBMS
14. Example for koha_testing_docker
  docker exec -it koha_db_1 bash
  mysql -u root --password=password
15. GRANT ALL PRIVILEGES ON `koha_test`.* TO 'koha_kohadev';
16. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
17. result: All tests successful.

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Kyle M Hall 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-06-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #36 from Kyle M Hall  ---
Created attachment 105798
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105798=edit
Bug 19185: Ease elements selection

- The marcflavour select needs an id to be selected easily
- "Continue to the next step" should be a button (like others)

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Kyle M Hall 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-06-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Kyle M Hall  changed:

   What|Removed |Added

 Attachment #105796|0   |1
is obsolete||

--- Comment #35 from Kyle M Hall  ---
Created attachment 105797
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105797=edit
Bug 19185: Use submit button if only one exists on the page

During the installation process we do not have fieldset.action, in order
to not complicate changes we are just going to use the submit button if
only one exists.

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Kyle M Hall 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-06-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Kyle M Hall  changed:

   What|Removed |Added

 Attachment #103406|0   |1
is obsolete||
 Attachment #103407|0   |1
is obsolete||
 Attachment #103416|0   |1
is obsolete||

--- Comment #34 from Kyle M Hall  ---
Created attachment 105796
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105796=edit
Bug 19185: Use submit button if only one exists on the page

During the installation process we do not have fieldset.action, in order
to not complicate changes we are just going to use the submit button if
only one exists.

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

Signed-off-by: Kyle M Hall 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-06-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Kyle M Hall  changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-04-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #33 from Victor Grousset/tuxayo  ---
Signed off, I did nothing more than what's the test plan in the patch so I hope
I didn't missed something when I rewrote it.

== Diff of the test plan ==
=== Before ===
The test plan was in comment 23

% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Config entry 'database_test' does not exist at
/home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18

# Edit $KOHA_CONF, add a database_test entry identical to database (then
restart_all):
% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Entries 'database_test' and 'database' have the same value in your config at
/home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.

# Edit $KOHA_CONF, edit database_test with koha_kohadev_test (then restart_all)
% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Access denied for user 'koha_kohadev'@'localhost' to database
'koha_kohadev_test'

# Login as the admin mysql user
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `koha_kohadev_test`.* TO
'koha_kohadev'@'localhost';

% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
t/db_dependent/selenium/00-installation.t .. ok 
All tests successful.
Files=1, Tests=2, 25 wallclock secs ( 0.02 usr  0.01 sys +  1.34 cusr  0.24
csys =  1.61 CPU)
Result: PASS


=== After ===
1. Apply the patches (including bug 19821)
2. restart_all
3. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
4. result: Config entry 'database_test' does not exist at
 /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18
5. Edit $KOHA_CONF, add a database_test entry identical to database
 You should have:
 koha_kohadev
 koha_kohadev
6. restart_all
7. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
8. result: Entries 'database_test' and 'database' have the same value in your
 config at /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.
9. Edit $KOHA_CONF, edit database_test with koha_test as DB name
10. restart_all
11. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
12. result: Access denied for user 'koha_kohadev'@'localhost'
   to database 'koha_test'
13. Connect to the DBMS
14. Example for koha_testing_docker
  docker exec -it koha_db_1 bash
  mysql -u root --password=password
15. GRANT ALL PRIVILEGES ON `koha_test`.* TO 'koha_kohadev';
16. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
17. result: All tests successful.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-04-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 Attachment #103408|0   |1
is obsolete||

--- Comment #32 from Victor Grousset/tuxayo  ---
Created attachment 103416
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103416=edit
Bug 19185: Add selenium tests for installation and onboarding process

== Test plan ==
1. Apply the patches (including bug 19821)
2. restart_all
3. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
4. result: Config entry 'database_test' does not exist at
 /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18
5. Edit $KOHA_CONF, add a database_test entry identical to database
 You should have:
 koha_kohadev
 koha_kohadev
6. restart_all
7. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
8. result: Entries 'database_test' and 'database' have the same value in your
 config at /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.
9. Edit $KOHA_CONF, edit database_test with koha_test as DB name
10. restart_all
11. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
12. result: Access denied for user 'koha_kohadev'@'localhost'
   to database 'koha_test'
13. Connect to the DBMS
14. Example for koha_testing_docker
  docker exec -it koha_db_1 bash
  mysql -u root --password=password
15. GRANT ALL PRIVILEGES ON `koha_test`.* TO 'koha_kohadev';
16. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
17. result: All tests successful.

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-04-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Victor Grousset/tuxayo  changed:

   What|Removed |Added

  Attachment #81914|0   |1
is obsolete||

--- Comment #30 from Victor Grousset/tuxayo  ---
Created attachment 103407
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103407=edit
Bug 19185: Ease elements selection

- The marcflavour select needs an id to be selected easily
- "Continue to the next step" should be a button (like others)

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-04-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Victor Grousset/tuxayo  changed:

   What|Removed |Added

  Attachment #81913|0   |1
is obsolete||

--- Comment #29 from Victor Grousset/tuxayo  ---
Created attachment 103406
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103406=edit
Bug 19185: Use submit button if only one exists on the page

During the installation process we do not have fieldset.action, in order
to not complicate changes we are just going to use the submit button if
only one exists.

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-04-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Victor Grousset/tuxayo  changed:

   What|Removed |Added

  Attachment #81915|0   |1
is obsolete||

--- Comment #31 from Victor Grousset/tuxayo  ---
Created attachment 103408
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103408=edit
Bug 19185: Add selenium tests for installation and onboarding process

Signed-off-by: Martin Renvoize 
Signed-off-by: Victor Grousset/tuxayo 

== Test plan ==
1. Apply the patches (including bug 19821)
2. restart_all
3. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
4. result: Config entry 'database_test' does not exist at
 /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18
5. Edit $KOHA_CONF, add a database_test entry identical to database
 You should have:
 koha_kohadev
 koha_kohadev
6. restart_all
7. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
8. result: Entries 'database_test' and 'database' have the same value in your
 config at /home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.
9. Edit $KOHA_CONF, edit database_test with koha_test as DB name
10. restart_all
11. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
12. result: Access denied for user 'koha_kohadev'@'localhost'
   to database 'koha_test'
13. Connect to the DBMS
14. Example for koha_testing_docker
  docker exec -it koha_db_1 bash
  mysql -u root --password=password
15. GRANT ALL PRIVILEGES ON `koha_test`.* TO 'koha_kohadev';
16. prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
17. result: All tests successful.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-04-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #28 from Jonathan Druart  
---
(In reply to Victor Grousset/tuxayo from comment #27)
> Tried to test this as related to bug 19821
> 
> What does this mean?↓
> 
> > # Edit $KOHA_CONF, add a database_test entry identical to database (then 
> > restart_all):

database and database_test with the same value, like:
  koha_kohadev
  koha_kohadev

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-04-20 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Victor Grousset/tuxayo  changed:

   What|Removed |Added

 CC||vic...@tuxayo.net

--- Comment #27 from Victor Grousset/tuxayo  ---
Tried to test this as related to bug 19821

What does this mean?↓

> # Edit $KOHA_CONF, add a database_test entry identical to database (then 
> restart_all):

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2020-01-11 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #26 from Jonathan Druart  
---
*** Bug 17360 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2019-10-15 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #25 from Jonathan Druart  
---
(In reply to Katrin Fischer from comment #24)
> We've discussed this and the other patch set on bug 19812 during the
> hackfest and decided to wait until Jonathan's return to pick it up again.
> IIRC we were not sure if bug 19821 is really needed for this one to proceed
> and how they fit together. There was also a question on permissions etc. for
> the second database needed and how this would work for the various
> installation scenarios we currently support.
> 
> Jonathan, could you get in touch with me once around again? Maybe also
> something we could clear up in a dev meeting.

Hi Katrin,
We definitely need bug 19821 to make those tests work correctly. Did you write
the questions down?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2019-10-08 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #24 from Katrin Fischer  ---
We've discussed this and the other patch set on bug 19812 during the hackfest
and decided to wait until Jonathan's return to pick it up again. IIRC we were
not sure if bug 19821 is really needed for this one to proceed and how they fit
together. There was also a question on permissions etc. for the second database
needed and how this would work for the various installation scenarios we
currently support.

Jonathan, could you get in touch with me once around again? Maybe also
something we could clear up in a dev meeting.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2019-05-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Status|Failed QA   |Signed Off

--- Comment #23 from Jonathan Druart  
---
Test plan (for bug 19185 and bug 19821):
% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Config entry 'database_test' does not exist at
/home/vagrant/kohaclone/t/lib/Bootstrap.pm line 18

# Edit $KOHA_CONF, add a database_test entry identical to database (then
restart_all):
% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Entries 'database_test' and 'database' have the same value in your config at
/home/vagrant/kohaclone/t/lib/Bootstrap.pm line 20.

# Edit $KOHA_CONF, edit database_test with koha_kohadev_test (then restart_all)
% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
Access denied for user 'koha_kohadev'@'localhost' to database
'koha_kohadev_test'

# Login as the admin mysql user
MariaDB [(none)]> GRANT ALL PRIVILEGES ON `koha_kohadev_test`.* TO
'koha_kohadev'@'localhost';

% prove -Mt::lib::Bootstrap t/db_dependent/selenium/00-installation.t
t/db_dependent/selenium/00-installation.t .. ok 
All tests successful.
Files=1, Tests=2, 25 wallclock secs ( 0.02 usr  0.01 sys +  1.34 cusr  0.24
csys =  1.61 CPU)
Result: PASS

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2019-05-11 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #22 from Katrin Fischer  ---
Hm, looks like curl was missing, installed and tried again.

It looks like it failed at logging in, did I miss a preparation step?

kohadev-koha@kohadevbox:/home/vagrant/kohaclone$ prove
t/db_dependent/selenium/00-installation.t
t/db_dependent/selenium/00-installation.t .. 
STRACE: /usr/share/perl5/Try/Tiny.pm:124 in Selenium::Remote::Driver::catch
{...} 
/usr/local/share/perl/5.24.1/Selenium/Remote/Driver.pm:348 in
Try::Tiny::try
(eval 330):1 in Selenium::Remote::Driver::__ANON__
(eval 332):2 in Selenium::Remote::Driver::__ANON__
/usr/local/share/perl/5.24.1/Selenium/Remote/Driver.pm:1230 in
Selenium::Remote::Driver::_execute_command
/usr/local/share/perl/5.24.1/Selenium/Remote/Driver.pm:1230 in (eval)
/home/vagrant/kohaclone/t/lib/Selenium.pm:120 in
Selenium::Remote::Driver::find_element
t/db_dependent/selenium/00-installation.t:63 in
t::lib::Selenium::fill_form


SCREENSHOT: https://framapic.org/lOB1mxx6MxFE/TSvv7dPkJkCy
An element could not be located on the page using the given search parameters:
//*[@id="language"],xpath at /home/vagrant/kohaclone/t/lib/Selenium.pm line
120.
# Looks like your test exited with 255 before it could output anything.
t/db_dependent/selenium/00-installation.t .. Dubious, test returned 255 (wstat
65280, 0xff00)
Failed 2/2 subtests 

Test Summary Report
---
t/db_dependent/selenium/00-installation.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 2 tests but ran 0.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2019-05-11 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Katrin Fischer  changed:

   What|Removed |Added

 Status|Signed Off  |Failed QA

--- Comment #21 from Katrin Fischer  ---
I've applied both bugs, bug 19821 and this one.

With Joubu's help (thx!) my Selenium tests run in general now, but these sadly
still fail:

t/db_dependent/selenium/00-installation.t .. 
STRACE: /usr/share/perl5/Try/Tiny.pm:124 in Selenium::Remote::Driver::catch
{...} 
/usr/local/share/perl/5.24.1/Selenium/Remote/Driver.pm:348 in
Try::Tiny::try
(eval 330):1 in Selenium::Remote::Driver::__ANON__
(eval 332):2 in Selenium::Remote::Driver::__ANON__
/usr/local/share/perl/5.24.1/Selenium/Remote/Driver.pm:1230 in
Selenium::Remote::Driver::_execute_command
/usr/local/share/perl/5.24.1/Selenium/Remote/Driver.pm:1230 in (eval)
/home/vagrant/kohaclone/t/lib/Selenium.pm:120 in
Selenium::Remote::Driver::find_element
t/db_dependent/selenium/00-installation.t:63 in
t::lib::Selenium::fill_form

sh: 1: curl: not found
malformed JSON string, neither tag, array, object, number, string or atom, at
character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line
171.
# Looks like your test exited with 127 before it could output anything.
t/db_dependent/selenium/00-installation.t .. Dubious, test returned 127 (wstat
32512, 0x7f00)
Failed 2/2 subtests 

Test Summary Report
---
t/db_dependent/selenium/00-installation.t (Wstat: 32512 Tests: 0 Failed: 0)
  Non-zero exit status: 127
  Parse errors: Bad plan.  You planned 2 tests but ran 0.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2019-02-17 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Status|BLOCKED |Signed Off

--- Comment #20 from Jonathan Druart  
---
Back to SO.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2019-02-14 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Katrin Fischer  changed:

   What|Removed |Added

 CC||katrin.fisc...@bsz-bw.de
 Status|Signed Off  |BLOCKED

--- Comment #19 from Katrin Fischer  ---
BLOCKED by FQA on the dependent bug for the moment.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=17360

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Martin Renvoize  changed:

   What|Removed |Added

 QA Contact|testo...@bugs.koha-communit |tomasco...@gmail.com
   |y.org   |

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #18 from Martin Renvoize  ---
As CI maintainer, I've set Tomas to QA this one.. I think he's best placed to
give it the final go ahead.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Martin Renvoize  changed:

   What|Removed |Added

  Attachment #75090|0   |1
is obsolete||

--- Comment #16 from Martin Renvoize  ---
Created attachment 81915
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81915=edit
Bug 19185: Add selenium tests for installation and onboarding process

Signed-off-by: Martin Renvoize 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Martin Renvoize  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

--- Comment #17 from Martin Renvoize  ---
With a bit of perseverance, I got it to work. Signing Off

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Martin Renvoize  changed:

   What|Removed |Added

  Attachment #75089|0   |1
is obsolete||

--- Comment #15 from Martin Renvoize  ---
Created attachment 81914
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81914=edit
Bug 19185: Ease elements selection

- The marcflavour select needs an id to be selected easily
- "Continue to the next step" should be a button (like others)

Signed-off-by: Martin Renvoize 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Martin Renvoize  changed:

   What|Removed |Added

 CC||tomasco...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-11-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Martin Renvoize  changed:

   What|Removed |Added

  Attachment #75088|0   |1
is obsolete||

--- Comment #14 from Martin Renvoize  ---
Created attachment 81913
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81913=edit
Bug 19185: Use submit button if only one exists on the page

During the installation process we do not have fieldset.action, in order
to not complicate changes we are just going to use the submit button if
only one exists.

Signed-off-by: Martin Renvoize 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-08-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #13 from Jonathan Druart  
---
(In reply to Martin Renvoize from comment #11)
> Comment on attachment 75090 [details] [review]
> Bug 19185: Add selenium tests for installation and onboarding process
> 
> Review of attachment 75090 [details] [review]:
> -
> 
> ::: t/db_dependent/selenium/00-installation.t
> @@ +52,5 @@
> > +my $db_pass = C4::Context->config('pass');
> > +
> > +$driver->get($base_url."mainpage.pl");
> > +
> > +my $lang = "en"; # The idea here is to loop on all languages
> 
> Question: Why would we want to loop for all languages? Are you still
> intending on implementing this?

We should test the installer process for different languages, in the script I
have listed the ones we have for the manual. The idea would be to run it for
each of them.
We should also test with and without sample data (i.e. without and with
onboarding tool), see commented tests.

But it's for the next steps (if it does not take too long to be part of the
codebase).

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-08-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Martin Renvoize  changed:

   What|Removed |Added

 CC||martin.renvoize@ptfs-europe
   ||.com

--- Comment #12 from Martin Renvoize  ---
This generally looks pretty solid to me.. certainly a good first step.. i'm
sure we could test the negative cases a bit more (for example using bad db
credentials and checking the right errors are present), but generally speaking
this looks good to me.  Of course, these tests can only be run on a brand new
DB and as such make most sense when used alongside the dependency bug 19821
which given the right config will create a brand new clean database for each
test run.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-08-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #11 from Martin Renvoize  ---
Comment on attachment 75090
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75090
Bug 19185: Add selenium tests for installation and onboarding process

Review of attachment 75090:
 --> 
(https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html=19185=75090)
-

::: t/db_dependent/selenium/00-installation.t
@@ +52,5 @@
> +my $db_pass = C4::Context->config('pass');
> +
> +$driver->get($base_url."mainpage.pl");
> +
> +my $lang = "en"; # The idea here is to loop on all languages

Question: Why would we want to loop for all languages? Are you still intending
on implementing this?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-08-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=21149

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

   Keywords|rel_18_05_candidate |

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-07 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

   Keywords||rel_18_05_candidate

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Depends on||19821

--- Comment #10 from Jonathan Druart  
---
Maybe not ready yet for integration but need feedbacks.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19821
[Bug 19821] Run tests on a separate database
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Status|ASSIGNED|Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #8 from Jonathan Druart  
---
Created attachment 75089
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75089=edit
Bug 19185: Ease elements selection

- The marcflavour select needs an id to be selected easily
- "Continue to the next step" should be a button (like others)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #9 from Jonathan Druart  
---
Created attachment 75090
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75090=edit
Bug 19185: Add selenium tests for installation and onboarding process

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

  Attachment #66508|0   |1
is obsolete||
  Attachment #68830|0   |1
is obsolete||

--- Comment #7 from Jonathan Druart  
---
Created attachment 75088
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75088=edit
Bug 19185: Use submit button if only one exists on the page

During the installation process we do not have fieldset.action, in order
to not complicate changes we are just going to use the submit button if
only one exists.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2018-05-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Status|BLOCKED |ASSIGNED
   Assignee|alexbuck...@catalyst.net.nz |jonathan.dru...@bugs.koha-c
   ||ommunity.org

--- Comment #6 from Jonathan Druart  
---
I am working on this.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

M. Tompsett  changed:

   What|Removed |Added

 Depends on||19243


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243
[Bug 19243] Selenium test for testing the administration module functionality
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-10-30 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Status|Failed QA   |BLOCKED

--- Comment #5 from Jonathan Druart  
---
Blocked by bug 19243. We need to find a clean way to continue.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

M. Tompsett  changed:

   What|Removed |Added

 CC||mtomp...@hotmail.com
 Status|Needs Signoff   |Failed QA

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #4 from M. Tompsett  ---
Even with my attached patch, I hit problems.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #3 from M. Tompsett  ---
Created attachment 68830
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68830=edit
Bug 19185: Change to use ENV, fix login and passwords

The kohadevbox has admin/admin set, so for testing when
creating the initial superuser, if you wish to minimize
effort, use admin/admin. Otherwise, make sure to:
export KOHA_USER={whatever your user is}
export KOHA_PASS={whatever your password is}
before attempting to run the test.

Also, this test was failing because 'sub auth' was using
the ugliest of xpath's to find the submit button.
I've noticed the other selenium tests have similar functions.
It might be an idea to build a t/lib/Selenium.pm so as to
reduce code duplication and older versions differing from
newer versions.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-09-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Jonathan Druart  changed:

   What|Removed |Added

 Blocks||19384
 CC||jonathan.dru...@bugs.koha-c
   ||ommunity.org


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19384
[Bug 19384] [OMNIBUS] Add Selenium tests
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-08-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Alex Buckley  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=18974

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-08-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

Alex Buckley  changed:

   What|Removed |Added

 Status|NEW |Needs Signoff

--- Comment #2 from Alex Buckley  ---
This patch was originally attached to 18974 however I have placed it in its own
bug report to make testing more straightforward

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

2017-08-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #1 from Alex Buckley  ---
Created attachment 66508
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66508=edit
Bug 19185 - Selenium test for the Koha web installer and onboarding tool

This Selenium test will go through the web installer and onboarding tool
testing the Koha installation workflow.

Test plan (this test plan includes how to install Selenium as well as how to
run this test, for the benefit of people who have not got
Selenium installed on their machines):

1. wget
https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar

2. vim /etc/apt/sources.list.d/firefox.list

3. Paste into the file:
deb http://packages.linuxmint.com debian import

4. sudo apt-get update

5. sudo apt-get install firefox

6. sudo apt-get install xvfb

7. Set the SELENIUM_PATH vartiable:
SELENIUM_PATH=/home/vagrant/kohaclone/selenium-server-standalone-2.53.0.jar

8. Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null &

9. DISPLAY=:1 java -jar $SELENIUM_PATH

Note: This will start up the selenium server. Everytime you want to
shutdown this terminal window and want to restart Selenium just run the step 9
command to restart the Selenium server

10. Open a new terminal window and write in:
git clone https://github.com/gempesaw/Selenium-Remote-Driver --branch
build/master --single-branch --depth 1

11. cd Selenium-Remote-Driver

12. perl Makefile.PL

13. make

14. make test

15. sudo make install

16. Now everything is installed and you can et up for running the
selenium tests

17. In a new terminal restart memcached and drop and recreate the Koha database

18. sudo koha-shell kohadev

19. perl t/db_dependent/selenium/installkoha.t

20. Notice the db errors saying that database tables do not exist

21. Notice the CP test output messages stating what the test is doing

Note: warns exist in this selenium test because using Selenium to test
the web installer and onboarding tool has proved to be flaky. The use of
warning out the title of the currently loaded page and implementing pauses has
helped get the test to pass after many hours of troubleshooting. If anyone can
suggest alternatives please do so.

Sponsored-By: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/