URLs for plugins are mandatory (closes # 322)
Change-Id: I1783930cf984850c95edb5f395e2e66ae90ed41e
diff --git a/t/plugin/auth-oauth.t b/t/plugin/auth-oauth.t
index b135f96..ae385bf 100644
--- a/t/plugin/auth-oauth.t
+++ b/t/plugin/auth-oauth.t
@@ -489,7 +489,8 @@
->text_is('label[for=name]','Name of the client application')
->text_is('label[for=type]','Type of the client application')
->text_is('label[for=desc]','Short description')
- ->text_is('label[for=url]','Homepage')
+ ->text_like('label[for=url]'=> '/Homepage/')
+ ->element_exists('label[for=url] > span.field-required')
->text_is('label[for=redirect_uri]','Redirect URI')
->text_is('label[for=src]','Declaration of the plugin (*.json file)')
->element_exists('ul.client-list')
@@ -1221,10 +1222,12 @@
name => 'Funny',
type => 'PUBLIC',
desc => 'This is my plugin application 2',
+ url => 'https://xyz/123',
csrf_token => $csrf,
src => 'hMMM'
};
+
$t->post_ok('/settings/oauth/register' => form => $json_post)
->status_is(200)
->element_exists('div.notify-error')