Skip to content
Snippets Groups Projects
Verified Commit ce2361d6 authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7421 fix e2e tests

parent 5d8e78a0
Branches
Tags
1 merge request!9Ozg 7421 fix e2e tests
......@@ -134,6 +134,12 @@ export class VorgangZusammenarbeitE2EComponent {
});
}
public expectNumberOfEntriesToBeGreaterThan(entries: number): void {
this.countSearchEntries().then((count) => {
expect(count).to.greaterThan(entries);
});
}
public clickSearchEntry(index: number): void {
cy.getTestElement(this.searchEntry).eq(index).click();
}
......
......@@ -124,10 +124,10 @@ describe('Vorgang Zusammenarbeit anfragen', () => {
zusammenarbeitContainer.hasSearchText('');
});
it('TODO: Setup Jenkins --- should find 2 results after entering kiel', () => {
it('should find more than 300 results after entering kiel', () => {
zusammenarbeitContainer.enterSearchInput(stelleSearch2);
zusammenarbeitContainer.expectNumberOfEntriesToBe(2);
zusammenarbeitContainer.expectNumberOfEntriesToBeGreaterThan(300);
});
it('should close layer after click on search entry', () => {
......
......@@ -23,7 +23,7 @@
unter der Lizenz sind dem Lizenztext zu entnehmen.
-->
<div class="m-2 mt-4 block bg-whitetext p-4" role="region" aria-labelledby="collaboration-title">
<div class="m-2 mt-4 block bg-whitetext p-4" role="region" aria-labelledby="collaboration-title" data-test-id="collaboration-request-result">
<h2 id="collaboration-title" class="mb-4 text-xl text-text">
<span class="font-semibold">{{ collaboration.titel }}</span>
</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment