Skip to content
Snippets Groups Projects
Commit ec84f570 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Timing adjustment to SMS number validation test.

parent dc63d137
No related merge requests found
...@@ -325,10 +325,12 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase ...@@ -325,10 +325,12 @@ class RecordActionsTest extends \VuFindTest\Unit\MinkTestCase
// - just right // - just right
$this->findCss($page, '.modal #sms_to')->setValue('8005555555'); $this->findCss($page, '.modal #sms_to')->setValue('8005555555');
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze(); // wait for form submission to catch missing carrier
$this->assertNull($page->find('css', '.modal .sms-error')); $this->assertNull($page->find('css', '.modal .sms-error'));
// - pretty just right // - pretty just right
$this->findCss($page, '.modal #sms_to')->setValue('(800) 555-5555'); $this->findCss($page, '.modal #sms_to')->setValue('(800) 555-5555');
$this->findCss($page, '.modal-body .btn.btn-primary')->click(); $this->findCss($page, '.modal-body .btn.btn-primary')->click();
$this->snooze(); // wait for form submission to catch missing carrier
$this->assertNull($page->find('css', '.modal .sms-error')); $this->assertNull($page->find('css', '.modal .sms-error'));
// Send text to false number // Send text to false number
$this->findCss($page, '.modal #sms_to')->setValue('(800) 555-5555'); $this->findCss($page, '.modal #sms_to')->setValue('(800) 555-5555');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment