mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
chore(playwright): enable type checking (#25034)
This commit is contained in:
@ -7,6 +7,6 @@ test('redirect should support query string', async () => {
|
||||
|
||||
await page.waitForChanges();
|
||||
|
||||
const url = await page.url();
|
||||
expect(url).toContain('#/three?has_query_string=true');
|
||||
});
|
||||
const url = page.url();
|
||||
expect(url).toContain('#/three?has_query_string=true');
|
||||
});
|
||||
|
||||
@ -7,11 +7,11 @@ test('push should support relative path', async () => {
|
||||
await page.waitForChanges();
|
||||
|
||||
const backButton = await page.$('#btn-rel');
|
||||
await backButton.click();
|
||||
await backButton?.click();
|
||||
await page.waitForChanges();
|
||||
|
||||
const url = await page.url();
|
||||
expect(url).toContain('#/two/three/relative?param=1');
|
||||
const url = page.url();
|
||||
expect(url).toContain('#/two/three/relative?param=1');
|
||||
});
|
||||
|
||||
test('push should support absolute path', async () => {
|
||||
@ -21,9 +21,9 @@ test('push should support absolute path', async () => {
|
||||
await page.waitForChanges();
|
||||
|
||||
const backButton = await page.$('#btn-abs');
|
||||
await backButton.click();
|
||||
await backButton?.click();
|
||||
await page.waitForChanges();
|
||||
|
||||
const url = await page.url();
|
||||
expect(url).toContain('#/two/three/absolute');
|
||||
});
|
||||
const url = page.url();
|
||||
expect(url).toContain('#/two/three/absolute');
|
||||
});
|
||||
|
||||
@ -62,9 +62,6 @@ test('router: guards - href - redirect/allow', async () => {
|
||||
await checkUrl(page, '#/home');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
test('router: guards - href - allow/block', async () => {
|
||||
const page = await newE2EPage({
|
||||
url: '/src/components/router/test/guards?ionic:_testing=true'
|
||||
|
||||
@ -62,9 +62,6 @@ test('router: guards - router-link - redirect/allow', async () => {
|
||||
await checkUrl(page, '#/home');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
test('router: guards - router-link - allow/block', async () => {
|
||||
const page = await newE2EPage({
|
||||
url: '/src/components/router/test/guards?ionic:_testing=true'
|
||||
|
||||
@ -62,9 +62,6 @@ test('router: guards - router.push - redirect/allow', async () => {
|
||||
await checkUrl(page, '#/home');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
test('router: guards - router.push - allow/block', async () => {
|
||||
const page = await newE2EPage({
|
||||
url: '/src/components/router/test/guards?ionic:_testing=true'
|
||||
|
||||
Reference in New Issue
Block a user