wasm tests: Update window class in Selenium test

Rename qt-window to qt-decorated-window to follow changes introduced by:
2ab07b4558ce074fcd6cac699ea71df31fc324f5.

Change-Id: I41f84cc201821d620be11b67939aa94664a8d208
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Piotr Wierciński 2024-11-21 14:00:28 +01:00
parent 6e7a15f5c5
commit bc521b68a6

View File

@ -667,7 +667,7 @@ class Screen:
shadow_container = self.element.find_element(By.CSS_SELECTOR, f'#qt-shadow-container')
return [
Window(self, element=element) for element in shadow_container.shadow_root.find_elements(
By.CSS_SELECTOR, f'div#{self.name} > div.qt-window')]
By.CSS_SELECTOR, f'div#{self.name} > div.qt-decorated-window')]
def find_element(self, method, query):
shadow_container = self.element.find_element(By.CSS_SELECTOR, f'#qt-shadow-container')