Skip to content

Commit

Permalink
fix: remove blur
Browse files Browse the repository at this point in the history
  • Loading branch information
ngunner15 committed Oct 3, 2024
1 parent 3fb43d5 commit 565729a
Showing 1 changed file with 2 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ describe('A Class Seedlot Registration form, Orchard', () => {
cy.get(`.${prefix}--list-box--expanded`)
.find('ul li')
.contains('219 - VERNON - S - PRD')
.click()
.blur();
.click();

// Save changes
cy.saveSeedlotRegFormProgress();
Expand All @@ -380,8 +379,7 @@ describe('A Class Seedlot Registration form, Orchard', () => {
cy.get(`.${prefix}--list-box--expanded`)
.find('ul li')
.contains('222 - VERNON - S - PRD')
.click()
.blur();
.click();

// Save changes
cy.saveSeedlotRegFormProgress();
Expand Down Expand Up @@ -598,52 +596,6 @@ describe('A Class Seedlot Registration form, Orchard', () => {
cy.saveSeedlotRegFormProgress();
});

it('Check primary and secondary orchard values', () => {
// Check primary orchard
cy.get('#primary-orchard-selection')
.then($input => {
const value = $input.val();
if (value === '') {
cy.log('Primary input is empty');
// Do something if the input is empty
cy.get('#primary-orchard-selection')
.siblings(`button.${prefix}--list-box__menu-icon[title="Open"]`)
.click();

cy.get(`.${prefix}--list-box--expanded`)
.find('ul li')
.contains('219 - VERNON - S - PRD')
.click()
.blur();

// Save changes
cy.saveSeedlotRegFormProgress();
}
});

// Check secondary orchard
cy.get('#secondary-orchard-selection')
.then($input => {
const value = $input.val();
if (value === '') {
cy.log('Secondary input is empty');
// Do something if the input is empty
cy.get('#secondary-orchard-selection')
.siblings(`button.${prefix}--list-box__menu-icon[title="Open"]`)
.click();

cy.get(`.${prefix}--list-box--expanded`)
.find('ul li')
.contains('222 - VERNON - S - PRD')
.click()
.blur();

// Save changes
cy.saveSeedlotRegFormProgress();
}
});
});

it('Step complete status', () => {
// Press next button
cy.get('.seedlot-registration-button-row')
Expand Down

0 comments on commit 565729a

Please sign in to comment.