Skip to content
Snippets Groups Projects
Commit a37a1300 authored by Fanna Lautenbach's avatar Fanna Lautenbach
Browse files

Merge branch 'add-test-ids' into 'main'

add test ids for integration testing

See merge request !63
parents 636a7fe8 bce151fd
No related branches found
No related tags found
1 merge request!63add test ids for integration testing
Pipeline #42350 passed
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<span class="icon icon--color-inherit icon--play"></span> <span class="icon icon--color-inherit icon--play"></span>
</a> </a>
{% else %} {% else %}
<button type="submit" class="button--icon-button" title="Submit to ATDB"> <button type="submit" class="button--icon-button" test-id="submit-to-atdb" title="Submit to ATDB">
<span class="icon icon--play"></span> <span class="icon icon--play"></span>
</button> </button>
{% endif %} {% endif %}
......
...@@ -37,7 +37,9 @@ ...@@ -37,7 +37,9 @@
optionsCaption: '---------', optionsCaption: '---------',
optionsText: function(item) { return item.name + ' - ' + item.url}, optionsText: function(item) { return item.name + ' - ' + item.url},
optionsValue: 'name', optionsValue: 'name',
value: selectedProcessingSite"></select> value: selectedProcessingSite"
test-id="processing_site"
></select>
</div> </div>
</div> </div>
...@@ -51,7 +53,9 @@ ...@@ -51,7 +53,9 @@
</div> </div>
<div class="input-select-wrapper icon--inline icon-after icon-after--angle-down"> <div class="input-select-wrapper icon--inline icon-after icon-after--angle-down">
<select class="input input--select custom__input--fixed-width margin-bottom margin-left" <select class="input input--select custom__input--fixed-width margin-bottom margin-left"
id="id_selected_workflow_tag" name="selected_workflow_tag" id="id_selected_workflow_tag"
test-id="workflow_tag"
name="selected_workflow_tag"
style="width: 12rem" style="width: 12rem"
data-bind="options:tags, data-bind="options:tags,
optionsCaption: caption, optionsCaption: caption,
...@@ -71,7 +75,10 @@ ...@@ -71,7 +75,10 @@
</div> </div>
<div class="input-select-wrapper icon--inline icon-after icon-after--angle-down"> <div class="input-select-wrapper icon--inline icon-after icon-after--angle-down">
<select class="input input--select custom__input--fixed-width margin-bottom margin-left" <select class="input input--select custom__input--fixed-width margin-bottom margin-left"
id="id_selected_workflow" name="selected_workflow" style="width: 12rem" id="id_selected_workflow"
name="selected_workflow"
style="width: 12rem"
test-id="workflow"
data-bind="options:workflowsByTag, data-bind="options:workflowsByTag,
optionsCaption: caption, optionsCaption: caption,
optionsValue: 'workflow_uri', optionsValue: 'workflow_uri',
...@@ -138,7 +145,8 @@ ...@@ -138,7 +145,8 @@
id="div_id_filter_{{ filter.name }}"> id="div_id_filter_{{ filter.name }}">
<div class="flex-wrapper flex-wrapper--row custom__input--fixed-min-width"> <div class="flex-wrapper flex-wrapper--row custom__input--fixed-min-width">
<label class="input__label" <label class="input__label"
for="id_{{ filter.field }}">{{ filter.name }}</label> for="id_{{ filter.field }}"
test-id="{{ filter.name }}">{{ filter.name }}</label>
{% if filter.help_text %} {% if filter.help_text %}
<a class="tooltip-dias tooltip-dias-right custom--tooltip" <a class="tooltip-dias tooltip-dias-right custom--tooltip"
data-tooltip="{{ filter.help_text }}">m</a> data-tooltip="{{ filter.help_text }}">m</a>
...@@ -147,6 +155,7 @@ ...@@ -147,6 +155,7 @@
<div class="input-select-wrapper icon--inline icon-after icon-after--angle-down margin-left margin-bottom"> <div class="input-select-wrapper icon--inline icon-after icon-after--angle-down margin-left margin-bottom">
<select class="input input--select custom__input--fixed-width" <select class="input input--select custom__input--fixed-width"
id="id_{{ filter.field }}" id="id_{{ filter.field }}"
test-id="{{ filter.name }}"
name="{{ filter.field }}" name="{{ filter.field }}"
data-filter="{{ filter.lookup_type }}" data-filter="{{ filter.lookup_type }}"
style="width: 12rem"> style="width: 12rem">
...@@ -174,6 +183,7 @@ ...@@ -174,6 +183,7 @@
type="submit" type="submit"
name="action" name="action"
value="Submit" value="Submit"
test-id="create-update"
title=" title="
{% if object.pk %} {% if object.pk %}
Update the task Update the task
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
{% if object.get_submission_status_display == "undefined" or object.get_submission_status_display == "not submitted" %} {% if object.get_submission_status_display == "undefined" or object.get_submission_status_display == "not submitted" %}
{% define "primary" as badgecolor %} {% define "primary" as badgecolor %}
{% endif %} {% endif %}
<div class="badge badge--{{ badgecolor }}">{{ object.get_submission_status_display }}</div> <div class="badge badge--{{ badgecolor }}" test-id="submission-status">{{ object.get_submission_status_display }}</div>
</div> </div>
</div> </div>
......
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
<div class="overlay"> <div class="overlay">
<div class="modal-dias-wrapper"> <div class="modal-dias-wrapper">
<div class="modal-dias modal-dias--fit-content"> <div class="modal-dias modal-dias--fit-content">
<a class="icon icon--times button--close" href="{% url 'specification-detail' object.pk %}"></a> <a class="icon icon--times button--close" href="{% url 'specification-detail' object.pk %}" test-id="inputs-close"></a>
<header class="flex-wrapper flex-wrapper--centered flex-wrapper--column"> <header class="flex-wrapper flex-wrapper--centered flex-wrapper--column">
<h2 class="title">Input fields <h2 class="title">Input fields
<a class="tooltip-dias tooltip-dias-bottom" data-tooltip="ATDB says nom nom nom (talk to Fanna or Klaas)">m</a> <a class="tooltip-dias tooltip-dias-bottom" data-tooltip="ATDB says nom nom nom (talk to Fanna or Klaas)">m</a>
</h2> </h2>
</header> </header>
<div> <div>
<pre>{{ object.inputs | pretty_json }}</pre> <pre test-id="inputs">{{ object.inputs | pretty_json }}</pre>
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment