perf: use const in VnLocation
gitea/salix-front/pipeline/pr-test This commit looks good Details

This commit is contained in:
Javier Segarra 2024-11-20 10:07:03 +01:00
parent deb6467af8
commit d6aedad38e
1 changed files with 4 additions and 2 deletions

View File

@ -19,13 +19,15 @@ describe('VnLocation', () => {
cy.get(createLocationButton).click();
});
it('should filter provinces based on selected country', () => {
cy.selectOption(countrySelector, 'Ecuador');
const country = 'Ecuador';
cy.selectOption(countrySelector, country);
cy.get(countrySelector).should('have.length', 1);
cy.get(citySelector).should('have.length', 1);
});
it('should filter towns based on selected province', () => {
cy.selectOption(countrySelector, 'Ecuador');
const country = 'Ecuador';
cy.selectOption(countrySelector, country);
cy.get(provinceSelector).should('have.length', 1);
cy.get(citySelector).should('have.length', 1);
});