Skip to content

Commit 8e46cce

Browse files
[DT-2124]: Dependabot Updates after removing ignore list (#3044)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Marete <[email protected]>
1 parent d39e6aa commit 8e46cce

File tree

7 files changed

+638
-498
lines changed

7 files changed

+638
-498
lines changed

cypress/component/ERACommons/era_commons.spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Buffer } from 'buffer'
99

1010
// Example token from https://broad-shibboleth-prod.appspot.com/dev/login?return-url=%2Fexample-return%3Ftoken%3D%3Ctoken%3E
1111
const encodedToken
12-
= `eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ
12+
= `eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ
1313
lcmFDb21tb25zVXNlcm5hbWUiOiJ0ZXN0aW5nIiw
1414
iaWF0IjoxNzA5NTYxMjc2LCJleHAiOjE3MDk1NjQ
1515
4NzZ9.HKnqebvJVL63jKZDqheYWRSNaLvB92b0Dk

cypress/component/Forms/forms.spec.jsx

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('FormField - Tests', () => {
5050
mount(<FormField {...props} />)
5151
cy.get('#lbl_optionalDate').contains('Optional Date')
5252
cy.get('#lbl_optionalDate').should('not.contain', '*')
53-
cy.get('input').type('{end}{del}99')
53+
cy.get('input').type('{end}{del}9999')
5454
cy.get('.formField-optionalDate .error-message').contains(FormValidators.DATEJS.msg)
5555
})
5656
it('should render a calendar picker control initialized with an error', () => {
@@ -827,14 +827,17 @@ describe('FormField - Tests', () => {
827827
it('should not allow mounting if unknown prop', (done) => {
828828
// this event will automatically be unbound when this
829829
// test ends because it's attached to 'cy'
830+
let called = false
830831
cy.on('uncaught:exception', (err) => {
832+
if (!called) {
831833
// ensure the error is about an unknown field
832-
expect(err.message).to.include('unknown')
833-
834-
// using mocha's async done callback to finish
835-
// this test so we prove that an uncaught exception
836-
// was thrown
837-
done()
834+
expect(err.message).to.include('unknown')
835+
called = true
836+
// using mocha's async done callback to finish
837+
// this test so we prove that an uncaught exception
838+
// was thrown
839+
done()
840+
}
838841

839842
// return false to prevent the error from
840843
// failing this test
@@ -850,9 +853,13 @@ describe('FormField - Tests', () => {
850853
})
851854

852855
it('errors if required prop not given', (done) => {
856+
let called = false
853857
cy.on('uncaught:exception', (err) => {
854-
expect(err.message).to.include('id')
855-
done()
858+
if (!called) {
859+
expect(err.message).to.include('id')
860+
called = true
861+
done()
862+
}
856863
return false
857864
})
858865

@@ -865,9 +872,13 @@ describe('FormField - Tests', () => {
865872
})
866873

867874
it('errors based on custom validation', (done) => {
875+
let called = false
868876
cy.on('uncaught:exception', (err) => {
869-
expect(err.message).to.include('example failure')
870-
done()
877+
if (!called) {
878+
expect(err.message).to.include('example failure')
879+
called = true
880+
done()
881+
}
871882
return false
872883
})
873884

0 commit comments

Comments
 (0)