File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import absolute_import
2
2
3
3
import mock
4
+ from selenium .common .exceptions import TimeoutException
4
5
5
6
from sentry .models import Project
6
7
from sentry .testutils import AcceptanceTestCase
8
+ from sentry .utils .retries import TimedRetryPolicy
7
9
8
10
9
11
class OrganizationOnboardingTest (AcceptanceTestCase ):
@@ -34,10 +36,15 @@ def test_onboarding(self, generate_api_key):
34
36
# Select and create node JS project
35
37
self .browser .click ('[data-test-id="platform-node"]' )
36
38
self .browser .wait_until_not ('[data-test-id="platform-select-next"][aria-disabled="true"]' )
37
- self .browser .click ('[data-test-id="platform-select-next"]' )
39
+ self .browser .wait_until ('[data-test-id="platform-select-next"][aria-disabled="false "]' )
38
40
39
- # Project getting started
40
- self .browser .wait_until ('[data-test-id="onboarding-step-get-started"]' )
41
+ @TimedRetryPolicy .wrap (timeout = 5 , exceptions = ((TimeoutException ,)))
42
+ def click_platform_select_name (browser ):
43
+ browser .click ('[data-test-id="platform-select-next"]' )
44
+ # Project getting started
45
+ browser .wait_until ('[data-test-id="onboarding-step-get-started"]' )
46
+
47
+ click_platform_select_name (self .browser )
41
48
self .browser .snapshot (name = "onboarding - get started" )
42
49
43
50
# Verify project was created for org
You can’t perform that action at this time.
0 commit comments