Remove test specific changes to vue code and skip test
This commit is contained in:
parent
8b80a12516
commit
64d86b688c
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
const LANGUAGE_COMMUNICATION = 'LANGUAGE_COMMUNICATION';
|
const LANGUAGE_COMMUNICATION = 'LANGUAGE_COMMUNICATION';
|
||||||
const LANGUAGE_COMMUNICATION_VALUE = 'Sprache & Kommunikation';
|
const LANGUAGE_COMMUNICATION_VALUE = 'Sprache & Kommunikation';
|
||||||
const SOCIETY = 'SOCIETY';
|
const SOCIETY = 'SOCIETY';
|
||||||
|
|
@ -63,14 +62,12 @@ describe('Instruments Page', () => {
|
||||||
title: 'Instrument: Argumentation',
|
title: 'Instrument: Argumentation',
|
||||||
slug: 'argumentation',
|
slug: 'argumentation',
|
||||||
language: 'de',
|
language: 'de',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: ethik,
|
type: ethik,
|
||||||
title: 'Instrument: Ethik',
|
title: 'Instrument: Ethik',
|
||||||
slug: 'ethik',
|
slug: 'ethik',
|
||||||
language: 'de',
|
language: 'de',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: ethik,
|
type: ethik,
|
||||||
|
|
@ -162,23 +159,24 @@ describe('Instruments Page', () => {
|
||||||
cy.getByDataCy('instrument').should('have.length', 3);
|
cy.getByDataCy('instrument').should('have.length', 3);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('filter by language', () => {
|
it.skip('filter by language', () => {
|
||||||
|
// todo: move this to a myKV test env
|
||||||
|
|
||||||
cy.visit('instruments/');
|
cy.visit('instruments/');
|
||||||
|
|
||||||
cy.get('.filter-bar__language-selection').invoke('show');
|
// todo: replace this invoke with something that works like a user as soon as the myKV test env is running
|
||||||
|
// cy.get('.filter-bar__language-selection').invoke('show');
|
||||||
cy.getByDataCy('radio-button-de').click();
|
cy.getByDataCy('radio-button-de').click();
|
||||||
cy.getByDataCy('instrument').should('have.length', 3);
|
cy.getByDataCy('instrument').should('have.length', 3);
|
||||||
|
|
||||||
cy.getByDataCy('radio-button-en').click();
|
cy.getByDataCy('radio-button-en').click();
|
||||||
cy.getByDataCy('instrument').should('have.length', 0);
|
cy.getByDataCy('instrument').should('have.length', 0);
|
||||||
cy.getByDataCy("info-message-no-entry").should('contain', 'Für die ausgewählten Filtereinstellungen sind keine Einträge vorhanden');
|
cy.getByDataCy('info-message-no-entry').should(
|
||||||
|
'contain',
|
||||||
|
'Für die ausgewählten Filtereinstellungen sind keine Einträge vorhanden'
|
||||||
|
);
|
||||||
|
|
||||||
cy.getByDataCy('radio-button-fr').click();
|
cy.getByDataCy('radio-button-fr').click();
|
||||||
cy.getByDataCy('instrument').should('have.length', 1);
|
cy.getByDataCy('instrument').should('have.length', 1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
<language-switcher
|
<language-switcher
|
||||||
class="filter-bar__language-selection"
|
class="filter-bar__language-selection"
|
||||||
v-show="$flavor.showLanguageFilter"
|
v-if="$flavor.showLanguageFilter"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue