chore(explorer): clear out slack webhook (#4320)
This commit is contained in:
parent
5b8df4c414
commit
071a6ff8bb
@ -40,7 +40,7 @@ context.skip('Transactions page', function () {
|
|||||||
.first()
|
.first()
|
||||||
.click({ force: true });
|
.click({ force: true });
|
||||||
} else {
|
} else {
|
||||||
cy.slack('Unable to find any transactions on page');
|
cy.log('Unable to find any transactions on page');
|
||||||
cy.screenshot();
|
cy.screenshot();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -78,7 +78,7 @@ context.skip('Transactions page', function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
cy.slack('Unable to find any transactions on page');
|
cy.log('Unable to find any transactions on page');
|
||||||
cy.screenshot();
|
cy.screenshot();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,6 @@ import { addMockGQLCommand } from './lib/mock-gql';
|
|||||||
import { addMockSubscription } from './lib/mock-ws';
|
import { addMockSubscription } from './lib/mock-ws';
|
||||||
import { addMockWalletCommand } from './lib/mock-rest';
|
import { addMockWalletCommand } from './lib/mock-rest';
|
||||||
import { addMockWeb3ProviderCommand } from './lib/commands/mock-web3-provider';
|
import { addMockWeb3ProviderCommand } from './lib/commands/mock-web3-provider';
|
||||||
import { addSlackCommand } from './lib/commands/slack';
|
|
||||||
import { addHighlightLog } from './lib/commands/highlight-log';
|
import { addHighlightLog } from './lib/commands/highlight-log';
|
||||||
import { addGetAssets } from './lib/commands/get-assets';
|
import { addGetAssets } from './lib/commands/get-assets';
|
||||||
import { addVegaWalletReceiveFaucetedAsset } from './lib/commands/vega-wallet-receive-fauceted-asset';
|
import { addVegaWalletReceiveFaucetedAsset } from './lib/commands/vega-wallet-receive-fauceted-asset';
|
||||||
@ -26,7 +25,6 @@ import { addVegaWalletTopUpRewardsPool } from './lib/commands/vega-wallet-top-up
|
|||||||
import { addAssociateTokensToVegaWallet } from './lib/commands/associate-tokens-to-vega-wallet';
|
import { addAssociateTokensToVegaWallet } from './lib/commands/associate-tokens-to-vega-wallet';
|
||||||
|
|
||||||
addGetTestIdcommand();
|
addGetTestIdcommand();
|
||||||
addSlackCommand();
|
|
||||||
addMockGQLCommand();
|
addMockGQLCommand();
|
||||||
addMockSubscription();
|
addMockSubscription();
|
||||||
addMockWalletCommand();
|
addMockWalletCommand();
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
declare global {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
||||||
namespace Cypress {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
interface Chainable<Subject> {
|
|
||||||
slack(message: string): void;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export function addSlackCommand() {
|
|
||||||
// @ts-ignore - ignoring Cypress type error which gets resolved when Cypress uses the command
|
|
||||||
Cypress.Commands.add('slack', (message) => {
|
|
||||||
const text = `${message}: ${JSON.stringify(Cypress.spec)}`;
|
|
||||||
|
|
||||||
cy.log('NOTIFYING SLACK');
|
|
||||||
|
|
||||||
const webhook = Cypress.env('SLACK_WEBHOOK');
|
|
||||||
|
|
||||||
if (!webhook) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
cy.request('POST', webhook, {
|
|
||||||
text,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user