fix: use stable selector for cypress input tests
@@ -8,12 +8,12 @@ context('Increment steppers', () => {
it('Increment regional population', () => {
cy.contains('Hospitalized Admissions peaks at 300');
- cy.get('input.st-al').eq(0)
+ cy.get('input[type=number]').eq(0)
.should('has.value', '3600000');
cy.get('.step-up').eq(0).click();
- cy.get('input.st-al').eq(0)
+ cy.get('input[type=number]').eq(0)
.should('has.value', '3600001');
cy.contains('Hospitalized Admissions peaks at 300');
@@ -22,12 +22,12 @@ context('Increment steppers', () => {
it('Increment hospital market share', () => {
cy.contains('Hospitalized Admissions peaks at 300');
- cy.get('input.st-al').eq(1)
+ cy.get('input[type=number]').eq(1)
.should('has.value', '15');
cy.get('.step-up').eq(1).click();
- cy.get('input.st-al').eq(1)
+ cy.get('input[type=number]').eq(1)
.should('has.value', '15.1');
cy.contains('Hospitalized Admissions peaks at 302');
@@ -36,12 +36,12 @@ context('Increment steppers', () => {
it('Increment doubling time', () => {
cy.contains('Hospitalized Admissions peaks at 300');
- cy.get('input.st-al').eq(3)
+ cy.get('input[type=number]').eq(3)
.should('has.value', '4');
cy.get('.step-up').eq(3).click();
- cy.get('input.st-al').eq(3)
+ cy.get('input[type=number]').eq(3)
.should('has.value', '4.25');
cy.contains('Hospitalized Admissions peaks at 272');
