move check of path to only check name

This commit is contained in:
Khaleel Al-Adhami 2024-11-04 09:55:47 -08:00
parent b70f33d972
commit 39451b14a5

View File

@ -4,6 +4,7 @@ from __future__ import annotations
import asyncio import asyncio
import time import time
from pathlib import Path
from typing import Generator from typing import Generator
import pytest import pytest
@ -317,7 +318,9 @@ def test_clear_files(
# check that the selected files are displayed # check that the selected files are displayed
selected_files = driver.find_element(By.ID, f"selected_files{suffix}") selected_files = driver.find_element(By.ID, f"selected_files{suffix}")
assert selected_files.text == "\n".join(exp_files) assert [Path(name).name for name in selected_files.text.split("\n")] == [
Path(name).name for name in exp_files
]
clear_button = driver.find_element(By.ID, f"clear_button{suffix}") clear_button = driver.find_element(By.ID, f"clear_button{suffix}")
assert clear_button assert clear_button