group test (frontend) - #1879

This commit is contained in:
Laurent GAY
2025-11-21 18:02:20 +01:00
committed by setop
parent 4255219e9f
commit 9d0b54a679
3 changed files with 41 additions and 40 deletions

View File

@@ -2,6 +2,7 @@ image: tcitworld/mobilizon-ci
stages:
- install
- security
- check
- build-js
- test
@@ -50,6 +51,22 @@ install:
- mix deps.get
- mix compile
security-frontend:
stage: security
script:
- npm audit
allow_failure: true
needs:
- install
security-backend:
stage: security
script:
- mix hex.audit
allow_failure: true
needs:
- install
lint-elixir:
stage: check
before_script:
@@ -78,6 +95,28 @@ lint-front:
- npx prettier -c . || export EXITVALUE=1
- exit $EXITVALUE
deps:
stage: check
before_script:
- apt update
- apt install -y gawk
- rm -rf ~/.hex/cache.ets
- mix deps.get
script:
- ./check_deps.sh
allow_failure: true
needs:
- install
i18n-frontend:
image: python:alpine
stage: check
script:
- python3 check_i18n.py
allow_failure: true
needs:
- install
build-frontend:
stage: build-js
image: node:22
@@ -94,44 +133,6 @@ build-frontend:
needs:
- lint-front
deps:
stage: check
before_script:
- apt update
- apt install -y gawk
- rm -rf ~/.hex/cache.ets
- mix deps.get
script:
- ./check_deps.sh
allow_failure: true
needs:
- install
security-frontend:
stage: check
script:
- npm audit
allow_failure: true
needs:
- install
security-backend:
stage: check
script:
- mix hex.audit
allow_failure: true
needs:
- install
i18n-frontend:
image: python:alpine
stage: check
script:
- python3 check_i18n.py
allow_failure: true
needs:
- install
exunit:
stage: test
services:

View File

@@ -6,7 +6,7 @@ exports[`GroupInvitationJoin > Show simple 1`] = `
<h1>Join a group</h1>
<div>
<p class="my-1">Do you want to join the group <span>"<b>mygroup</b>"</span> with the profile <span>"<b>test</b>"</span> ?</p>
<p class="my-1">You can create a new profile or change the actual profile with the top menu.</p><button data-oruga="button" type="button" role="button" tabindex="0" class="o-button o-button--primary"><span class="o-button__wrapper"><!----><span class="o-button__label">Join group</span>
<p class="my-1">You can create a new profile or change the actual profile with the profile menu.</p><button data-oruga="button" type="button" role="button" tabindex="0" class="o-button o-button--primary"><span class="o-button__wrapper"><!----><span class="o-button__label">Join group</span>
<!----></span>
</button>
</div>

View File

@@ -5,7 +5,7 @@ exports[`GroupInvitations > Show simple 1`] = `
<breadcrumbs-nav links="[object Object],[object Object],[object Object]"></breadcrumbs-nav>
<section class="container mx-auto section">
<h1>Invitations to join the group</h1>
<h2>Member invitation</h2>
<h2>Member invitation by username</h2>
<form>
<div data-oruga="field" class="o-field o-field--horizontal">
<div class="o-field__horizontal-label"><label id="v-0-0" for="new-member-field" class="o-field__label">Invite a new member</label></div>