Skip to content
Snippets Groups Projects
Commit c39365c8 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add class to clicked button to end2end test if it was clicked

parent 707e25f1
No related branches found
No related tags found
No related merge requests found
Pipeline #108260 passed
...@@ -113,7 +113,10 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) { ...@@ -113,7 +113,10 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) {
`; `;
} }
buttonClickHandler() { buttonClickHandler(e) {
// add class to button to end2end test if button was clicked
e.target.classList.add('button-clicked');
setTimeout(() => { setTimeout(() => {
const scopedTagName = this.getScopedTagName('dbp-button'); const scopedTagName = this.getScopedTagName('dbp-button');
this.shadowRoot.querySelector(scopedTagName).stop(); this.shadowRoot.querySelector(scopedTagName).stop();
......
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