Ensure we allow author information to be sent without a card number

Created on 22 May 2024, 8 months ago

Problem/Motivation

Test that we support sending author information without the card number.

Proposed resolution

Add tests to ensure that we support sending author information with no card numbers to VG Wort.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @alexpott
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    Shows what I know. This already works 100% as expected. The participant information is sent as long as there is a first and last name - the participant's card number is optional.

    We already have test coverage that the widget does not required a card number - see:

        $this->drupalGet('node/1/edit');
        $this->assertSession()->fieldExists('field_vg_test[0][card_number]')->setValue('');
        $this->assertSession()->fieldExists('field_vg_test[0][surname]')->setValue('Smith');
        $this->assertSession()->buttonExists('Save')->press();
        $this->assertSession()->pageTextContainsOnce('article Test node for VGWort has been updated.');
    

    in \Drupal\Tests\vgwort\FunctionalJavascript\VGWortFieldTest::testFields()

    I'm adding explicit test coverage that we can generate a new message without card number details.

  • Status changed to Needs review 8 months ago
Production build 0.71.5 2024