This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Sets the status to Pomodoro | |
on run {input, parameters} | |
tell application "Slack 2" | |
activate | |
end tell | |
tell application "System Events" | |
-- Set status keyboard shortcut | |
keystroke "y" using {shift down, command down} | |
-- Would be great to do the following: | |
-- - Clear the previous status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Writes a file to src/config.js exporting the baseUrl property | |
const config = require('../config'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const { | |
baseUrl, | |
googleAnalytics, | |
sentryDSN, | |
useDevTools, | |
env, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NOTE - at some point these selectors will need to be scoped based on the page | |
that the user is accessing in the cucumber step | |
*/ | |
const selectors = { | |
links: { | |
Signup: 'a[href="/signup"]', | |
Login: 'a[href="/login"]', | |
Logout: 'a.logout', | |
'I have forgotten my password': 'a[href="/forgot-password"]', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Dashboard, Organisation } = require('api/models'); | |
const pages = { | |
home: '/', | |
login: '/login', | |
signup: '/signup', | |
'forgot-password': '/forgot-password', | |
dashboard: '/dashboard', | |
account: '/account', | |
organisations: '/account/organisations', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given('I login', { timeout: 10000 }, async () => { | |
await visitHomepage(); | |
await clickOnItem('Login'); | |
await takenToPage('login'); | |
await fillInFormField('identifier', email); | |
await fillInFormField('password', password); | |
await pressButton('Login'); | |
return await shouldBeOnPage('dashboard'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies | |
const assert = require('assert'); | |
const { | |
Dashboard, | |
DashboardUser, | |
User, | |
Organisation, | |
OrganisationUser, | |
ForgotPassword | |
} = require('api/models'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies | |
const { Given, When, Then } = require('cucumber'); | |
const { | |
visitHomepage, | |
assertUserHasPassword, | |
assertUserHasEmail, | |
userExists, | |
closeAccount, | |
pending, | |
clickOnItem, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*eslint no-console: ["error", { allow: ["log"] }] */ | |
// Dependencies | |
const { After, Before, AfterAll } = require('cucumber'); | |
const {mongoose, redis } = require('api/db'); | |
const { | |
User, | |
Dashboard, | |
DashboardUser, | |
Session, | |
ForgotPassword, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*eslint no-console: ["error", { allow: ["log"] }] */ | |
// Dependencies | |
const { After, Before, AfterAll } = require('cucumber'); | |
const scope = require('./support/scope'); | |
Before(async () => { | |
}); | |
After(async () => { | |
if (scope.browser && scope.context.currentPage) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies | |
const api = require('api'); | |
const web = require('web'); | |
const { setWorldConstructor } = require('cucumber'); | |
const puppeteer = require('puppeteer'); | |
const scope = require('./support/scope'); | |
const World = function() { | |
scope.host = web.host; | |
scope.driver = puppeteer; |
NewerOlder