Summary: allow-large-files Bumps [spectron](https://github.com/electron/spectron) from 11.0.0 to 14.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/electron/spectron/releases">spectron's releases</a>.</em></p> <blockquote> <h2>v13.0.0</h2> <p>No release notes provided.</p> <h2>v12.0.0</h2> <p>No release notes provided.</p> <h2>v11.1.0</h2> <p>Upgraded webdriverio to 6.1.20 <a href="https://github.com/electron/spectron/issues/631">https://github.com/facebook/flipper/issues/631</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/electron/spectron/commits">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `dependabot rebase` will rebase this PR - `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `dependabot merge` will merge this PR after your CI passes on it - `dependabot squash and merge` will squash and merge this PR after your CI passes on it - `dependabot cancel merge` will cancel a previously requested merge and block automerging - `dependabot reopen` will reopen this PR if it is closed - `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Pull Request resolved: https://github.com/facebook/flipper/pull/2071 Test Plan: Imported from GitHub, without a `Test Plan:` line. yarn test-e2e Test Suite Succeded after running yarn test-e2e Reviewed By: passy Differential Revision: D27230110 Pulled By: priteshrnandgaonkar fbshipit-source-id: d6d2d6c1482fa563b9dde9472467f918496e2cea
75 lines
1.7 KiB
TypeScript
75 lines
1.7 KiB
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
import {Application} from 'spectron';
|
|
import assert from 'assert';
|
|
import path from 'path';
|
|
|
|
const app = new Application({
|
|
path: path.join(
|
|
__dirname,
|
|
'..',
|
|
'..',
|
|
'dist',
|
|
'mac',
|
|
'Flipper.app',
|
|
'Contents',
|
|
'MacOS',
|
|
'Flipper',
|
|
),
|
|
args: ['--no-launcher'],
|
|
});
|
|
|
|
async function testSuite(app: Application) {
|
|
await app.client.waitUntilWindowLoaded();
|
|
app.browserWindow.focus();
|
|
await app.client.waitUntilTextExists('html', 'Changelog');
|
|
(await app.client.$('div[type="primary"]=Close')).click();
|
|
(await app.client.$('div=Manage Plugins')).click();
|
|
}
|
|
|
|
export default function test() {
|
|
return app
|
|
.start()
|
|
.then(async function () {
|
|
await app.client.waitUntilWindowLoaded();
|
|
})
|
|
.then(function () {
|
|
// Check if the window is visible
|
|
return app.browserWindow.isVisible();
|
|
})
|
|
.then(function (isVisible) {
|
|
// Verify the window is visible
|
|
assert.equal(isVisible, true);
|
|
})
|
|
.then(function () {
|
|
// Get the window's title
|
|
return app.client.getTitle();
|
|
})
|
|
.then(function (title) {
|
|
// Verify the window's title
|
|
assert.equal(title.includes('Flipper'), true);
|
|
})
|
|
.then(async function () {
|
|
await testSuite(app);
|
|
})
|
|
.then(function () {
|
|
// Stop the application
|
|
return app.stop();
|
|
})
|
|
.catch(function (error) {
|
|
// Log any failures
|
|
console.error('Test failed', error.message);
|
|
process.exit(1);
|
|
})
|
|
.then(function () {
|
|
console.log('Test suite succeeded.');
|
|
});
|
|
}
|