<commit_before>const puppeteer = require('puppeteer');
const cas = require('../../cas.js');

(async () => {
    const browser = await puppeteer.launch(cas.browserOptions());
    const page = await cas.newPage(browser);
    await cas.goto(page, "https://localhost:8443/cas/login");

    await cas.loginWith(page, "casuser", "Mellon");
    await cas.assertTextContent(page, "#content h1", "Authentication Interrupt")
    await cas.assertTextContentStartsWith(page, "#content p", "The authentication flow has been interrupted");
    await cas.assertTextContent(page, "#interruptMessage", "We interrupted your login");
    await cas.assertTicketGrantingCookie(page);
    await cas.assertVisibility(page, '#interruptLinks')
    await page.waitForTimeout(1000)
    await cas.click(page, "#casapplication");
    await cas.assertTicketParameter(page);
    await browser.close();
})();<commit_msg>add tests for interrupt webflow redirection to links w/ sso<commit_after>const puppeteer = require('puppeteer');
const cas = require('../../cas.js');

(async () => {
    const browser = await puppeteer.launch(cas.browserOptions());
    const page = await cas.newPage(browser);
    await cas.goto(page, "https://localhost:8443/cas/login");

    await cas.loginWith(page, "casuser", "Mellon");
    await cas.assertTextContent(page, "#content h1", "Authentication Interrupt")
    await cas.assertTextContentStartsWith(page, "#content p", "The authentication flow has been interrupted");
    await cas.assertTextContent(page, "#interruptMessage", "We interrupted your login");
    await cas.assertTicketGrantingCookie(page);
    await cas.assertVisibility(page, '#interruptLinks')
    await page.waitForTimeout(1000)
    await cas.click(page, "#casapplication");
    await page.waitForNavigation();
    await cas.assertTicketParameter(page);
    await browser.close();
})();
{'fraction_non_alphanumeric': 0.14370290635091496, 'fraction_numerical': 0.00968783638320775, 'mean_word_length': 5.035714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3141175', 'n_tokens_mistral': 537, 'n_tokens_neox': 544, 'n_words': 129}