Skip to content

test(acceptance): Try #2 to fix flakey onboarding test for django 1.10 #16345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions tests/acceptance/test_onboarding.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from __future__ import absolute_import

import mock
from selenium.common.exceptions import TimeoutException

from sentry.models import Project
from sentry.testutils import AcceptanceTestCase
from sentry.utils.retries import TimedRetryPolicy


class OrganizationOnboardingTest(AcceptanceTestCase):
Expand Down Expand Up @@ -34,10 +36,15 @@ def test_onboarding(self, generate_api_key):
# Select and create node JS project
self.browser.click('[data-test-id="platform-node"]')
self.browser.wait_until_not('[data-test-id="platform-select-next"][aria-disabled="true"]')
self.browser.click('[data-test-id="platform-select-next"]')
self.browser.wait_until('[data-test-id="platform-select-next"][aria-disabled="false"]')

# Project getting started
self.browser.wait_until('[data-test-id="onboarding-step-get-started"]')
@TimedRetryPolicy.wrap(timeout=5, exceptions=((TimeoutException,)))
def click_platform_select_name(browser):
browser.click('[data-test-id="platform-select-next"]')
# Project getting started
browser.wait_until('[data-test-id="onboarding-step-get-started"]')

click_platform_select_name(self.browser)
self.browser.snapshot(name="onboarding - get started")

# Verify project was created for org
Expand Down