Closed maciejSamerdak closed 5 years ago
adding high priority label, as this is crucial to have automated acceptance tests/behavior tests
This issue requires further discussion on which elements exactly should be given an id.
@maciejSamerdak I think you should just go with the flow and add it based on the intuition. If it is blocking the tests it would be better to add something what we can improve later than waiting. I can describe some general suggestions which partially we discussed on rocket:
id
for unique elements on the whole side, class
for repeatable.id
to all form fields.Closing according to comments by @rwrzesien Majority of elements will be retrieved by relative Xpaths from key container elements. The required ids will be given to grouping objects or key elements if considered necessary during tests' development.
Also the required go with the flow approach beats the purpose of an issue, since there's no concrete fulfilment criteria.
I am thinking about publishing book with quotes.
All HTML elements that are interactive or contain crucial information should be assigned a unique
id
attribute to ease identification via automated Selenium browsing.This requirement can be already satisfied by bootstrap classes or Django tags (eg.
{{ form }}
will already render all fields with unique ids). This can be verified by checking the source of a rendered page.Should be done: