Skip to content

Commit 8fb4563

Browse files
committed
test(all): fix all e2e tests to include an ion-nav
1 parent 321c6d9 commit 8fb4563

47 files changed

Lines changed: 388 additions & 65 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/components/badge/test/basic/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ import {ionicBootstrap} from '../../../../../src';
77
})
88
class E2EPage {}
99

10-
ionicBootstrap(E2EPage);
10+
@Component({
11+
template: '<ion-nav [root]="rootPage"></ion-nav>'
12+
})
13+
class E2EApp {
14+
rootPage = E2EPage;
15+
}
16+
17+
ionicBootstrap(E2EApp);

src/components/button/test/basic/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@ class E2EPage {
2222
}
2323
}
2424

25-
ionicBootstrap(E2EPage);
25+
@Component({
26+
template: '<ion-nav [root]="rootPage"></ion-nav>'
27+
})
28+
class E2EApp {
29+
rootPage = E2EPage;
30+
}
31+
32+
ionicBootstrap(E2EApp);

src/components/button/test/block/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ class E2EPage {
1313
}
1414
}
1515

16-
ionicBootstrap(E2EPage);
16+
@Component({
17+
template: '<ion-nav [root]="rootPage"></ion-nav>'
18+
})
19+
class E2EApp {
20+
rootPage = E2EPage;
21+
}
22+
23+
ionicBootstrap(E2EApp);

src/components/button/test/clear/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ class E2EPage {
1313
}
1414
}
1515

16-
ionicBootstrap(E2EPage);
16+
@Component({
17+
template: '<ion-nav [root]="rootPage"></ion-nav>'
18+
})
19+
class E2EApp {
20+
rootPage = E2EPage;
21+
}
22+
23+
ionicBootstrap(E2EApp);

src/components/button/test/dynamic/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,11 @@ class E2EPage {
5252
}
5353
}
5454

55-
ionicBootstrap(E2EPage);
55+
@Component({
56+
template: '<ion-nav [root]="rootPage"></ion-nav>'
57+
})
58+
class E2EApp {
59+
rootPage = E2EPage;
60+
}
61+
62+
ionicBootstrap(E2EApp);

src/components/button/test/fab/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ import {ionicBootstrap} from '../../../../../src';
77
})
88
class E2EPage {}
99

10-
ionicBootstrap(E2EPage);
10+
@Component({
11+
template: '<ion-nav [root]="rootPage"></ion-nav>'
12+
})
13+
class E2EApp {
14+
rootPage = E2EPage;
15+
}
16+
17+
ionicBootstrap(E2EApp);
Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1+
<ion-content>
2+
<button fab fab-left fab-top>
3+
<ion-icon name="add"></ion-icon>
4+
</button>
15

2-
<button fab fab-left fab-top>
3-
<ion-icon name="add"></ion-icon>
4-
</button>
6+
<button fab fab-center fab-top secondary>
7+
<ion-icon name="add"></ion-icon>
8+
</button>
59

6-
<button fab fab-center fab-top secondary>
7-
<ion-icon name="add"></ion-icon>
8-
</button>
10+
<button fab fab-right fab-top danger>
11+
<ion-icon name="add"></ion-icon>
12+
</button>
913

10-
<button fab fab-right fab-top danger>
11-
<ion-icon name="add"></ion-icon>
12-
</button>
14+
<button fab fab-left fab-bottom light>
15+
<ion-icon name="add"></ion-icon>
16+
</button>
1317

14-
<button fab fab-left fab-bottom light>
15-
<ion-icon name="add"></ion-icon>
16-
</button>
18+
<button fab fab-center fab-bottom primary>
19+
<ion-icon name="add"></ion-icon>
20+
</button>
1721

18-
<button fab fab-center fab-bottom primary>
19-
<ion-icon name="add"></ion-icon>
20-
</button>
21-
22-
<button fab fab-right fab-bottom dark>
23-
<ion-icon name="add"></ion-icon>
24-
</button>
22+
<button fab fab-right fab-bottom dark>
23+
<ion-icon name="add"></ion-icon>
24+
</button>
25+
</ion-content>

src/components/button/test/full/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ import {ionicBootstrap} from '../../../../../src';
77
})
88
class E2EPage {}
99

10-
ionicBootstrap(E2EPage);
10+
@Component({
11+
template: '<ion-nav [root]="rootPage"></ion-nav>'
12+
})
13+
class E2EApp {
14+
rootPage = E2EPage;
15+
}
16+
17+
ionicBootstrap(E2EApp);

src/components/button/test/icons/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ import {ionicBootstrap} from '../../../../../src';
77
})
88
class E2EPage {}
99

10-
ionicBootstrap(E2EPage);
10+
@Component({
11+
template: '<ion-nav [root]="rootPage"></ion-nav>'
12+
})
13+
class E2EApp {
14+
rootPage = E2EPage;
15+
}
16+
17+
ionicBootstrap(E2EApp);

src/components/button/test/outline/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ class E2EPage {
1313
}
1414
}
1515

16-
ionicBootstrap(E2EPage);
16+
@Component({
17+
template: '<ion-nav [root]="rootPage"></ion-nav>'
18+
})
19+
class E2EApp {
20+
rootPage = E2EPage;
21+
}
22+
23+
ionicBootstrap(E2EApp);

0 commit comments

Comments
 (0)