mirror of
https://github.com/knadh/listmonk.git
synced 2025-10-05 04:45:28 +08:00
Update Cypress trests on the campaign file attach UI.
This commit is contained in:
parent
e8b0eafc00
commit
fcbebc272b
2 changed files with 5 additions and 3 deletions
|
@ -25,10 +25,12 @@ describe('Campaigns', () => {
|
|||
cy.wait(500);
|
||||
|
||||
cy.get('a[data-cy=btn-attach]').click();
|
||||
cy.get('[data-cy=btn-toggle-upload]').click();
|
||||
cy.get('input[type=file]').attachFile('example.json');
|
||||
cy.get('form[data-cy="upload"] button').click();
|
||||
cy.get('.modal button.is-primary:eq(0)').click();
|
||||
cy.wait(500);
|
||||
cy.get('.modal td[data-label=Name] a.link').click();
|
||||
cy.get('.modal a.thumb-link').click();
|
||||
cy.get('button[data-cy=btn-save]').click();
|
||||
cy.wait(500);
|
||||
|
||||
|
|
|
@ -23,14 +23,14 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="column is-narrow">
|
||||
<b-button @click="onToggleForm" icon-left="file-upload-outline">
|
||||
<b-button @click="onToggleForm" icon-left="file-upload-outline" data-cy="btn-toggle-upload">
|
||||
{{ $t('media.upload') }}
|
||||
</b-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<b-collapse v-model="showUploadForm" animation="">
|
||||
<form @submit.prevent="onSubmit" class="mb-6">
|
||||
<form @submit.prevent="onSubmit" class="mb-6" data-cy="upload">
|
||||
<div>
|
||||
<b-field :label="$t('media.upload')">
|
||||
<b-upload v-model="form.files" drag-drop multiple xaccept=".png,.jpg,.jpeg,.gif,.svg" expanded>
|
||||
|
|
Loading…
Add table
Reference in a new issue