fix(unit_test): ignore gitlab ide links for alive checks

!9
This commit is contained in:
2023-05-23 13:25:18 +09:30
parent 6ed8e5bae3
commit b5268e1863

View File

@ -89,18 +89,20 @@ class Data:
url = link.get_attribute('href')
link = self.parse_url(url)
if 'gitlab.com/-/ide/project' not in url: # ignore gitlab ide links
hyperlink_source_file = {'name': source_file, 'location': link_location}
link = self.parse_url(url)
if link['url_id'] in data['hyperlinks']:
hyperlink_source_file = {'name': source_file, 'location': link_location}
data['hyperlinks'][link['url_id']]['source_files'].append(hyperlink_source_file)
if link['url_id'] in data['hyperlinks']:
else:
data['hyperlinks'][link['url_id']]['source_files'].append(hyperlink_source_file)
link['source_files'] = [ hyperlink_source_file ]
data['hyperlinks'][link['url_id']] = link
else:
link['source_files'] = [ hyperlink_source_file ]
data['hyperlinks'][link['url_id']] = link
events = [self.process_browser_log_entry(entry) for entry in self.driver.get_log('performance')]