Skip to content

Commit

Permalink
com headless
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlosesposito22 committed Nov 10, 2024
1 parent c1fc8ba commit b40d8d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main_bookheaded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
python manage.py migrate
python manage.py runserver &
sleep 12
python manage.py test site_cc.tests.CriarEnqueteTest
python manage.py test site_cc.tests.CriarEnqueteTest.test_03_visualizar_e_votoUnico
- name: Cleaning testing files
Expand Down
6 changes: 3 additions & 3 deletions site_cc/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4599,7 +4599,7 @@ def setUpClass(cls):
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--disable-dev-shm-usage")
chrome_options.add_argument("--no-sandbox")
#chrome_options.add_argument("--headless")
chrome_options.add_argument("--headless")
chrome_options.add_argument("--window-size=1920,1080")
cls.driver = webdriver.Chrome(options=chrome_options)

Expand All @@ -4619,7 +4619,7 @@ def tearDown(self):
subprocess.run(['python', 'manage.py', 'deletemodalidades'], check=True)
super().tearDown()

def t1est_01_enquete_visivel_moderador(self):
def test_01_enquete_visivel_moderador(self):
driver = self.driver

# 1. Registro do moderador
Expand Down Expand Up @@ -4786,7 +4786,7 @@ def t1est_01_enquete_visivel_moderador(self):
self.assertIsNotNone(logout, "Botão de logout não encontrado.")
logout.click()

def t1est_02_criar_enquete_valida(self):
def test_02_criar_enquete_valida(self):
driver = self.driver

# 1. Registro do moderador
Expand Down

0 comments on commit b40d8d1

Please sign in to comment.