Clicking "Edit topics" header action button returns AttributeError: 'list' object has no attribute 'click_action_button'

Bug #1412967 reported by Carla Sella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Shorts App
New
Undecided
Unassigned

Bug Description

In autopilot test: test_edit_topic I need to click the header action button "Edit topics" for testing the editing of a topic.
If I use this code:

        header = self.get_header()
        header.click_action_button('editTopicsAction')

(see lines 281 and 282 of __init__.py file) running the test returns:

Traceback (most recent call last):
  File "/home/letozaf/autopilot-tests/ubuntu-rssreader-app/tests/autopilot/shorts_app/tests/test_rssreader.py", line 126, in test_edit_topic
    self.app.main_view.click_edit_topics_in_header()
  File "/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/home/letozaf/autopilot-tests/ubuntu-rssreader-app/tests/autopilot/shorts_app/__init__.py", line 282, in click_edit_topics_in_header
    header.click_action_button('editTopicsAction')
AttributeError: 'list' object has no attribute 'click_action_button'

I had to use a workaround to make the test work.

I am attaching a screenshot of autopilot vis.

Revision history for this message
Carla Sella (carla-sella) wrote :
Revision history for this message
Carla Sella (carla-sella) wrote :

I am also attaching the output of the failed test.

Revision history for this message
Carla Sella (carla-sella) wrote :

I have the same problem at lines 303 and 304:

        header = self.get_header()
        header.click_action_button("doneButton")

clicking the done button in edit feeds page.

Revision history for this message
Roman Shchekin (mrqtros) wrote :

Carla, seems that nor me or Joey can help you with that...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.