refactor: button and link with stories #4283
Annotations
10 errors and 1 notice
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
1) [chromium] › specs/onboarding/onboarding.spec.ts:36:7 › Onboarding an existing user › mnemonic key validation: should show error for invalid mnemonic key words
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInMnemonicKey (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:264:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:44:5
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
1) [chromium] › specs/onboarding/onboarding.spec.ts:36:7 › Onboarding an existing user › mnemonic key validation: should show error for invalid mnemonic key words
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInMnemonicKey (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:264:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:44:5
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
1) [chromium] › specs/onboarding/onboarding.spec.ts:36:7 › Onboarding an existing user › mnemonic key validation: should show error for invalid mnemonic key words
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInMnemonicKey (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:264:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:44:5
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
2) [chromium] › specs/onboarding/onboarding.spec.ts:51:7 › Onboarding an existing user › mnemonic key validation: should not show error for valid mnemonic key words
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInMnemonicKey (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:264:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:59:5
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
2) [chromium] › specs/onboarding/onboarding.spec.ts:51:7 › Onboarding an existing user › mnemonic key validation: should not show error for valid mnemonic key words
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInMnemonicKey (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:264:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:59:5
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
2) [chromium] › specs/onboarding/onboarding.spec.ts:51:7 › Onboarding an existing user › mnemonic key validation: should not show error for valid mnemonic key words
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInMnemonicKey (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:264:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:59:5
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
3) [chromium] › specs/onboarding/onboarding.spec.ts:79:11 › Onboarding an existing user › Address generation › Bitcoin › that the wallet generates the correct Native Segwit address
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInExistingUser (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:255:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:75:7
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
3) [chromium] › specs/onboarding/onboarding.spec.ts:79:11 › Onboarding an existing user › Address generation › Bitcoin › that the wallet generates the correct Native Segwit address
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInExistingUser (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:255:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:75:7
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
3) [chromium] › specs/onboarding/onboarding.spec.ts:79:11 › Onboarding an existing user › Address generation › Bitcoin › that the wallet generates the correct Native Segwit address
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInExistingUser (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:255:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:75:7
|
Run Playwright tests:
tests/page-object-models/onboarding.page.ts#L248
4) [chromium] › specs/onboarding/onboarding.spec.ts:84:11 › Onboarding an existing user › Address generation › Bitcoin › that the wallet generates the correct Taproot address
Error: locator.click: Error: strict mode violation: getByTestId('sign-in-link') resolved to 2 elements:
1) <a data-testid="sign-in-link" class="leather-cursor…>Use existing key</a> aka locator('a').filter({ hasText: 'Use existing key' })
2) <button type="button" data-testid="sign-in-link" class="…>Use existing key</button> aka locator('button').filter({ hasText: 'Use existing key' })
Call log:
- waiting for getByTestId('sign-in-link')
at page-object-models/onboarding.page.ts:248
246 | async initiateSignIn() {
247 | await this.denyAnalytics();
> 248 | await this.page.getByTestId(OnboardingSelectors.SignInLink).click();
| ^
249 | }
250 |
251 | /**
at OnboardingPage.initiateSignIn (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:248:65)
at OnboardingPage.signInExistingUser (/home/runner/work/extension/extension/tests/page-object-models/onboarding.page.ts:255:5)
at /home/runner/work/extension/extension/tests/specs/onboarding/onboarding.spec.ts:75:7
|
Run Playwright tests
5 failed
[chromium] › specs/onboarding/onboarding.spec.ts:36:7 › Onboarding an existing user › mnemonic key validation: should show error for invalid mnemonic key words
[chromium] › specs/onboarding/onboarding.spec.ts:51:7 › Onboarding an existing user › mnemonic key validation: should not show error for valid mnemonic key words
[chromium] › specs/onboarding/onboarding.spec.ts:79:11 › Onboarding an existing user › Address generation › Bitcoin › that the wallet generates the correct Native Segwit address
[chromium] › specs/onboarding/onboarding.spec.ts:84:11 › Onboarding an existing user › Address generation › Bitcoin › that the wallet generates the correct Taproot address
[chromium] › specs/onboarding/onboarding.spec.ts:91:11 › Onboarding an existing user › Address generation › Stacks › that restoring a wallet generates the correct stacks address
4 passed (1.7m)
|
The logs for this run have expired and are no longer available.
Loading