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

Playwright end to end tests #1946

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Add rsvp playwright test. Fix cypress test with new data-testid
  • Loading branch information
vidya-ram committed Dec 21, 2023
commit 43d09df397af57c25d1858848a8bce6095b44727
2 changes: 1 addition & 1 deletion funnel/templates/js/event_checkin.js.jinja2
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
{% raw %}
<script id='ticket-participant-row' type='text/ractive'>
{{#each ticket_participants}}
<tr id="p-{{ puuid_b58 }}">
<tr id="p-{{ puuid_b58 }}" data-testid="{{ fullname }}">
<td class='js-searchable' data-th="Name" data-testid="ticket-participant">{{#if has_user }}<faicon icon='user-check' icon_size='subhead' baseline=true css_class="mui--text-success fa-icon--right-margin"></faicon>{{/if}}{{ fullname }}</td>
<td class='js-searchable' data-th="Tickets">{{ ticket_type_titles }}</td>
<td class='js-searchable' data-th="Email">{{ email }}</td>
2 changes: 1 addition & 1 deletion funnel/templates/profile_layout.html.jinja2
Original file line number Diff line number Diff line change
@@ -360,7 +360,7 @@
</div>
<div class="profile__banner__btns mui--hidden-xs mui--hidden-sm">
{% if profile.features.new_project() %}
<a class="mui-btn mui-btn--primary mui-btn--raised profile-create-btn" href="{{ profile.url_for('new_project') }} ">{{ faicon(icon='plus', icon_size='caption') }} {% trans %}New project{% endtrans %}</a>
<a class="mui-btn mui-btn--primary mui-btn--raised profile-create-btn" href="{{ profile.url_for('new_project') }}" data-testid="new-project-btn">{{ faicon(icon='plus', icon_size='caption') }} {% trans %}New project{% endtrans %}</a>
{% elif profile.features.make_public() %}
<a class="mui-btn mui-btn--raised mui-btn--primary profile-create-btn" href="#make-public-modal" rel="modal:open" role="button" aria-haspopup="true" data-testid="make-profile-public">{% trans %}Make account public{% endtrans %}</a>
<div class="modal" id="make-public-modal" role="dialog" aria-labelledby="profile-public-modal-title" aria-modal="true" tabindex="-1">
4 changes: 2 additions & 2 deletions funnel/templates/project_admin.html.jinja2
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
{% block title %}{% trans %}Setup events for check-in{% endtrans %}{% endblock title %}

{% block top_title %}
<h1 class="mui--text-headline"><a href="{{ project.url_for() }}">{{ project.title }}</a></h1>
<h1 class="mui--text-headline"><a href="{{ project.url_for() }}" data-testid="project-page">{{ project.title }}</a></h1>
<p class="mui--text-subhead">{% trans %}Setup events for check-in{% endtrans %}</p>
{% endblock top_title %}

@@ -25,7 +25,7 @@
<ol class="list--aligned">
{%- for ticket_event in ticket_events %}
<li>
<a href="{{ ticket_event.url_for('view') }}" class="mui--text-subhead" data-testid="{{ ticket_event.title }}" data-ga="View event">{{ ticket_event.title }}</a>{%- if project.current_roles.promoter %}&nbsp;<a href="{{ ticket_event.url_for('edit') }}" aria-label="{% trans %}Edit{% endtrans %}" data-ga="edit event">{{ faicon(icon='edit', icon_size='subhead') }}</a>{%- endif %}
<a href="{{ ticket_event.url_for('view') }}" class="mui--text-subhead" data-testid="event-{{ ticket_event.title }}" data-ga="View event">{{ ticket_event.title }}</a>{%- if project.current_roles.promoter %}&nbsp;<a href="{{ ticket_event.url_for('edit') }}" aria-label="{% trans %}Edit{% endtrans %}" data-ga="edit event">{{ faicon(icon='edit', icon_size='subhead') }}</a>{%- endif %}
</li>
{%- endfor %}
</ol>
10 changes: 5 additions & 5 deletions funnel/templates/project_layout.html.jinja2
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@

{% macro livestream_edit_btn(project) %}
{% if project.view_for('edit_livestream').is_available() %}
<a href="{{ project.url_for('edit_livestream') }}" class="mui-btn mui-btn--raised icon-btn project-banner__box__add-btn" data-testid="add-livestream" aria-label="{% trans %}Update livestream URLs{% endtrans %}">{{ faicon(icon='video-plus', baseline=false) }}</a>
<a href="{{ project.url_for('edit_livestream') }}" class="mui-btn mui-btn--raised icon-btn project-banner__box__add-btn" data-testid="add-livestream-btn" aria-label="{% trans %}Update livestream URLs{% endtrans %}">{{ faicon(icon='video-plus', baseline=false) }}</a>
{% endif %}
{% endmacro %}

@@ -168,9 +168,9 @@
<a class="mui-btn mui-btn--raised {% if project.features.show_tickets %} mui-btn--dark {%- else %} mui-btn--primary {%- endif %} register-block__btn" id="register-nav" href="{{ url_for('login', next=request.path + '#register-modal', modal='register-modal') }}" rel="modal:open" aria-haspopup="true" data-register-modal="register-modal">{{ project.views.register_button_text() }}</a>
{% elif project.features.rsvp_unregistered -%}
{% if not project.features.follow_mode and not project.features.rsvp_for_members %}<span class="register-block__content__txt mui--text-light">{% trans %}This is a free event{% endtrans %}</span>{% endif %}
<a id="rsvp-btn" class="mui-btn mui-btn--raised mui-btn--dark register-block__btn js-register-btn" href="{{ project.url_for('rsvp_modal') }}" rel="modal:open" role="button" aria-haspopup="true">
<a id="rsvp-btn" class="mui-btn mui-btn--raised mui-btn--dark register-block__btn js-register-btn" href="{{ project.url_for('rsvp_modal') }}" rel="modal:open" role="button" aria-haspopup="true" data-testid="member-rsvp">
<span class="register-block__btn__txt" data-testid="unregistered">{{ project.views.register_button_text() }}</span>
<span class="register-block__btn__txt register-block__btn__txt--smaller primary-color-lighter-txt" data-testid="unregistered">{{ project.views.registration_text() }}</span>
<span class="register-block__btn__txt register-block__btn__txt--smaller primary-color-lighter-txt">{{ project.views.registration_text() }}</span>
</a>
{%- endif %}
</div>
@@ -180,11 +180,11 @@
</div>
{% elif project.features.rsvp_for_members -%}
<div class="register-block__content">
<button class="mui-btn mui-btn--accent register-block__btn mui--is-disabled">{% trans %}Registration for members only{% endtrans %}</button>
<button class="mui-btn mui-btn--accent register-block__btn mui--is-disabled" data-testid="rsvp-only-for-members">{% trans %}Registration for members only{% endtrans %}</button>
</div>
{% endif %}
{% if project.current_roles.account_member %}
<div class="register-block__content"><button class="mui-btn mui-btn--accent register-block__btn mui--is-disabled">{% trans %}You are a member{% endtrans %}</button></div>
<div class="register-block__content"><button class="mui-btn mui-btn--accent register-block__btn mui--is-disabled" data-testid="project-member">{% trans %}You are a member{% endtrans %}</button></div>
{% elif project.features.show_tickets %}
<div class="register-block__content">
<button class="js-open-ticket-widget register-block__btn mui-btn mui-btn--primary">
Loading