US-15-4 Prohibit the use of automatically generated attributes

TO DO

Description

As a user
AND autogenerated attributes are used in my project
I want to not generate code on it
So that allow me to get correct code

Dependencies

US-15-1
US-15-2
US-2-1
US-2-2

Acceptance criteria

UC 15-3-4 User can’t add the similar attributes to prohibit and provide
UC 15-4-1 User can prohibit custom attributes to Page Object

GIVEN I am a user 

AND I created “New Page Object”

AND I clicked on “Settings”

AND I choose the “Attributes” section

WHEN I add attributes in “Prohibited attributes to generate locators”

AND I click on “Save”

THEN Locators must be generated avoiding these attributes

UC 15-4-2 User can prohibit custom attributes to selected locators in Locators List
UC 15-4-3 User can prohibit custom attributes to the locator

Related artefacts

Design

Design is similar as for provided attributes

“Locator type” is a part of Settings

Comments

Список всех атрибутов по ссылкам:
https://www.tutorialspoint.com/html5/html5_attributes.htm

https://www.w3schools.com/tags/ref_attributes.asp

плюс добавить парочку кастомных:
automation-id
data-test-id

линк на Ant Design где реализирован похожий функционал с тегами:

 

These labels shouldn't affect on recognition
[ "aria-label","aria-describedby","aria-colindex","aria-expanded","aria-rowcount","aria-controls","aria-valuenow","aria-selected","aria-rowindex","aria-labelledby","aria-valuemin","aria-invalid","aria-checked","aria-hidden","aria-haspopup","aria-sort","aria-valuemax","aria-disabled","aria-multiselectable","aria-current","aria-colcount","aria-orientation","placeholder","focusable","rows","title","typenumber","viewBox","value","for","id","name","min","max"]