'two-browser' tag separates out tests that run multiple browsers in pipeline so that --parallel tests don't interfere w. loading of one or more of such windows; both FTs.test_sharing & woodpecker.yaml updated accordingly
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Disco DeDisco
2026-03-28 23:14:31 -04:00
parent de99b538d2
commit 0e5805efd2
2 changed files with 4 additions and 1 deletions

View File

@@ -37,7 +37,8 @@ steps:
- pip install -r requirements.txt
- cd ./src
- python manage.py collectstatic --noinput
- python manage.py test functional_tests --parallel --exclude-tag=channels
- python manage.py test functional_tests --parallel --exclude-tag=channels --exclude-tag=two-browser
- python manage.py test functional_tests --tag=two-browser
- python manage.py test functional_tests --tag=channels
when:
- event: push

View File

@@ -1,6 +1,7 @@
import os
from django.conf import settings
from django.test import tag
from selenium import webdriver
from selenium.webdriver.common.by import By
@@ -19,6 +20,7 @@ def quit_if_possible(browser):
# Test mdls
class SharingTest(FunctionalTest):
@tag("two-browser")
def test_can_share_a_note_with_another_user(self):
self.create_pre_authenticated_session("disco@test.io")
disco_browser = self.browser