We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71fceb2 commit 73e770dCopy full SHA for 73e770d
test/e2e/core/scroll.test.js
@@ -0,0 +1,24 @@
1
+describe("Scroll test", ()=> {
2
+ beforeAll(async () => {
3
+ await page.goto(PATH + "mapml-viewer.html");
4
+ });
5
+
6
+ afterAll(async function () {
7
+ await context.close();
8
9
10
+ test("Scrolling the map does not scroll the document", async ()=>{
11
+ //Force the windows scroll bar to appear
12
+ await page.$eval("body > textarea",
13
+ (textarea) => textarea.setAttribute("cols", 200)
14
+ );
15
+ await page.waitForTimeout(1000);
16
+ await page.keyboard.press("Tab");
17
+ await page.waitForTimeout(500);
18
+ await page.keyboard.press("ArrowRight");
19
20
21
+ const scrollX = await page.evaluate('window.scrollX');
22
+ expect(scrollX).toEqual(0);
23
24
+});
0 commit comments