Bug 9808 - Create selenium tests for project dashboard page
Summary: Create selenium tests for project dashboard page
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.3 M4
Assignee: Libertad
QA Contact: David Lopez Barriba
URL:
Whiteboard:
Depends on:
Blocks: 9132
  Show dependency tree
 
Reported: 2016-06-21 15:00 UTC by Michael Wood
Modified: 2017-05-10 16:17 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Wood 2016-06-21 15:00:15 UTC
We currently don't have project dashboard page selenium tests. These may be covered when bug #9484 is done.
Comment 1 Sonia Delgado 2016-11-25 17:56:00 UTC
(In reply to comment #0)
> We currently don't have project dashboard page selenium tests. These may be
> covered when bug #9484 is done.

Michael, Looking into http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/toaster?id=5bc6fa01e0581c703808597878244cf9a38cefba both efforts bug #9484 and this one are not longer required. could you please confirm?
Comment 2 Michael Wood 2016-11-28 18:23:56 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > We currently don't have project dashboard page selenium tests. These may be
> > covered when bug #9484 is done.
> 
> Michael, Looking into
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/
> toaster?id=5bc6fa01e0581c703808597878244cf9a38cefba both efforts bug #9484
> and this one are not longer required. could you please confirm?

This is still required work, that commit you references is removing old non functioning tests. If there are parts that have been incorrectly removed lets add them back, no problem.

All the current and working tests for Toaster are found in /tests/ directory of Toaster. If QA have been working on selenium tests (perhaps they are currently out of tree?) this is where they can go.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/toaster/tests
Comment 3 Libertad 2017-03-09 16:19:12 UTC
Added 7 new testcases that verify the UI interface and elements of the project detail page.
This testcases can be found on testopia in the links:

Verifies that the project is created and that you get redirected to the configuration page
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1514

Verifies that the left side bar menu, all links are clickable and they show on the UI
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1515

Verifies that after creating a project the default project configuration is created
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1516

Verifies that the default machine is set, once creating the project
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1517

Verifies the built recipes information of the project detail page
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1518

Verifies the default release information of the project
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1519

Verifies that the default layers are assigned to the project
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1520

Verifies that the links to the Configuration, Builds, Import layer and New Custom Image are present and work.
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=1521
Comment 4 David Reyna 2017-04-05 23:37:45 UTC
Pass my test:

1. $ source oe-init-build-env
2. $ export TOASTER_TESTS_BROWSER='firefox'
3. $ export DJANGO_SETTINGS_MODULE='toastermain.settings_test'
4. $ ../bitbake/lib/toaster/manage.py/manage.py test tests.functional

Patch sent upstream
Comment 5 Libertad 2017-05-10 16:17:47 UTC
commit was integraded