Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name: JavaScript
on:
pull_request:
paths: &paths
- "tests/**/*.{js,ts}"
- "tests/**/*.ts"
- "docker-compose.yml"
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: go-task/setup-task@v2

- name: Install Drupal site
run: task drupal:site:install
run: task drupal:site:install --yes

- name: Extract translations
run: task translations:extract
Expand Down
6 changes: 6 additions & 0 deletions modules/os2forms_test_playwright/src/VcrOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public function __construct(
*
* @param array<string, mixed> $configuration
* The configuration.
*
* @return array<string, mixed>
* The complete and validated configuration.
*/
public function configure(array $configuration): array {
$conf = $this->state->get(self::CONFIGURATION);
Expand Down Expand Up @@ -147,6 +150,9 @@ public static function getSubscribedEvents(): array {

/**
* Validate configuration.
*
* @return array<string, mixed>
* The complete and validated configuration.
*/
private function validateConfiguration(): array {
$configuration = $this->state->get(self::CONFIGURATION);
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ parameters:
- message: '#Method Drupal\\os2forms_f2\\.+\(\) return type has no value type specified in iterable type array.#'
- message: '#Method Drupal\\os2forms_f2\\.+\(\) has parameter \$.+ with no value type specified in iterable type array.#'
- message: '#Function .+\(\) return type has no value type specified in iterable type array.#'
- message: '#Call to an undefined method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::addListener\(\).#'
path: modules/os2forms_test_playwright/src/VcrOperator.php

# Local Variables:
# mode: yaml
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/WebformHelperF2.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function createJob(WebformSubmissionInterface $webformSubmission, Webform
$queue->enqueueJob($job);
$context['@queue'] = $queue->id();
$this->notice('F2 job (archive on @archive_target) added to the queue @queue.', $context + [
'@archive_target' => $handlerSettings->archive?->archiveTarget?->value ?? '',
'@archive_target' => $handlerSettings->archive->archiveTarget->value,
]);

return $job;
Expand Down
1 change: 0 additions & 1 deletion tests/Playwright/tests/user-manual-images.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ screenshooting ${selector}
await vcrEject();
});


test("webform submission", async ({ page }) => {
const context = "webform-submission";
const locale = "da";
Expand Down
Loading