File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { ResultsCollector } from './page-objects/results-collector.js';
5
5
const HTML = '/autofill-password-import/index.html' ;
6
6
const CONFIG = './integration-test/test-pages/autofill-password-import/config/config.json' ;
7
7
8
- test . only ( 'Password import feature' , async ( { page } , testInfo ) => {
8
+ test ( 'Password import feature' , async ( { page } , testInfo ) => {
9
9
const collector = ResultsCollector . create ( page , testInfo . project . use ) ;
10
10
await collector . load ( HTML , CONFIG ) ;
11
11
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ export default class AutofillPasswordImport extends ContentFeature {
51
51
52
52
#domLoaded;
53
53
54
- /** @type {Set<string > } */
55
- #animatedPaths = new Set ( ) ;
54
+ /** @type {Set<Element > } */
55
+ #tappedElements = new Set ( ) ;
56
56
57
57
/**
58
58
* @returns {ButtonAnimationStyle }
@@ -183,6 +183,9 @@ export default class AutofillPasswordImport extends ContentFeature {
183
183
this . currentOverlay . remove ( ) ;
184
184
this . currentOverlay = null ;
185
185
document . removeEventListener ( 'scroll' , this ) ;
186
+ if ( this . currentElementConfig ?. element ) {
187
+ this . #tappedElements. delete ( this . currentElementConfig ?. element ) ;
188
+ }
186
189
}
187
190
}
188
191
@@ -405,10 +408,10 @@ export default class AutofillPasswordImport extends ContentFeature {
405
408
if ( this . isSupportedPath ( path ) ) {
406
409
try {
407
410
this . setCurrentElementConfig ( await this . getElementAndStyleFromPath ( path ) ) ;
408
- if ( ! this . #animatedPaths . has ( path ) ) {
411
+ if ( this . currentElementConfig ?. element && ! this . #tappedElements . has ( this . currentElementConfig ?. element ) ) {
409
412
await this . animateOrTapElement ( ) ;
410
413
if ( this . currentElementConfig ?. shouldTap && this . currentElementConfig ?. tapOnce ) {
411
- this . #animatedPaths . add ( path ) ;
414
+ this . #tappedElements . add ( this . currentElementConfig . element ) ;
412
415
}
413
416
}
414
417
} catch {
You can’t perform that action at this time.
0 commit comments