Skip to content

Instantly share code, notes, and snippets.

View NEOdinok's full-sized avatar
🏠
Working from home

Georgy Martynovich NEOdinok

🏠
Working from home
View GitHub Profile
@NEOdinok
NEOdinok / CollapsibleText.spec.ts
Created November 2, 2024 09:11
CollapsibleText.spec.ts
import { expect, test } from '@playwright/test';
import { storyUrl } from 'utils/navigate';
test.describe('Extranet-ui CollapsibleText', () => {
const urlLongText = storyUrl('collapsibletext--long-text');
const urlShortText = storyUrl('collapsibletext--short-text');
const urlReactElement = storyUrl('collapsibletext--react-element');
const textDataTestId = 'extranet-ui-collapsible-text';
const collapseButtonDataTestId = 'extranet-ui-collapsible-collapse-button';
const defaultText = `
@NEOdinok
NEOdinok / bot.js
Created May 8, 2021 22:07
client.on('message... event listener problem
console.log('Beep Boop Beep'); //prints 'Beep Boop Beep'
require('dotenv').config(); //load the dotenv node pachage and call a config() func to load thea values from .env
const Discord = require('discord.js');
const client = new Discord.Client({ ws: { intents: [
'GUILDS',
'GUILD_MESSAGES',
'GUILD_PRESENCES',