-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com>
@SebChmie das ist ein alter PR den ich jetzt endlich fixen konnte. Erfügt einen Cypress Test für den Index Service hinzu |
There was a problem hiding this 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"); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.