WARMFIX: e2e jsegarra #973

Merged
jsegarra merged 12 commits from fix_js_e2e into test 2024-11-21 08:20:22 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit d6aedad38e - Show all commits

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);
});