mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
implemented app menu testing support
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
1 parent
f69f8c793f
commit
86b19ac24b
2 files changed
+37
-7
No files matched your search
@@ -48,16 +48,15 @@ describe("Lens integration tests", () => {
|
||||
})
|
||||
|
||||
// Todo figure out how to access main menu to get these to work
|
||||
it.skip('shows "add cluster"', async () => {
|
||||
await app.client.keys(['Shift', 'Meta', 'A'])
|
||||
it('shows "add cluster"', async () => {
|
||||
await app.electron.ipcRenderer.send('test-menu-item-click', "File", "Add Cluster")
|
||||
await app.client.waitUntilTextExists("h2", "Add Cluster")
|
||||
await app.client.keys(['Shift', 'Meta'])
|
||||
})
|
||||
|
||||
it.skip('shows "preferences"', async () => {
|
||||
await app.client.keys(['Meta', ','])
|
||||
it('shows "preferences"', async () => {
|
||||
let appName: string = process.platform === "darwin" ? "Lens" : "File"
|
||||
await app.electron.ipcRenderer.send('test-menu-item-click', appName, "Preferences")
|
||||
await app.client.waitUntilTextExists("h2", "Preferences")
|
||||
await app.client.keys('Meta')
|
||||
})
|
||||
|
||||
it.skip('quits Lens"', async () => {
|
||||
|
||||
Reference in new issue
Block a user