|
1 | 1 | import { argosScreenshot } from '@argos-ci/playwright';
|
2 | 2 | import {
|
| 3 | + CustomizationBackground, |
3 | 4 | CustomizationHeaderPreset,
|
4 | 5 | CustomizationIconsStyle,
|
5 | 6 | CustomizationLocale,
|
@@ -478,6 +479,128 @@ const testCases: TestsCase[] = [
|
478 | 479 | }),
|
479 | 480 | run: waitForCookiesDialog,
|
480 | 481 | },
|
| 482 | + { |
| 483 | + name: 'With tint - Legacy background match', |
| 484 | + url: getCustomizationURL({ |
| 485 | + styling: { |
| 486 | + background: CustomizationBackground.Match, |
| 487 | + }, |
| 488 | + header: { |
| 489 | + preset: CustomizationHeaderPreset.Default, |
| 490 | + links: [ |
| 491 | + { |
| 492 | + title: 'Secondary button', |
| 493 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 494 | + style: 'button-secondary', |
| 495 | + }, |
| 496 | + { |
| 497 | + title: 'Primary button', |
| 498 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 499 | + style: 'button-primary', |
| 500 | + }, |
| 501 | + ], |
| 502 | + }, |
| 503 | + }), |
| 504 | + run: waitForCookiesDialog, |
| 505 | + }, |
| 506 | + { |
| 507 | + name: 'With tint - Default preset', |
| 508 | + url: getCustomizationURL({ |
| 509 | + styling: { |
| 510 | + tint: { color: { light: '#346DDB', dark: '#346DDB' } }, |
| 511 | + }, |
| 512 | + header: { |
| 513 | + preset: CustomizationHeaderPreset.Default, |
| 514 | + links: [ |
| 515 | + { |
| 516 | + title: 'Secondary button', |
| 517 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 518 | + style: 'button-secondary', |
| 519 | + }, |
| 520 | + { |
| 521 | + title: 'Primary button', |
| 522 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 523 | + style: 'button-primary', |
| 524 | + }, |
| 525 | + ], |
| 526 | + }, |
| 527 | + }), |
| 528 | + run: waitForCookiesDialog, |
| 529 | + }, |
| 530 | + { |
| 531 | + name: 'With tint - Bold preset', |
| 532 | + url: getCustomizationURL({ |
| 533 | + styling: { |
| 534 | + tint: { color: { light: '#346DDB', dark: '#346DDB' } }, |
| 535 | + }, |
| 536 | + header: { |
| 537 | + preset: CustomizationHeaderPreset.Bold, |
| 538 | + links: [ |
| 539 | + { |
| 540 | + title: 'Secondary button', |
| 541 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 542 | + style: 'button-secondary', |
| 543 | + }, |
| 544 | + { |
| 545 | + title: 'Primary button', |
| 546 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 547 | + style: 'button-primary', |
| 548 | + }, |
| 549 | + ], |
| 550 | + }, |
| 551 | + }), |
| 552 | + run: waitForCookiesDialog, |
| 553 | + }, |
| 554 | + { |
| 555 | + name: 'With tint - Contrast', |
| 556 | + url: getCustomizationURL({ |
| 557 | + styling: { |
| 558 | + tint: { color: { light: '#346DDB', dark: '#346DDB' } }, |
| 559 | + }, |
| 560 | + header: { |
| 561 | + preset: CustomizationHeaderPreset.Contrast, |
| 562 | + links: [ |
| 563 | + { |
| 564 | + title: 'Secondary button', |
| 565 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 566 | + style: 'button-secondary', |
| 567 | + }, |
| 568 | + { |
| 569 | + title: 'Primary button', |
| 570 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 571 | + style: 'button-primary', |
| 572 | + }, |
| 573 | + ], |
| 574 | + }, |
| 575 | + }), |
| 576 | + run: waitForCookiesDialog, |
| 577 | + }, |
| 578 | + { |
| 579 | + name: 'With tint - Custom preset', |
| 580 | + url: getCustomizationURL({ |
| 581 | + styling: { |
| 582 | + tint: { color: { light: '#346DDB', dark: '#346DDB' } }, |
| 583 | + }, |
| 584 | + header: { |
| 585 | + preset: CustomizationHeaderPreset.Custom, |
| 586 | + backgroundColor: { light: '#C62C68', dark: '#EF96B8' }, |
| 587 | + linkColor: { light: '#4DDE98', dark: '#0C693D' }, |
| 588 | + links: [ |
| 589 | + { |
| 590 | + title: 'Secondary button', |
| 591 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 592 | + style: 'button-secondary', |
| 593 | + }, |
| 594 | + { |
| 595 | + title: 'Primary button', |
| 596 | + to: { kind: 'url', url: 'https://www.gitbook.com' }, |
| 597 | + style: 'button-primary', |
| 598 | + }, |
| 599 | + ], |
| 600 | + }, |
| 601 | + }), |
| 602 | + run: waitForCookiesDialog, |
| 603 | + }, |
481 | 604 | ],
|
482 | 605 | },
|
483 | 606 | {
|
|
0 commit comments