Skip to content

Commit

Permalink
Merge pull request #354 from navikt/dependabot/npm_and_yarn/navikt-ak…
Browse files Browse the repository at this point in the history
…sel-763a83a1a5

Bump the navikt-aksel group across 1 directory with 3 updates
  • Loading branch information
magnurh-cx authored Oct 8, 2024
2 parents ead9c35 + 8870860 commit eafb34f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 36 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/digitalLospost.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Digital løspost', () => {
it('validates and submits løspost application', () => {
cy.visit('/lospost-default');
cy.findByRole('button', { name: 'Send til NAV' }).should('exist').click();
cy.findByRole('region', { name: 'Du må fikse disse feilene før du kan sende inn søknad.' })
cy.get('[data-cy=valideringsfeil]')
.should('exist')
.within(() => {
cy.findByRole('link', { name: `Last opp ${vedlegg.label}` })
Expand Down
18 changes: 8 additions & 10 deletions cypress/e2e/validering.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ describe('Tester validering', () => {
cy.injectAxe();
cy.get('[data-cy="nesteStegKnapp"]').click();

cy.focused()
.should('have.attr', 'data-cy', 'valideringsfeil')
.within(() => {
cy.get('li').should('have.length', 1);
});
cy.get('[data-cy=valideringsfeil]').within(() => {
cy.get('h2').should('have.focus');
cy.get('li').should('have.length', 1);
});

cy.checkA11y('#__next');

Expand All @@ -41,11 +40,10 @@ describe('Tester validering', () => {

cy.get('[data-cy="sendTilNAVKnapp"]').click();

cy.focused()
.should('have.attr', 'data-cy', 'valideringsfeil')
.within(() => {
cy.get('li').should('have.length', 4);
});
cy.get('[data-cy=valideringsfeil]').within(() => {
cy.get('h2').should('have.focus');
cy.get('li').should('have.length', 4);
});

cy.checkA11y('#__next');

Expand Down
9 changes: 4 additions & 5 deletions cypress/e2e/vedleggsvalg.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ describe('Tester validering', () => {

cy.get('[data-cy="sendTilNAVKnapp"]').click();

cy.focused()
.should('have.attr', 'data-cy', 'valideringsfeil')
.within(() => {
cy.get('li').should('have.length', 5);
});
cy.get('[data-cy=valideringsfeil]').within(() => {
cy.get('h2').should('have.focus');
cy.get('li').should('have.length', 5);
});

cy.checkA11y('#__next');

Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"prettier": "prettier --write ."
},
"dependencies": {
"@navikt/aksel-icons": "^6.16.0",
"@navikt/ds-css": "^6.16.0",
"@navikt/ds-react": "^6.16.0",
"@navikt/aksel-icons": "^7.1.2",
"@navikt/ds-css": "^7.1.2",
"@navikt/ds-react": "^7.1.2",
"@navikt/nav-dekoratoren-moduler": "^2.1.6",
"@sentry/nextjs": "^8.33.1",
"axios": "^1.7.7",
Expand Down

0 comments on commit eafb34f

Please sign in to comment.