Skip to content

Commit 11882cd

Browse files
authored
test: roll to [email protected] (#6262)
1 parent 2333eb0 commit 11882cd

File tree

104 files changed

+866
-965
lines changed

Some content is hidden

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

104 files changed

+866
-965
lines changed

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"eslint-plugin-notice": "^0.9.10",
8888
"eslint-plugin-react-hooks": "^4.2.0",
8989
"file-loader": "^6.1.0",
90-
"folio": "=0.3.21-alpha",
90+
"folio": "=0.4.0-alpha4",
9191
"formidable": "^1.2.2",
9292
"html-webpack-plugin": "^4.4.1",
9393
"ncp": "^2.0.0",

tests/android/browser.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { test, expect } from '../config/androidTest';
17+
import { androidTest as test, expect } from '../config/androidTest';
1818

1919
test('androidDevice.model', async function({ androidDevice }) {
2020
expect(androidDevice.model()).toBe('sdk_gphone_x86_arm');

tests/android/device.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import fs from 'fs';
1818
import { PNG } from 'pngjs';
19-
import { test, expect } from '../config/androidTest';
19+
import { androidTest as test, expect } from '../config/androidTest';
2020

2121
test('androidDevice.shell', async function({ androidDevice }) {
2222
const output = await androidDevice.shell('echo 123');
@@ -28,7 +28,7 @@ test('androidDevice.open', async function({ androidDevice }) {
2828
await socket.write(Buffer.from('321\n'));
2929
const output = await new Promise(resolve => socket.on('data', resolve));
3030
expect(output.toString()).toBe('321\n');
31-
const closedPromise = new Promise(resolve => socket.on('close', resolve));
31+
const closedPromise = new Promise<void>(resolve => socket.on('close', resolve));
3232
await socket.close();
3333
await closedPromise;
3434
});

tests/android/webview.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { test, expect } from '../config/androidTest';
17+
import { androidTest as test, expect } from '../config/androidTest';
1818

1919
test('androidDevice.webView', async function({ androidDevice }) {
2020
expect(androidDevice.webViews().length).toBe(0);

tests/beforeunload.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { test as it, expect } from './config/contextTest';
18+
import { contextTest as it, expect } from './config/browserTest';
1919

2020
it('should close browser with beforeunload page', async ({server, browserType, browserOptions }) => {
2121
const browser = await browserType.launch(browserOptions);

tests/browser.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { test, expect } from './config/browserTest';
17+
import { browserTest as test, expect } from './config/browserTest';
1818

1919
test('should create new page', async function({browser}) {
2020
const page1 = await browser.newPage();

tests/browsercontext-add-cookies.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { test as it, expect } from './config/contextTest';
19-
import { slowTest as playwrightTest } from './config/playwrightTest';
18+
import { contextTest as it, slowPlaywrightTest, expect } from './config/browserTest';
2019

2120
it('should work', async ({context, page, server}) => {
2221
await page.goto(server.EMPTY_PAGE);
@@ -158,7 +157,7 @@ it('should isolate send cookie header', async ({server, context, browser}) => {
158157
}
159158
});
160159

161-
playwrightTest('should isolate cookies between launches', async ({browserType, server, browserOptions}) => {
160+
slowPlaywrightTest('should isolate cookies between launches', async ({browserType, server, browserOptions}) => {
162161
const browser1 = await browserType.launch(browserOptions);
163162
const context1 = await browser1.newContext();
164163
await context1.addCookies([{url: server.EMPTY_PAGE, name: 'cookie-in-context-1', value: 'value', expires: Date.now() / 1000 + 10000}]);

tests/browsercontext-add-init-script.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { test as it, expect } from './config/contextTest';
18+
import { contextTest as it, expect } from './config/browserTest';
1919

2020
it('should work with browser context scripts', async ({ context, server }) => {
2121
await context.addInitScript(() => window['temp'] = 123);

tests/browsercontext-basic.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { test as it, expect } from './config/browserTest';
18+
import { browserTest as it, expect } from './config/browserTest';
1919
import { verifyViewport } from './config/utils';
2020

2121
it('should create new context', async function({browser}) {

0 commit comments

Comments
 (0)