Hi, I'm a little new to cypress but had a question...
# e2e-testing
m
Hi, I'm a little new to cypress but had a question regarding optimizing a block of locators with a similar name. The locators are in a dedicated locator file that is called from the main test script(similar to page object model). This is an example of the locators:
Copy code
drawerAccordianContent1:
    '[data-testid="drawer-accordion-description-1"]',
  drawerAccordianContent2:
    '[data-testid="drawer-accordion-description-2"]',
  drawerAccordianContent3:
    '[data-testid="drawer-accordion-description-3"]',
  drawerAccordianContent4:
    '[data-testid="drawer-accordion-description-4"]',
  drawerAccordianContent5:
    '[data-testid="drawer-accordion-description-5"]',