Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button tokens was missing iOS File and had a typo in Default file #3238

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Change files

7d029b4
Select commit
Loading
Failed to load commit list.
Open

Button tokens was missing iOS File and had a typo in Default file #3238

Change files
7d029b4
Select commit
Loading
Failed to load commit list.
Azure Pipelines / PR failed Nov 16, 2023 in 37m 22s

Build #20231116.4 had test failures

Details

Tests

  • Failed: 10 (32.26%)
  • Passed: 21 (67.74%)
  • Other: 0 (0.00%)
  • Total: 31

Annotations

Check failure on line 6703 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR

Build log #L6703

Bash exited with code '1'.

Check failure on line 1 in Button component tests › Button default

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR

Button component tests › Button default

Test failed
Raw output
  ● Button component tests › Button default

    expect(received).toMatchSnapshot()

    Snapshot name: `Button component tests Button default 1`

    - Snapshot  - 1
    + Received  + 1

    @@ -35,11 +35,11 @@
        style={
          {
            "alignItems": "center",
            "alignSelf": "flex-start",
            "backgroundColor": "#0f6cbd",
    -       "borderColor": "#0f6cbd",
    +       "borderColor": "#0f548c",
            "borderRadius": 8,
            "borderWidth": 1,
            "display": "flex",
            "flexDirection": "row",
            "justifyContent": "center",

      11 |   it('Button default', () => {
      12 |     const tree = renderer.create(<Button>Default Button</Button>).toJSON();
    > 13 |     expect(tree).toMatchSnapshot();
         |                  ^
      14 |   });
      15 |
      16 |   it('Button disabled', () => {

      at Object.toMatchSnapshot (src/Button.test.tsx:13:18)

Check failure on line 1 in Button component tests › Button disabled

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR

Button component tests › Button disabled

Test failed
Raw output
  ● Button component tests › Button disabled

    expect(received).toMatchSnapshot()

    Snapshot name: `Button component tests Button disabled 1`

    - Snapshot  - 2
    + Received  + 2

    @@ -34,11 +34,11 @@
        onStartShouldSetResponder={[Function]}
        style={
          {
            "alignItems": "center",
            "alignSelf": "flex-start",
    -       "backgroundColor": "#b4d6fa",
    +       "backgroundColor": "#f3f2f1",
            "borderColor": "#f3f2f1",
            "borderRadius": 8,
            "borderWidth": 1,
            "display": "flex",
            "flexDirection": "row",
    @@ -54,11 +54,11 @@
          accessible={false}
          ellipsizeMode="tail"
          numberOfLines={0}
          style={
            {
    -         "color": "#bdbdbd",
    +         "color": "#d2d0ce",
              "fontFamily": "System",
              "fontSize": 12,
              "fontWeight": "600",
              "margin": 0,
              "marginBottom": 0,

      16 |   it('Button disabled', () => {
      17 |     const tree = renderer.create(<Button disabled>Disabled Button</Button>).toJSON();
    > 18 |     expect(tree).toMatchSnapshot();
         |                  ^
      19 |   });
      20 |
      21 |   it('Button primary', () => {

      at Object.toMatchSnapshot (src/Button.test.tsx:18:18)

Check failure on line 1 in Button component tests › Button circular

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR

Button component tests › Button circular

Test failed
Raw output
  ● Button component tests › Button circular

    expect(received).toMatchSnapshot()

    Snapshot name: `Button component tests Button circular 1`

    - Snapshot  - 1
    + Received  + 1

    @@ -36,11 +36,11 @@
        style={
          {
            "alignItems": "center",
            "alignSelf": "flex-start",
            "backgroundColor": "#0f6cbd",
    -       "borderColor": "#0f6cbd",
    +       "borderColor": "#0f548c",
            "borderRadius": 9999,
            "borderWidth": 1,
            "display": "flex",
            "flexDirection": "row",
            "justifyContent": "center",

      31 |   it('Button circular', () => {
      32 |     const tree = renderer.create(<Button shape="circular">Circular Button</Button>).toJSON();
    > 33 |     expect(tree).toMatchSnapshot();
         |                  ^
      34 |   });
      35 |
      36 |   it('Button square', () => {

      at Object.toMatchSnapshot (src/Button.test.tsx:33:18)

Check failure on line 1 in Button component tests › Button primary

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR

Button component tests › Button primary

Test failed
Raw output
  ● Button component tests › Button primary

    expect(received).toMatchSnapshot()

    Snapshot name: `Button component tests Button primary 1`

    - Snapshot  - 1
    + Received  + 1

    @@ -36,11 +36,11 @@
        style={
          {
            "alignItems": "center",
            "alignSelf": "flex-start",
            "backgroundColor": "#0f6cbd",
    -       "borderColor": "#0f6cbd",
    +       "borderColor": "#0f548c",
            "borderRadius": 8,
            "borderWidth": 1,
            "display": "flex",
            "flexDirection": "row",
            "justifyContent": "center",

      21 |   it('Button primary', () => {
      22 |     const tree = renderer.create(<Button appearance="primary">Primary Button</Button>).toJSON();
    > 23 |     expect(tree).toMatchSnapshot();
         |                  ^
      24 |   });
      25 |
      26 |   it('Button subtle', () => {

      at Object.toMatchSnapshot (src/Button.test.tsx:23:18)