Skip to content

Commit

Permalink
Merge pull request #806 from usagov/stage
Browse files Browse the repository at this point in the history
Sprint 62 release to PROD
  • Loading branch information
rayestrada authored Jul 2, 2024
2 parents 7b06558 + 8c90441 commit df45b6d
Show file tree
Hide file tree
Showing 50 changed files with 832 additions and 447 deletions.
9 changes: 0 additions & 9 deletions config/local/config_split.patch.language.entity.am.yml

This file was deleted.

2 changes: 1 addition & 1 deletion config/sync/field.field.media.image.field_media_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ settings:
max_resolution: ''
min_resolution: ''
alt_field: true
alt_field_required: true
alt_field_required: false
title_field: false
title_field_required: false
default_image:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ settings:
-
value: dark
label: Dark
-
value: homepage
label: Homepage
allowed_values_function: ''
module: options
locked: false
Expand Down
1 change: 0 additions & 1 deletion config/sync/language.entity.am.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ uuid: e2b1707a-dfa8-41af-b86c-c2d0a2116449
langcode: am
status: true
dependencies: { }
third_party_settings: { }
id: am
label: Amharic
direction: ltr
Expand Down
1 change: 1 addition & 0 deletions config/sync/language/pt/language.entity.pt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: Português
4 changes: 2 additions & 2 deletions config/sync/metatag.metatag_defaults.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ tags:
icon_32x32: /themes/custom/votegov/img/favicon/favicon-32x32.ico
icon_96x96: /themes/custom/votegov/img/favicon/favicon-96x96.ico
og_description: '[current-page:metatag:description]'
og_image: /themes/custom/vote_gov/img/ballot-box-OG.png
og_image: /themes/custom/votegov/img/votegov-social.jpg
og_site_name: '[site:name]'
og_title: '[current-page:metatag:title]'
og_type: website
og_url: '[site:url]'
shortcut_icon: /themes/custom/votegov/img/favicon/favicon.ico
title: 'Register to vote | [site:name]'
twitter_cards_description: '[current-page:metatag:description]'
twitter_cards_image: /themes/custom/vote_gov/img/ballot-box-OG.png
twitter_cards_image: /themes/custom/votegov/img/votegov-social.jpg
twitter_cards_site: '@votegov'
twitter_cards_title: '[current-page:metatag:title]'
twitter_cards_type: summary_large_image
6 changes: 3 additions & 3 deletions testing/cypress/e2e/frontEndTests/menu.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Check main menu', () => {
})

it('main menu - mobile', () => {
// set viewport to mobile
// set viewport to mobile
cy.viewport('iphone-6')
cy.get('[data-test="mobileBtn"]').click()
cy.get('[data-test="mobileNav"]').should('be.visible')
Expand All @@ -23,8 +23,8 @@ describe('Check main menu', () => {
})
cy.get('[data-test="searchBox"]').should('be.visible')
// close menu
cy.get('[data-test="closeBtn"]').click({force: true})
cy.get('[data-test="mainCloseBtn"]').click()
cy.get('[data-test="mobileNav"]').should('not.be.visible')

})
})
})
56 changes: 28 additions & 28 deletions testing/package-lock.json

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

4 changes: 2 additions & 2 deletions testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"devDependencies": {
"axe-core": "^4.9.1",
"cypress": "^13.11.0",
"cypress": "^13.12.0",
"cypress-axe": "^1.5.0",
"cypress-mochawesome-reporter": "^3.8.2"
},
Expand Down Expand Up @@ -37,6 +37,6 @@
},
"homepage": "https://github.com/usagov/vote-gov-drupal#readme",
"dependencies": {
"cypress-real-events": "^1.12.0"
"cypress-real-events": "^1.13.0"
}
}
19 changes: 19 additions & 0 deletions web/modules/custom/vote_utility/inc/view_alter.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/**
* @file
* Defines custom view alter hooks.
*/

use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\Core\Entity\EntityInterface;

/**
* Implements hook_taxonomy_term_view_alter().
*/
function vote_utility_taxonomy_term_view_alter(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
if ($entity->bundle() == 'basics_modules' && $display->getMode() == 'default') {
// Disable cache for basics_modules using default display mode.
$build['#cache']['max-age'] = 0;
}
}
1 change: 1 addition & 0 deletions web/modules/custom/vote_utility/vote_utility.module
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
require_once dirname(__FILE__) . '/inc/block_content_revisions.inc';
require_once dirname(__FILE__) . '/inc/token.inc';
require_once dirname(__FILE__) . '/inc/form_alter.inc';
require_once dirname(__FILE__) . '/inc/view_alter.inc';
Loading

0 comments on commit df45b6d

Please sign in to comment.