Code-Poets / sheetstorm

Web working hours sheet for Code-Poets employees
https://www.sheetstorm.codepoets.it
2 stars 0 forks source link

Crucial HTML elements should have an id #420

Closed maciejSamerdak closed 5 years ago

maciejSamerdak commented 5 years ago

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:

dybi commented 5 years ago

adding high priority label, as this is crucial to have automated acceptance tests/behavior tests

maciejSamerdak commented 5 years ago

This issue requires further discussion on which elements exactly should be given an id.

rwrzesien commented 5 years ago

@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:

maciejSamerdak commented 5 years ago

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.

rwrzesien commented 5 years ago

I am thinking about publishing book with quotes.