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

added spanish PrinterStudio page #277

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions desktop-tool/src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ class TargetSites(Enum):
Cardstocks.P10: "Kunststoff",
},
)
PrinterStudioES = TargetSite(
base_url="https://www.printerstudio.es",
starting_url_route="personalizado/tarjetas-personalizadas-en-blanco.html",
supports_foil=False,
saved_successfully_text="Guardado satisfactoriamente",
cardstock_site_name_mapping={
Cardstocks.S30: "Estándar (suave)",
Cardstocks.S33: "Superior (suave)",
Cardstocks.M31: "De priméra calidad (lino)",
Cardstocks.P10: "Plástico (suave)",
},
)


DPI_HEIGHT_RATIO = 300 / 1110 # TODO: share this between desktop tool and backend
Expand Down
2 changes: 2 additions & 0 deletions desktop-tool/tests/test_desktop_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,7 @@ def do_nothing(_):
constants.TargetSites.PrinterStudio,
constants.TargetSites.PrinterStudioDE,
constants.TargetSites.PrinterStudioUK,
constants.TargetSites.PrinterStudioES,
],
)
def test_card_order_complete_run_single_cardback(browser, site, input_enter, card_order_valid):
Expand Down Expand Up @@ -1436,6 +1437,7 @@ def test_card_order_complete_run_single_cardback(browser, site, input_enter, car
constants.TargetSites.PrinterStudio,
constants.TargetSites.PrinterStudioDE,
constants.TargetSites.PrinterStudioUK,
constants.TargetSites.PrinterStudioES,
],
)
def test_card_order_complete_run_multiple_cardbacks(browser, site, input_enter, card_order_multiple_cardbacks):
Expand Down
Loading