diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-03-23 03:06:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 03:06:42 +0300 |
commit | 1a3d0de2d7a7b287de0acc04df7c586fe9f6a53d (patch) | |
tree | c891a1419dbf61fbc3f1cdc70c1fd764c50d23d0 /tests | |
parent | bc5175b483a5c88b389761624f5b65dfbfc85978 (diff) |
[Vue] Migrate sms-provider-credentials directive and ManageMobilePhoneNumbersController controller (#18972)
* start migrating sms provider credentials and ManageSmsProviderController
* finish migrating code, get to build
* get to work in the UI
* fix UI test
* Fix ui test selector.
* fix UI test wait
* add missing change
* update expected screenshots
Diffstat (limited to 'tests')
-rw-r--r-- | tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_mobilemessaging_provider.png | 4 | ||||
-rw-r--r-- | tests/UI/specs/UIIntegration_spec.js | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_mobilemessaging_provider.png b/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_mobilemessaging_provider.png index a47ee9174b..22c2d630b4 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_mobilemessaging_provider.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_mobilemessaging_provider.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a210ad533741772461a36c3b1b1379d6e27e4e18c7399f2131bc953fc839281b -size 120233 +oid sha256:02a6d7124ce7acf2fbfadb6c306f934abaacfe625514b49a6c7db25f41c086a7 +size 117157 diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js index 67758c3f04..e635ff0c3e 100644 --- a/tests/UI/specs/UIIntegration_spec.js +++ b/tests/UI/specs/UIIntegration_spec.js @@ -814,12 +814,13 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? pageWrap = await page.$('.pageWrap'); expect(await pageWrap.screenshot()).to.matchImage('admin_settings_mobilemessaging'); - }); + }) it('should switch the SMS provider correctly', async function () { await page.evaluate(function () { - $('[name=smsProviders] ul li:nth-child(2)').click(); + $('[name=smsProviders]').val('string:Clockwork').trigger('change'); }); + await page.waitForNetworkIdle(); pageWrap = await page.$('.pageWrap'); expect(await pageWrap.screenshot()).to.matchImage('admin_settings_mobilemessaging_provider'); |