Skip to content
Snippets Groups Projects
Commit 73fcb903 authored by rhenck's avatar rhenck
Browse files

[e2e] Fix expansion panel usage

parent d734d310
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ export function setCheckbox(labelText: string): void {
export function addElement(element: string, expansionPanel?: string): void {
// Check if expansion panel is already open; this is important for non-isolated tests
if (expansionPanel) {
cy.get('mat-expansion-panel').contains('Sonstige').then(expansionPanelElement => {
cy.contains('mat-expansion-panel', expansionPanel).then(expansionPanelElement => {
if (!expansionPanelElement.hasClass('mat-expanded')) {
cy.contains(expansionPanel).click();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment