chore(playwright): enable type checking (#25034)

This commit is contained in:
Sean Perkins
2022-03-31 15:42:09 -04:00
committed by GitHub
parent 0aa6d124d6
commit 2af24494f5
63 changed files with 163 additions and 173 deletions

View File

@ -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');
});

View File

@ -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');
});

View File

@ -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'

View File

@ -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'

View File

@ -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'