Skip to content
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

Checar data de publicação dos dados #2

Open
anapaulagomes opened this issue Apr 17, 2023 · 1 comment
Open

Checar data de publicação dos dados #2

anapaulagomes opened this issue Apr 17, 2023 · 1 comment

Comments

@anapaulagomes
Copy link
Contributor

Verificar as informações e seus prazos.

  • Contratos
  • Licitações
  • Receitas
  • Despesas
@anapaulagomes
Copy link
Contributor Author

Exemplo de teste e como pegar a data:

@pytest.mark.rules
def test_page_show_revenue(page):
    page.goto(
        "http://www.transparencia.feiradesantana.ba.gov.br/index.php?view=receita"
    )
    page.wait_for_load_state()
    page.get_by_role("button", name="Pesquisar").click()

    published_date_text = page.locator(
        '//*[@id="editable-sample"]/tbody/tr[1]/td[1]'
    ).text_content()
    # TODO check if it is a valid date

    expect(page.get_by_text("Data de Publicação")).to_be_visible()
    expect(page.get_by_text("Valor")).to_be_visible()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant