Skip to content

Commit

Permalink
Issue CollaboraOnline#43: Normalize spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote authored and AaronGilMartinez committed Nov 25, 2024
1 parent 7466a7e commit cd2efeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/ExistingSiteJavascript/CollaboraIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ public function testCollaboraPreview(): void {

$document_field = $assert_session->waitForElement('css', 'input#document-name-input');
$this->assertNotNull($document_field, 'The document name input was not found after 10 seconds.');
$this->getCurrentPage()->waitFor(10, function() use ($document_field) {
$this->getCurrentPage()->waitFor(10, function () use ($document_field) {
return $document_field->getValue() === 'shopping-list.txt';
});
$this->assertEquals('shopping-list.txt', $document_field->getValue(), 'The document name input did not contain the correct value after 10 seconds.');

$word_count_element = $assert_session->waitForElement('css', 'div#StateWordCount');
$this->assertNotNull($word_count_element, 'The word count element was not found after 10 seconds.');
$this->getCurrentPage()->waitFor(10, function() use ($word_count_element) {
$this->getCurrentPage()->waitFor(10, function () use ($word_count_element) {
return $word_count_element->getText() === '2 words, 18 characters';
});
$this->assertEquals('2 words, 18 characters', $word_count_element->getText(), 'The word count element did not contain the correct text after 10 seconds.');
Expand Down

0 comments on commit cd2efeb

Please sign in to comment.