diff --git a/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php b/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php index eb48596284..1be0c02927 100644 --- a/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php +++ b/core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php @@ -61,8 +61,8 @@ public function testExposedAdminUi() { // The first time the filter UI is displayed, the operator and the // value forms should be shown. - $this->assertFieldById('edit-options-operator-in', '', 'Operator In exists'); - $this->assertFieldById('edit-options-operator-not-in', '', 'Operator Not In exists'); + $this->assertFieldById('edit-options-operator-in', 'in', 'Operator In exists'); + $this->assertFieldById('edit-options-operator-not-in', 'in', 'Operator Not In exists'); $this->assertFieldById('edit-options-value-page', '', 'Checkbox for Page exists'); $this->assertFieldById('edit-options-value-article', '', 'Checkbox for Article exists'); @@ -72,8 +72,8 @@ public function testExposedAdminUi() { $this->helperButtonHasLabel('edit-options-expose-button-button', t('Hide filter')); // After exposing the filter, Operator and Value should be still here. - $this->assertFieldById('edit-options-operator-in', '', 'Operator In exists'); - $this->assertFieldById('edit-options-operator-not-in', '', 'Operator Not In exists'); + $this->assertFieldById('edit-options-operator-in', 'in', 'Operator In exists'); + $this->assertFieldById('edit-options-operator-not-in', 'in', 'Operator Not In exists'); $this->assertFieldById('edit-options-value-page', '', 'Checkbox for Page exists'); $this->assertFieldById('edit-options-value-article', '', 'Checkbox for Article exists'); @@ -98,8 +98,8 @@ public function testExposedAdminUi() { $this->drupalPostForm(NULL, [], t('Hide filter')); // After Un-exposing the filter, Operator and Value should be shown again. - $this->assertFieldById('edit-options-operator-in', '', 'Operator In exists after hide filter'); - $this->assertFieldById('edit-options-operator-not-in', '', 'Operator Not In exists after hide filter'); + $this->assertFieldById('edit-options-operator-in', 'in', 'Operator In exists after hide filter'); + $this->assertFieldById('edit-options-operator-not-in', 'in', 'Operator Not In exists after hide filter'); $this->assertFieldById('edit-options-value-page', '', 'Checkbox for Page exists after hide filter'); $this->assertFieldById('edit-options-value-article', '', 'Checkbox for Article exists after hide filter'); @@ -108,7 +108,7 @@ public function testExposedAdminUi() { $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/sort/created', $edit, t('Expose sort')); // Check the label of the expose button. $this->helperButtonHasLabel('edit-options-expose-button-button', t('Hide sort')); - $this->assertFieldById('edit-options-expose-label', '', 'Make sure a label field is shown'); + $this->assertFieldById('edit-options-expose-label', 'Authored on', 'Make sure a label field is shown'); // Test adding a new exposed sort criteria. $view_id = $this->randomView()['id']; @@ -150,8 +150,8 @@ public function testGroupedFilterAdminUi() { // After click on 'Grouped Filters', the standard operator and value should // not be displayed. - $this->assertNoFieldById('edit-options-operator-in', '', 'Operator In not exists'); - $this->assertNoFieldById('edit-options-operator-not-in', '', 'Operator Not In not exists'); + $this->assertNoFieldById('edit-options-operator-in', 'in', 'Operator In not exists'); + $this->assertNoFieldById('edit-options-operator-not-in', 'in', 'Operator Not In not exists'); $this->assertNoFieldById('edit-options-value-page', '', 'Checkbox for Page not exists'); $this->assertNoFieldById('edit-options-value-article', '', 'Checkbox for Article not exists');