/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import {expect, test} from "@playwright/test";

test.describe("900-test/labelLayout/100-id-markup/Id_Markup.xhtml", () => {

  test.beforeEach(async ({page}) => {
    await page.goto("/content/900-test/labelLayout/100-id-markup/Id_Markup.xhtml");
  });

  test("No label set", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionNoLabel'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=none", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionNone'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=skip", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionSkip'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=top", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionTop'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=flowLeft", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionFlowLeft'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=flowRight", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionFlowRight'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=flexLeft", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionFlexLeft'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=flexRight", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:sectionFlexRight'] .tobago-section-content > tobago-in input");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=segmentLeft", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:inSegmentLeft::field']");


  await expect(inputFn).toContainClass("testcssclass");

});

test("labelLayout=segmentRight", async ({page}) => {
  const inputFn = page.locator("[id='page:mainForm:inSegmentRight::field']");


  await expect(inputFn).toContainClass("testcssclass");

});
});
