@@ -19,21 +19,21 @@ describe('Barcelona Input', () => {
19
19
expect ( instance . toJSON ( ) ! ) . toMatchSnapshot ( ) ;
20
20
} ) ;
21
21
22
- it ( 'does not show the error message' , async ( ) => {
22
+ it ( 'does not show the error message' , ( ) => {
23
23
const { getByRole } = render ( component ) ;
24
- const errorElement = await getByRole ( 'alert' ) ;
24
+ const errorElement = getByRole ( 'alert' ) ;
25
25
expect ( errorElement ) . not . toHaveClass ( 'show' ) ;
26
26
} ) ;
27
27
28
- it ( 'shows the valid icon' , async ( ) => {
28
+ it ( 'shows the valid icon' , ( ) => {
29
29
const { getByRole } = render ( component ) ;
30
- const validStatusElement = await getByRole ( 'status' , { name : 'Input:valid' } ) ;
30
+ const validStatusElement = getByRole ( 'status' , { name : 'Input:valid' } ) ;
31
31
expect ( validStatusElement ) . not . toBeNull ( ) ;
32
32
} ) ;
33
33
34
- it ( 'shows the input as valid' , async ( ) => {
34
+ it ( 'shows the input as valid' , ( ) => {
35
35
const { getByRole } = render ( component ) ;
36
- const inputElement = await getByRole ( 'textbox' ) ;
36
+ const inputElement = getByRole ( 'textbox' ) ;
37
37
expect ( inputElement ) . toHaveClass ( 'confirmed' ) ;
38
38
expect ( inputElement ) . not . toHaveClass ( 'inputError' ) ;
39
39
} ) ;
@@ -47,21 +47,21 @@ describe('Barcelona Input', () => {
47
47
expect ( instance . toJSON ( ) ! ) . toMatchSnapshot ( ) ;
48
48
} ) ;
49
49
50
- it ( 'shows the error message' , async ( ) => {
50
+ it ( 'shows the error message' , ( ) => {
51
51
const { getByRole } = render ( component ) ;
52
- const errorElement = await getByRole ( 'alert' ) ;
52
+ const errorElement = getByRole ( 'alert' ) ;
53
53
expect ( errorElement ) . toHaveClass ( 'show' ) ;
54
54
} ) ;
55
55
56
- it ( 'shows the invalid icon' , async ( ) => {
56
+ it ( 'shows the invalid icon' , ( ) => {
57
57
const { getByRole } = render ( component ) ;
58
- const validStatusElement = await getByRole ( 'status' , { name : 'Input:invalid' } ) ;
58
+ const validStatusElement = getByRole ( 'status' , { name : 'Input:invalid' } ) ;
59
59
expect ( validStatusElement ) . not . toBeNull ( ) ;
60
60
} ) ;
61
61
62
- it ( 'shows the input as invalid' , async ( ) => {
62
+ it ( 'shows the input as invalid' , ( ) => {
63
63
const { getByRole } = render ( component ) ;
64
- const errorElement = await getByRole ( 'textbox' ) ;
64
+ const errorElement = getByRole ( 'textbox' ) ;
65
65
expect ( errorElement ) . not . toHaveClass ( 'confirmed' ) ;
66
66
expect ( errorElement ) . toHaveClass ( 'inputError' ) ;
67
67
} ) ;
@@ -75,9 +75,9 @@ describe('Barcelona Input', () => {
75
75
expect ( instance . toJSON ( ) ! ) . toMatchSnapshot ( ) ;
76
76
} ) ;
77
77
78
- it ( 'does not show the error message' , async ( ) => {
78
+ it ( 'does not show the error message' , ( ) => {
79
79
const { getByRole } = render ( component ) ;
80
- const errorElement = await getByRole ( 'alert' ) ;
80
+ const errorElement = getByRole ( 'alert' ) ;
81
81
expect ( errorElement ) . not . toHaveClass ( 'show' ) ;
82
82
} ) ;
83
83
} ) ;
@@ -90,15 +90,15 @@ describe('Barcelona Input', () => {
90
90
expect ( instance . toJSON ( ) ) . toMatchSnapshot ( ) ;
91
91
} ) ;
92
92
93
- it ( 'shows the error message' , async ( ) => {
93
+ it ( 'shows the error message' , ( ) => {
94
94
const { getByRole } = render ( component ) ;
95
- const errorElement = await getByRole ( 'alert' ) ;
95
+ const errorElement = getByRole ( 'alert' ) ;
96
96
expect ( errorElement ) . toHaveClass ( 'show' ) ;
97
97
} ) ;
98
98
99
- it ( 'shows the invalid icon' , async ( ) => {
99
+ it ( 'shows the invalid icon' , ( ) => {
100
100
const { getByRole } = render ( component ) ;
101
- const validStatusElement = await getByRole ( 'status' , { name : 'Input:invalid' } ) ;
101
+ const validStatusElement = getByRole ( 'status' , { name : 'Input:invalid' } ) ;
102
102
expect ( validStatusElement ) . not . toBeNull ( ) ;
103
103
} ) ;
104
104
} ) ;
0 commit comments