<commit_before>
use strict;

use lib 't/lib';

use Test::More;
use SGN::Test::WWW::WebDriver;

my $d = SGN::Test::WWW::WebDriver->new();

$d->get_ok('/search/phenotypes/stock');

my $stock_name_input = $d->find_element_ok('stock_name', 'id', 'find stock name input');

$stock_name_input->send_keys('test_accession1');

$stock_name_input->submit();


done_testing();<commit_msg>test detail page in stock.t<commit_after>
use strict;

use lib 't/lib';

use Test::More;
use SGN::Test::WWW::WebDriver;

my $d = SGN::Test::WWW::WebDriver->new();

$d->get_ok('/search/phenotypes/stock');

my $stock_name_input = $d->find_element_ok('stock_name', 'id', 'find stock name input');

$stock_name_input->send_keys('test_accession1');

$stock_name_input->submit();

my $link = $d->find_element_ok('test_accession1', 'link_text', 'result overview page');

$link->click();

my $detail_page = $d->driver->get_page_source();
ok($detail_page =~ m/Accession\: test_accession1/, "detail page 1");
ok($detail_page =~ m/test_accession1_synonym/, "detail page 2");

done_testing();
{'fraction_non_alphanumeric': 0.195837275307474, 'fraction_numerical': 0.006622516556291391, 'mean_word_length': 7.076335877862595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, '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': '2821422', 'n_tokens_mistral': 408, 'n_tokens_neox': 400, 'n_words': 75}