#9282 Nightly test failure in test_webui/test_subid.py/test_subid/test_subid_range_deletion_not_allowed
Closed: fixed 2 years ago by frenaud. Opened 2 years ago by mpolovka.

The nightly test test_subid_range_deletion_not_allowed is faling in [testing_ipa-4.9_latest] Nightly PR #2209 and [testing_ipa-4.9_latest_selinux] Nightly PR #2207
with an error

    def test_subid_range_deletion_not_allowed(self):
        """
        Test to check that subid range delete is not
        allowed from WebUI i.e Delete button is not available.
        """
        self.init_app()
        self.navigate_to_entity('subid', facet='search')
        admin_uid = self.get_record_pkey("admin", "ipaowner",
                                         table_name="ipauniqueid")
        with pytest.raises(NoSuchElementException) as excinfo:
            self.delete_record(admin_uid, table_name="ipauniqueid")
        # Ensure that the exception is really related to missing remove button
        msg = "Unable to locate element: .facet-controls button[name=remove]"
>       assert msg in str(excinfo)
E       AssertionError: assert 'Unable to locate element: .facet-controls button[name=remove]' in '<ExceptionInfo NoSuchElementException() tblen=10>'
E        +  where '<ExceptionInfo NoSuchElementException() tblen=10>' = str(<ExceptionInfo NoSuchElementException() tblen=10>)

which suggest, that the test adjustment is needed as the error message changed.
report 1, report 2


Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6578
- Issue assigned to frenaud (was: smenon)

2 years ago

master:

  • f43dab3 webui tests: fix assertion in test_subid.py

ipa-4-10:

  • c411c2e webui tests: fix assertion in test_subid.py

ipa-4-9:

  • 3801d0c webui tests: fix assertion in test_subid.py

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Log in to comment on this ticket.

Metadata