'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
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -37,7 +37,8 @@ steps:
|
|||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- cd ./src
|
- cd ./src
|
||||||
- python manage.py collectstatic --noinput
|
- 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
|
- python manage.py test functional_tests --tag=channels
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.test import tag
|
||||||
from selenium import webdriver
|
from selenium import webdriver
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
|
|
||||||
@@ -19,6 +20,7 @@ def quit_if_possible(browser):
|
|||||||
|
|
||||||
# Test mdls
|
# Test mdls
|
||||||
class SharingTest(FunctionalTest):
|
class SharingTest(FunctionalTest):
|
||||||
|
@tag("two-browser")
|
||||||
def test_can_share_a_note_with_another_user(self):
|
def test_can_share_a_note_with_another_user(self):
|
||||||
self.create_pre_authenticated_session("disco@test.io")
|
self.create_pre_authenticated_session("disco@test.io")
|
||||||
disco_browser = self.browser
|
disco_browser = self.browser
|
||||||
|
|||||||
Reference in New Issue
Block a user