Skip to content

Commit

Permalink
Add cypress aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Jun 18, 2024
1 parent 263abb7 commit 00d36f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ describe('Searchkit block tests – search - anonymous', () => {
});

it('As anonymous I see only published content', function () {
cy.intercept('POST', '/**/@kitsearch').as('kitsearch');
cy.intercept('/**/@logout').as('logout');

cy.visit('/logout');
Expand Down
2 changes: 2 additions & 0 deletions acceptance/cypress/tests/search.monolingual.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ describe('Searchkit block tests – search', () => {
});

beforeEach(() => {
cy.intercept('POST', '/**/@kitsearch').as('kitsearch');
cy.autologin();

cy.visit('/suche');
Expand Down Expand Up @@ -131,6 +132,7 @@ describe('Searchkit block tests – search', () => {

// Blocks text
it('I can search in blocks', function () {
cy.intercept('POST', '/**/@kitsearch').as('kitsearch');
cy.visit('/garten-blog/februar');
cy.get('a.edit').click();

Expand Down
1 change: 1 addition & 0 deletions acceptance/cypress/tests/search.multilingual.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ describe('Searchkit block tests – search', () => {

// Blocks text
it('I can search in blocks', function () {
cy.intercept('POST', '/**/@kitsearch').as('kitsearch');
cy.visit('/de/garten-blog/februar');
cy.get('a.edit').click();

Expand Down

0 comments on commit 00d36f1

Please sign in to comment.