Skip to content

chore(tests): Address flakiness on eco-related tests #94869

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
1 change: 0 additions & 1 deletion src/sentry/integrations/slack/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


def build_linking_url(endpoint: str, **kwargs: Any) -> str:
"""TODO(mgaeta): Remove cast once sentry/utils/http.py is typed."""
url: str = absolute_uri(reverse(endpoint, kwargs={"signed_params": sign(salt=SALT, **kwargs)}))
return url

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% trans body_text %}
</p>
<p>
<a href="slack://channel?id={{ channel_id }}&team={{ team_id }}" class="btn btn-default btn-login-slack">
<a href="slack://channel?id={{ channel_id }}&team={{ team_id }}" class="btn btn-default btn-login-slack" data-test-id="back-to-slack">
<span class="provider-logo slack"></span> Go back to Slack
</a>
</p>
Expand Down
20 changes: 0 additions & 20 deletions src/sentry/testutils/helpers/plugins.py

This file was deleted.

2 changes: 2 additions & 0 deletions tests/acceptance/chartcuterie/test_chart_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def test_debug_renders(self):
with self.options(options):
self.browser.get("debug/chart-renderer/")

self.wait_for_loading()

images = self.browser.elements(selector="img")
assert len(images) > 0

Expand Down
7 changes: 1 addition & 6 deletions tests/acceptance/chartcuterie/test_image_block_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
ProfileFunctionRegressionType,
)
from sentry.models.group import Group
from sentry.testutils.cases import (
AcceptanceTestCase,
MetricsEnhancedPerformanceTestCase,
ProfilesSnubaTestCase,
)
from sentry.testutils.cases import MetricsEnhancedPerformanceTestCase, ProfilesSnubaTestCase
from sentry.testutils.helpers.datetime import before_now
from sentry.testutils.helpers.features import with_feature
from tests.sentry.issues.test_utils import OccurrenceTestMixin
Expand All @@ -25,7 +21,6 @@


class TestSlackImageBlockBuilder(
AcceptanceTestCase,
MetricsEnhancedPerformanceTestCase,
ProfilesSnubaTestCase,
OccurrenceTestMixin,
Expand Down
20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_amazon_sqs.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_asana.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_bitbucket.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_github.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_gitlab.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_jira.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_pagerduty.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_pivotal.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_pushover.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_segment.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_sessionstack.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_slack.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_splunk.py

This file was deleted.

20 changes: 0 additions & 20 deletions tests/acceptance/sentry_plugins/test_victorops.py

This file was deleted.

4 changes: 4 additions & 0 deletions tests/acceptance/test_link_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def test_link_team(self):
self.browser.click(f'[value="{self.team.id}"]')
self.browser.click('[type="submit"]')
self.browser.wait_until_not(".loading")
# Ensure we get to the next page before checking for the ExternalActor
self.browser.wait_until_test_id("back-to-slack")

assert ExternalActor.objects.filter(
team_id=self.team.id,
Expand All @@ -96,6 +98,8 @@ def test_link_team_as_team_admin(self):
self.browser.click(f'[value="{self.team.id}"]')
self.browser.click('[type="submit"]')
self.browser.wait_until_not(".loading")
# Ensure we get to the next page before checking for the ExternalActor
self.browser.wait_until_test_id("back-to-slack")

assert ExternalActor.objects.filter(
team_id=self.team.id,
Expand Down
Loading
Loading