mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(client): clear selector type error in editor cypress test (#49129)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const selectors = {
|
||||
const editorElement = {
|
||||
editor: '.monaco-editor'
|
||||
};
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('Editor Shortcuts', () => {
|
||||
cy.visit(
|
||||
'learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements'
|
||||
);
|
||||
cy.get(selectors.editor, { timeout: 15000 })
|
||||
cy.get(editorElement.editor, { timeout: 15000 })
|
||||
.first()
|
||||
.click()
|
||||
.focused()
|
||||
@@ -19,7 +19,7 @@ describe('Editor Shortcuts', () => {
|
||||
cy.visit(
|
||||
'learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements'
|
||||
);
|
||||
cy.get(selectors.editor, { timeout: 15000 })
|
||||
cy.get(editorElement.editor, { timeout: 15000 })
|
||||
.first()
|
||||
.click()
|
||||
.focused()
|
||||
|
||||
Reference in New Issue
Block a user