Skip to content

Commit

Permalink
fix: move save code inside block
Browse files Browse the repository at this point in the history
  • Loading branch information
ngunner15 committed Oct 2, 2024
1 parent c7da8e7 commit 98324c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ describe('A Class Seedlot Registration form, Orchard', () => {
.find('ul li')
.contains('219 - VERNON - S - PRD')
.click();

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

Expand All @@ -629,11 +632,11 @@ describe('A Class Seedlot Registration form, Orchard', () => {
.find('ul li')
.contains('222 - VERNON - S - PRD')
.click();

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

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

it('Step complete status', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ describe('A Class Seedlot Registration form, Ownership', () => {
.then($checkbox => {
if ($checkbox.is(':not(:checked)')) {
cy.get('#default-owner-checkbox').check({ force: true });
// Save changes
cy.saveSeedlotRegFormProgress();
}
})
.should("be.checked");

// Save changes
cy.saveSeedlotRegFormProgress();

cy.get(`.${prefix}--accordion__title`)
.find('.item-title-section')
.should('have.text', initialAccordionTitle);
Expand Down

0 comments on commit 98324c3

Please sign in to comment.