Skip to content

Commit 594b971

Browse files
crisbetojelbourn
authored andcommitted
build: fix radio e2e tests timing out (#12857)
Fixes a timeout in the radio button e2e tests, after the new design changes got in. The tests expect there to be no ripples, but the new design introduced a permanent ripple in each button. This is along the same lines as #12699.
1 parent 266a159 commit 594b971

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

e2e/components/radio-e2e.spec.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@ describe('radio', () => {
99
element(by.id('water')).click();
1010

1111
expect(element(by.id('water')).getAttribute('class')).toContain('mat-radio-checked');
12-
await browser.wait(ExpectedConditions.not(
13-
ExpectedConditions.presenceOf(element(by.css('div.mat-ripple-element')))));
1412

1513
expect(element(by.css('input[id=water-input]')).getAttribute('checked')).toBeTruthy();
1614
expect(element(by.css('input[id=leaf-input]')).getAttribute('checked')).toBeFalsy();
1715

1816
element(by.id('leaf')).click();
1917
expect(element(by.id('leaf')).getAttribute('class')).toContain('mat-radio-checked');
2018

21-
await browser.wait(ExpectedConditions.not(
22-
ExpectedConditions.presenceOf(element(by.css('div.mat-ripple-element')))));
23-
2419
expect(element(by.css('input[id=leaf-input]')).getAttribute('checked')).toBeTruthy();
2520
expect(element(by.css('input[id=water-input]')).getAttribute('checked')).toBeFalsy();
2621
});
@@ -38,9 +33,6 @@ describe('radio', () => {
3833
element(by.id('leaf')).click();
3934
expect(element(by.id('leaf')).getAttribute('class')).toContain('mat-radio-disabled');
4035

41-
await browser.wait(ExpectedConditions.not(
42-
ExpectedConditions.presenceOf(element(by.css('div.mat-ripple-element')))));
43-
4436
expect(element(by.css('input[id=leaf-input]')).getAttribute('disabled')).toBeTruthy();
4537
});
4638

0 commit comments

Comments
 (0)