Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds cypress tests for index service #3227

Merged
merged 8 commits into from
Jun 12, 2024
Merged

Conversation

thoniTUB
Copy link
Collaborator

No description provided.

@thoniTUB thoniTUB requested a review from awildturtok November 23, 2023 14:15
@thoniTUB thoniTUB self-assigned this Nov 23, 2023
@thoniTUB thoniTUB enabled auto-merge November 23, 2023 14:16
@thoniTUB thoniTUB requested a review from SebChmie May 24, 2024 18:40
@thoniTUB
Copy link
Collaborator Author

@SebChmie das ist ein alter PR den ich jetzt endlich fixen konnte. Erfügt einen Cypress Test für den Index Service hinzu

Copy link
Contributor

@SebChmie SebChmie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sieht gut aus.

@@ -126,7 +139,7 @@ context("Admin UI Single Dataset", () => {
it("Counts are right", () => {
visitAdminUI(`datasets/${testDSID}/connectors/${testDSID}.concept1.column`);
cy.get('[data-test-id="accordion-Filters"] > .card-header').contains("20 entries");
cy.get('[data-test-id="accordion-Selects"] > .card-header').contains("16 entries");
cy.get('[data-test-id="accordion-Selects"] > .card-header').contains("17 entries");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muss die Anzahl von Entries hardgecoded sein?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Für einen Test ist das gut so.

Da man Testdaten nicht aus dem zu testenden Code erzeugen soll, braucht man entweder eine Referenzimplementierung gegen die man testet oder einen festen Datensatz, aus den man liest.

@thoniTUB thoniTUB merged commit f16f91d into develop Jun 12, 2024
6 checks passed
@thoniTUB thoniTUB deleted the feature/global_indexservice branch October 2, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants