summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorHank <hank@mullvad.net>2022-09-13 07:44:03 +0200
committerHank <hank@mullvad.net>2022-09-20 11:33:54 +0200
commit5d6674b60d55de35b07256a2fa7736fa7119e56b (patch)
treec008f81c2384f152bad17215341700b2bdf9447b /gui
parentee9f23a929344debdf556ddb968c2911caa137a8 (diff)
downloadmullvadvpn-5d6674b60d55de35b07256a2fa7736fa7119e56b.tar.xz
mullvadvpn-5d6674b60d55de35b07256a2fa7736fa7119e56b.zip
Disable screenshots in Github Actions
Diffstat (limited to 'gui')
-rw-r--r--gui/e2e/tunnel-state.spec.ts20
1 files changed, 15 insertions, 5 deletions
diff --git a/gui/e2e/tunnel-state.spec.ts b/gui/e2e/tunnel-state.spec.ts
index 066dd5066e..452f0a2265 100644
--- a/gui/e2e/tunnel-state.spec.ts
+++ b/gui/e2e/tunnel-state.spec.ts
@@ -64,7 +64,9 @@ test('App should show disconnected tunnel state', async () => {
const buttonColor = await getBackgroundColor(button);
expect(buttonColor).toBe(SECURE_COLOR);
- expect(await appWindow.screenshot()).toMatchSnapshot();
+ if (!process.env.GITHUB_ACTIONS) {
+ expect(await appWindow.screenshot()).toMatchSnapshot();
+ }
});
/**
@@ -94,7 +96,9 @@ test('App should show connecting tunnel state', async () => {
const buttonColor = await getBackgroundColor(button);
expect(buttonColor).toBe('rgba(227, 64, 57, 0.6)');
- expect(await appWindow.screenshot()).toMatchSnapshot();
+ if (!process.env.GITHUB_ACTIONS) {
+ expect(await appWindow.screenshot()).toMatchSnapshot();
+ }
});
/**
@@ -131,7 +135,9 @@ test('App should show connected tunnel state', async () => {
const buttonColor = await getBackgroundColor(button);
expect(buttonColor).toBe('rgba(255, 255, 255, 0.2)');
- expect(await appWindow.screenshot()).toMatchSnapshot();
+ if (!process.env.GITHUB_ACTIONS) {
+ expect(await appWindow.screenshot()).toMatchSnapshot();
+ }
});
/**
@@ -161,7 +167,9 @@ test('App should show disconnecting tunnel state', async () => {
const buttonColor = await getBackgroundColor(button);
expect(buttonColor).toBe(SECURE_COLOR);
- expect(await appWindow.screenshot()).toMatchSnapshot();
+ if (!process.env.GITHUB_ACTIONS) {
+ expect(await appWindow.screenshot()).toMatchSnapshot();
+ }
});
/**
@@ -187,5 +195,7 @@ test('App should show error tunnel state', async () => {
const headerColor = await getBackgroundColor(header);
expect(headerColor).toBe(SECURE_COLOR);
- expect(await appWindow.screenshot()).toMatchSnapshot();
+ if (!process.env.GITHUB_ACTIONS) {
+ expect(await appWindow.screenshot()).toMatchSnapshot();
+ }
});