ManageIQ / integration_tests

ManageIQ integration tests
GNU General Public License v2.0
69 stars 164 forks source link

Pressing Add button on MapTags menu doesn't add the Tag #5027

Open pavelzag opened 7 years ago

pavelzag commented 7 years ago

Attempting the following code:

from cfme.configure.configuration.region_settings import MapTags

mt = MapTags(entity=instance.__class__.__name__, label='label_name', category='category')
mt.create()

And getting "Label required" or "Category required" errors. Doesn't happen manually. Added a video:

https://www.youtube.com/watch?v=x6mMmcalR2A

pavelzag commented 7 years ago

@rlbabyuk @mfalesni @mshriver

mfalesni commented 7 years ago

I already mentioned that it looks like some Javascript not firing.

jkrocil commented 7 years ago

This works for me locally. Both in firefox and chrome.

jkrocil commented 7 years ago

Using automation of course ^

jkrocil commented 7 years ago

@gshefer @pavelzag please share your selenium server, selenium package and browser versions

gshefer commented 7 years ago

@jaryn ^

jarovo commented 7 years ago

It's

docker.io/cfmeqe/sel_ff_chrome sel-2.51.0_ff-38.6esr_chrome49 d20cc7fdb39e 16 months ago 1.566 GB

jkrocil commented 7 years ago

Works for me.

Image:

REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
docker.io/cfmeqe/sel_ff_chrome   latest              d20cc7fdb39e        16 months ago       1.566 GB

Code:

In [1]: from cfme.configure.configuration.region_settings import MapTags
In [2]: mt = MapTags(entity='Pod', label='label_name', category='category')
In [3]: mt.create()

runs just fine with firefox.

jkrocil commented 7 years ago

Ok, I have a clear reproducer now. It is only after immediate failure that the form fails to respond to our automation.

Example:

1. Fill form with 'test', click Add -> success
2. Fill form with 'test' again, click Add -> error message
3. Fill form with 'anything', unable to click Add

Code:

import cfme.base.ui
import cfme.intelligence.chargeback.rates as rates
rate = rates.ComputeRate(description='test_rate')
rate.create()
rate = rates.ComputeRate(description='test_rate')
rate.create()
rate = rates.ComputeRate(description='test_rate_new')
rate.create()

causing NoSuchElementException: Message: Could not find an element Button(title='Add').

This happens both with Map Tags and with Chargeback rates; the reproducer is clearly for Chargeback rates.

Note: We need to import cfme.base.ui in the example above because of a circular import somewhere...

jkrocil commented 7 years ago

I will be discussing this with developers and will update this issue once I know more.

pavelzag commented 7 years ago

selenium==2.53.6 Firefox = 45.0.2 I run the test locally

jkrocil commented 7 years ago

We made some progress today; chargebacks seem to be fixed now because of changes to widgetastic and navigation in chargebacks :+1: but map tags are still broken. Martin and I will continue chasing that on Monday.